I have written following JCL:
//STEP001 EXEC PGM=SORT
//SORTIN DD DISP=SHR,DSN=DPFCB.D393990.LAYOUT
//SORTOUT DD DSN=DPFCB.D393990.LAYOUT.JFY,
// DISP=(,CATLG,DELETE),
// SPACE=(TRK,(10,10),RLSE),
// UNIT=SYSDA
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTREC OVERLAY=(1:1,39,JFY=(SHIFT=LEFT))
/*
//SORTIN DD DISP=SHR,DSN=DPFCB.D393990.LAYOUT
//SORTOUT DD DSN=DPFCB.D393990.LAYOUT.JFY,
// DISP=(,CATLG,DELETE),
// SPACE=(TRK,(10,10),RLSE),
// UNIT=SYSDA
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTREC OVERLAY=(1:1,39,JFY=(SHIFT=LEFT))
/*
my input is:
3 W541-BIT-REC GROUP 1 1 711
6 W541-BIT-STRD-INFO GROUP 2 1 343
9 W541-BIT-ID GROUP 3 1 19
12 W541-USG-BIT-ID GROUP 4 1 19
15 W541-EVENT-ID GROUP 5 1 16
6 W541-BIT-STRD-INFO GROUP 2 1 343
9 W541-BIT-ID GROUP 3 1 19
12 W541-USG-BIT-ID GROUP 4 1 19
15 W541-EVENT-ID GROUP 5 1 16
and the output is same as above, where as I was expecting the output like this:
3 W541-BIT-REC GROUP 1 1 711
6 W541-BIT-STRD-INFO GROUP 2 1 343
9 W541-BIT-ID GROUP 3 1 19
12 W541-USG-BIT-ID GROUP 4 1 19
15 W541-EVENT-ID GROUP 5 1 16
6 W541-BIT-STRD-INFO GROUP 2 1 343
9 W541-BIT-ID GROUP 3 1 19
12 W541-USG-BIT-ID GROUP 4 1 19
15 W541-EVENT-ID GROUP 5 1 16
Can you please suggest..