kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Jun 20, 2011 10:25 am Post subject: |
|
|
tcurrier,
Use the following DFSORT JCL. I assumed that LRECL=80 and RECFM=FB
Code: |
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
A
B
C
E
F
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTREC IFTHEN=(WHEN=GROUP,END=(1,1,CH,EQ,C'C'),PUSH=(81:ID=8))
OUTFIL BUILD=(1,80),INCLUDE=(81,8,ZD,EQ,1)
//* |
_________________ Kolusu
www.linkedin.com/in/kolusu |
|