How do you convert an alphanumeric data field into a Comp3 or numeric data field in COBOL?
I am writting a program that takes in input from a downloaded report and produces a data file. Most of it is simple moves but I have a field with a pic clause of X(18) and I'm tring to get it into one with a pic clause of S9(13)V9(2). Typical values for this field would be "-1,040.40" or "10,700,060.53" and so on. Any suggestions?
How do you convert an alphanumeric data field?
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US