View previous topic :: View next topic
|
Author |
Message |
callkris_cit
New User
Joined: 22 Apr 2006 Posts: 44
|
|
|
|
77 STR1 PIC X(10) value '12345678 '
77 STR2 PIC X(10) value '1234 '
I need this value in numberic field like this
STR1 as 0012345678
STR2 as 0000001234
Please let me know how to convert using COBOL Program.
Thanks
Suresh |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
If you move the data to a numeric field with the intrinsic function NUMVAL, and then back with a regular MOVE, you will get what you want. |
|
Back to top |
|
|
|