OK, I am pronbably suppoed to spot the deliberate mistake but I didn't, just reformatted the long comments and executed it...
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AND MORE
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R12 - 15:56 ON SAT MAY 10, 2014 -
* Does a COPY, allows for short records less than the comparison fields
* of INCLUDE/OMIT
OPTION COPY,VLSCMP
* Excludes: record-length (variable-length records) less than 16; 8 for
* a length of 7 equal to ISRSUPC; 7 for a length of 6 equal to LINE-Ä;
* 7 for a length of 10 equal to blanks.
OMIT COND=(1,02,BI,LT,16,OR,
8,07,CH,EQ,C'ISRSUPC',OR,
7,06,CH,EQ,C'LINE-Ä',OR,
7,10,CH,EQ,C' ')
* Makes a new record, including the RDW (a must for variable output)
* and data from position 16 to the end of the record.
INREC IFTHEN=(WHEN=NONE),BUILD=(1,4,16),
Å
ICE107A 6 DUPLICATE, CONFLICTING, OR MISSING INREC OR OUTREC STATEMENT OPERANDS
* Looking at the new record, created just now, is 3,11 our end-of
* required-data? If yes, PUSH the 'S' onto the first position of all
* records in the group (all remaining records.
IFTHEN=(WHEN=GROUP,BEGIN=(3,11,CH,EQ,C'SEARCH-FOR'),
Å
ICE005A 0 BLANK NEEDED IN COLUMN 1 OR OPERATION NOT DEFINED CORRECTLY
PUSH=(5:3,1))
Å
ICE005A 0 BLANK NEEDED IN COLUMN 1 OR OPERATION NOT DEFINED CORRECTLY
* Use OUTFIL's OMIT to drop the records we've identified as in the
* group starting with the first record we don't want.
OUTFIL OMIT=(5,1,CH,EQ,C'S')
ICE751I 0 C5-K76982 C6-K90026 C7-K94453 C8-K94453 E7-K95469
ICE052I 3 END OF DFSORT