I'm having issues with the sort below, where :
- The 1st IFTHEN add a column that applies to all entries.
- The 2nd IFTHEN add a second column that applies to all entries (except the first line).
- The 3rd IFTHEN would add a third column which would apply to several groups of records. but the job fails on this statement with syntax error.
Could you please help me to understand how to add the 3rd IFTHEN statement ?
works fine :
//CTL1CNTL DD *
INREC IFTHEN=(WHEN=INIT,
OVERLAY=(90:SEQNUM,8,ZD)),
IFTHEN=(WHEN=GROUP,BEGIN=(23,03,SS,EQ,C'ID='),
PUSH=(99:26,04))
fails with syntax error :
//CTL1CNTL DD *
INREC IFTHEN=(WHEN=INIT,
OVERLAY=(90:SEQNUM,8,ZD)),
IFTHEN=(WHEN=GROUP,BEGIN=(23,03,SS,EQ,C'ID='),
PUSH=(99:26,04)),
IFTHEN=(WHEN=GROUP,BEGIN=(01,20,SS,EQ,C'ABCABC ABC ABC21'),
END=(03,15,SS,EQ,C'ABCAAW-CASC'),
PUSH=(105:C'AEDX AXC'))