The Following jcl can be used to copy N number of Records from the Mth Column of an Input File to the Output File
//STEP020 EXEC PGM=SORT
//SORTIN DD DSN=<INPUT FILE>, DISP=SHR
//SORTOUT DD DSN=<OUTPUT FILE>,DISP=SHR
//SYSIN DD *
SORT FIELDS=COPY,SKIPREC=50001,STOPAFT=20000
/*
//SYSOUT DD SYSOUT=*
This will Copy 20000 records starting from the 50001th Record of the input File.
No comments:
Post a Comment