hi
in order to strip off the leading zeros in my R-AMT
i declared it as
05 R-AMT PIC Z(08)9.9(02).
instead of
05 R-AMT PIC 9(08)V9(02).
in the program , i do few computations:
MOVE 0 TO R-AMT
COMPUTE R-AMT ROUNDED =....
ADD 10 TO R-AMT
i get this error for the "ADD" statement:
IGYPA3074-S "R-AMT (NUMERIC-EDITED)" was not numeric, but was a sender in an arithmetic expression. The statement was discarded.
any idea why ?
thanks
in order to strip off the leading zeros in my R-AMT
i declared it as
05 R-AMT PIC Z(08)9.9(02).
instead of
05 R-AMT PIC 9(08)V9(02).
in the program , i do few computations:
MOVE 0 TO R-AMT
COMPUTE R-AMT ROUNDED =....
ADD 10 TO R-AMT
i get this error for the "ADD" statement:
IGYPA3074-S "R-AMT (NUMERIC-EDITED)" was not numeric, but was a sender in an arithmetic expression. The statement was discarded.
any idea why ?
thanks