******************************** TOP OF DATA **************************
SYNCSORT FOR Z/OS 1.2.3.1R U.S. PATENTS: @@@@@@@, @@@@@@@ (C) 200
PRODUCT LICENSED FOR CPU SERIAL NUMBER XXXXX, MODEL XXXX Z04
SYSIN :
SORT FIELDS=COPY
OUTREC IFTHEN=(WHEN=INIT,OVERLAY=(81:SEQNUM,8,ZD,RESTART=(1,5))),
*
IFTHEN=(WHEN=GROUP,BEGIN=(81,8,ZD,EQ,1),
PUSH=(1,38))
OUTFIL REMOVECC,NODETAIL,BUILD=(1,80),
SECTIONS=(1,5,TRAILER3=(1,80))
WER268A OUTREC STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
Nazia -- Your SyncSort version is 1.2.3.1R while support for WHEN=GROUP was included in SyncSort for z/OS 1.3.2.0. That's why you get that syntax error. And the solution from Frank would work for DFSORT shops for sure.
Please post the input again and the expected putput from that with rules and LRECL and RECFM of input/output. I try to add BBcode tags in the input/output sample which you showed in very first post but the alignment did not come proper, so I left them as is.
Once you post all the requested information, I may look on your query later in this evening, I've a meeting now...