Cobol programming: Move data problem
Posted on 2006-03-29
I am designing a programe that reads data from a sequential file.
within it I am having and error of "illegal character in numeric field" run time error 163
I am trying to move the data held in F1-USAGE TO WS-USAGE
My statement is
MOVE F1-USAGE TO WS-USAGE
an this is where the program stops with the abovementioned error.
the pic fields invovled are
F1-USAGE PIC 9(08)
WS-USAGE PIC 9(08)
I have stepped through the programe using the watch option and when it gets to the statement it seems that there is nothing in the F1-USAGE field.
Is it not possible to move data from an input field like this?