DFSORT is a program used to sort records in ascending or descending sequence. It can also be used to merge from 2 to 16 different files into one file. A description of each JCL statement follows the sample JCL.
DFSORT is a program used to sort records in ascending or descending sequence. It can also be used to merge from 2 to 16 different files into one file. A description of each JCL statement follows the sample JCL.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
DFSORT is a program used to sort records in ascending or descending sequence. It can also be used to merge from 2 to 16 different files into one file. A description of each JCL statement follows the sample JCL.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
DFSORT is a program used to sort records in ascending or descending
sequence, or to merge from 2 to 16 different files into one file. The
input and output files processed by DFSORT can be sequential or VSAM files containing fixed-length or variable-length format records. The JCL required to execute DFSORT appears below. A description of each JCL statement follows the sample JCL. DFSORT control statement descriptions appear below the JCL statement discussion. You can type FIND '> DFSORT' on the command line above to skip to them. DFSORT Sample JCL: //JS10 EXEC PGM=SORT, CAN ALSO BE PGM=ICEMAN // PARM=sort parms... //STEPLIB DD DSN=...,DISP=SHR NEEDED IF SORT NOT ON LINK LIST //STEPLIB DD DSN=...,DISP=SHR NEEDED IF SORT NOT ON LINK LIST //SORTLIB DD DSN=...,DISP=SHR NEEDED ONLY IF TAPE WORK SORT //DFSPARM DD * SORT OPTNL PARM AND CONTROL STMT sort parms and sort control statements described below... //SYSOUT DD SYSOUT=* SORT MESSAGES WRITTEN HERE //SORTIN DD DSN=input..DSN.to.sort, DATA SET TO SORT // DISP=SHR //SORTINnn DD DSN=input..DSN.to.sort, DATA SETS TO MERGE 'nn'=01,02,etc. // DISP=SHR //SORTOUT DD DSN=sorted.output.dsn, SORTED OR MERGED OUTPUT // DISP=SHR //SORTWKnn DD UNIT=SYSDA,DISP=SHR, SORT WORK FILES 'nn'=01,02,etc. // SPACE=(TRK,(30,30),RLSE) //SYSIN DD * SORT CONTROL CARD DATA SET //SORTCKPT DD DSN=CHECKPT,UNIT=TAPE, NEEDED IF CHECKPOINTING SORT // DISP=(,KEEP),VOL=SER=ABC123 //SORTSNAP DD SYSOUT=* SNAP DUMP OUTPUT //SYSUDUMP DD SYSOUT=* DUMP OUTPUT //SYSMDUMP DD SYSOUT=* DUMP OUTPUT //SYSABEND DD SYSOUT=* DUMP OUTPUT //SORTDIAG DD DUMMY NEEDED IF DEBUGGING SORT PGM
A description of each JCL statement above appears below; please note
that FREE=CLOSE is not allowed on any DFSORT DD statement.