//STEP01 EXEC PGM=SYNCSORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=XXXXXXX.NONX.SAMPLE1
//SORTOUT DD DSN=XXXXXXX.NONX.SAMPLE2,DISP=(NEW,CATLG),
// DCB=*.SORTIN,SPACE=(TRK,(1,2),RLSE),
// UNIT=TESTDA
//SYSIN DD *
SORT FIELDS=COPY
![]()
The above example just creates a duplicate dataset with no changes. Its just a mirror image of SORTIN DD dataset copied to SORTOUT DD dataset. The characteristics of SORTOUT dataset remain same as SORTIN dataset as we are referencing SORTIN by pointing DCB.








