I am having some trouble with some cobol code. In the following code bellow it causes these two errors. The compiler does not like when I try and do the addition.
CH7PPB.CBL:158: Error: 'NEW-DUES' is not numeric name CH7PPB.CBL:161: Error: 'NEW-INSURANCE' is not numeric name
MOVE UNION-DUES TO OLD-DUES
MULTIPLY UNION-DUES BY .04 GIVING NEW-DUES
ADD UNION-DUES TO NEW-DUES
MOVE INSURANCE TO OLD-INSURANCE
MULTIPLY INSURANCE BY .03 GIVING NEW-INSURANCE
ADD INSURANCE TO NEW-INSURANCE
NEW-DUES and NEW-INSURANCE are defined as follows.
05 NEW-DUES PIC Z9(4).99.
05 NEW-INSURANCE PIC Z9(4).99.
Thank you for any help.
Resolved this by useing two temp variables not sure if this is the way to do it but it worked.