In a message dated 12/12/03 7:25:29 AM Pacific Standard Time,
[log in to unmask] writes:
I'm trying to understand the customers code. They move a PIC X(8) into a
binary variable (well a COMP type which I thought was binary). How does
COBOL know that the PIC X(8) contains a binary value rather than an ASCII
string like "200"?
This is probably an error (illegal ascii digit error). It doesn't show up
at run time because the $CONTROL at the top of your source code probably
doesn't specify the VALIDATE option. Change the PIC X(8) to a PIC 9(8) and
then move the PIC 9(8) field to the COMP binary field.
Moving "X" type fields straight into COMP fields doesn't work !
Brian Donaldson.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *