I have a v99999 packed number which i wish to convert to an alpha 8.
The following is the schema. A is the input, B I am using to unpack A, and C I am attempting to convert the unpacked number to the alpha, I wish to preserve the decimal point and sign (if there is any):
05 A PIC V99999 COMP-3.
05 B PIC V99999.
05 C PIC X(08).
MOVE A TO B.
MOVE B TO C.
This error message results:
"B" (NUMERIC NON-INTEGER)" and "C" (ALPHANUMERIC) did not follow the "MOVE"
statement compatibility rules. The statement was discarded
The following is the schema. A is the input, B I am using to unpack A, and C I am attempting to convert the unpacked number to the alpha, I wish to preserve the decimal point and sign (if there is any):
05 A PIC V99999 COMP-3.
05 B PIC V99999.
05 C PIC X(08).
MOVE A TO B.
MOVE B TO C.
This error message results:
"B" (NUMERIC NON-INTEGER)" and "C" (ALPHANUMERIC) did not follow the "MOVE"
statement compatibility rules. The statement was discarded