Convert Alpha numeric to numeric.



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Convert Alpha numeric to numeric.

Postby vishnusrini » Tue Oct 04, 2011 12:15 pm

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.
vishnusrini
 
Posts: 32
Joined: Wed Jul 07, 2010 2:55 pm
Location: India,bangalore
Has thanked: 0 time
Been thanked: 0 time

Re: Convert Alpha numeric to numeric.

 

Re: Convert Alpha numeric to numeric.

Postby BillyBoyo » Tue Oct 04, 2011 12:35 pm

Have a look in the Cobol manual for intrinsic function NUMVAL.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Convert Alpha numeric to numeric.

Postby vishnusrini » Tue Oct 04, 2011 5:30 pm

Thanks for you help...
vishnusrini
 
Posts: 32
Joined: Wed Jul 07, 2010 2:55 pm
Location: India,bangalore
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post