Dear Billy,
My sortcard looks likes below:
SORT FIELDS=(1,30,CH,A,56,4,CH,A)
INCLUDE COND=(56,4,CH,EQ,C'PSRA')
OUTREC FIELDS=(1:1,22,24:23,4,Y4U,TOGREG=Y4T(-),X,
31:27,4,PD,TO=ZD,LENGTH=6,39:56,4)
My input file has length 545
My output file has length 42
Input file has date field which starts at 23 byte and defined as s9(7) comp-3. I have few other fields before and after the date field which is shown in the ontrol card
The sysout is shown below:
ICE201I H RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE805I 1 JOBNAME: SAYLN11D , STEPNAME: XF1D1400
ICE802I 0 BLOCKSET TECHNIQUE IN CONTROL
ICE143I 0 BLOCKSET SORT TECHNIQUE SELECTED
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 - 22:56 ON SAT JAN 12, 2013 -
SORT FIELDS=(1,30,CH,A,56,4,CH,A)
INCLUDE COND=(56,4,CH,EQ,C'PSRA')
OUTREC FIELDS=(1:1,22,24:23,4,Y4U,TOGREG=Y4T(-),X,
31:27,4,PD,TO=ZD,LENGTH=6,39:56,4)
ICE201I H RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE126A 2 INCONSISTENT REFORMATTING FOR *OUTREC : REASON CODE 04, IFTHEN 0
ICE751I 0 C5-K76982 C6-K90026 C7-K58148 C8-K67572 EE-K72040 E7-K70685
ICE052I 3 END OF DFSORT