How can I add up the fields and get the same output including the decimal???
58335.26
41186.55
47051.15
50015.01
21595.61
currently defined as alpha
ACCT-AMT-H 140 11 A
ACCT-AMT-DOLS-H 140 8 A
ACCT-AMT-CENT-H 149 2 A
TOT-AMT-HOLD W 11 N 2
TOT-AMT-DOLS W 9 N
TOT-AMT-CENT W 2 N 2
How do I bring them back together like using COBOL levels in working storage
01 TOT-AMT.
05 TOT-AMT-DOLS PIC 9(9).
05 TOT-AMT-CENT PIC v99.
MOVE ACCT-AMT-DOLS-H TO TOT-AMT-DOLS.
MOVE ACCT-AMT-CENT-H TO TOT-AMT-CENT.
TOT-AMT-HOLD = TOT-AMT-HOLD + TOT-AMT.