Hi,
I am using reporting function TOT to sum up column (offset 20-21) which is a 2-byte field defined as PIC S9(4) COMP in COBOL. In output record, I want to have the total field remains S9(4) COMP, I tried not to use edit mark Mxx but it gives me error. How do I preserve the original data type after the addition?
//CTL2CNTL DD *
SORT FIELDS=(1,19,CH,A)
OUTFIL FNAMES=MYOUTFL,REMOVECC,NODETAIL,
SECTIONS=(1,19,
TRAILER3=(1,19,TOT=(20,2,ZD,LENGTH=2)))
Regards,
Jim