Page 1 of 1

Convert Alpha numeric to numeric.

PostPosted: Tue Oct 04, 2011 12:15 pm
by vishnusrini
Hi all,

I have a field WS-PRICE-A-CNV-RATE in a text field holding a floating decimal.
I need to Format WS-PRICE-A-CNV-RATE PIC X(9) into a COBOL PIC S9(8)v9(8) comp-3 variable.
Can anyone help me how to do it.


Thanks in Advance.

Re: Convert Alpha numeric to numeric.

PostPosted: Tue Oct 04, 2011 12:35 pm
by BillyBoyo
Have a look in the Cobol manual for intrinsic function NUMVAL.

Re: Convert Alpha numeric to numeric.

PostPosted: Tue Oct 04, 2011 5:30 pm
by vishnusrini
Thanks for you help...