Hi All,
am facing issue with combining two records by using sort card. Please find below the details
Issue: WER213A ILLEGAL SUM DATA FIELD
//SORTIN DD *
00001STMT07
00001000013
00002STMT08
00002000098
00003STMT35
00003000003
//SORTOUT DD *
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=D
//SYSIN DD *
INREC IFTHEN=(WHEN=INIT,OVERLAY=(101:SEQNUM,1,ZD,RESTART=(1,5))),
IFTHEN=(WHEN=(101,1,ZD,EQ,1),BUILD=(1,5,6,6,6Z)),
IFTHEN=(WHEN=(101,1,ZD,EQ,2),BUILD=(1,5,6Z,12,6))
SORT FIELDS=(1,5,CH,A),EQUALS
SUM FIELDS=(6,6,12,6),FORMAT=BI
Expected Output:
00001STMT07000013
00002STMT08000098
00003STMT35000003
Error Message:
WER146B 32K BYTES OF EMERGENCY SPACE ALLOCATED
WER213A ILLEGAL SUM DATA FIELD
WER108I SORTIN : RECFM=FB ; LRECL= 80; BLKSIZE= 80
Can anyone please let me know what is the issue. Thank You