Page 1 of 1

How do you convert an alphanumeric data field?

Posted: Mon Nov 17, 2014 12:51 am
by Darrel
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?

Re: How do you convert an alphanumeric data field?

Posted: Mon Nov 17, 2014 1:34 pm
by Christopher