DFSORT is a program used to sort records in ascending or descending order or merge multiple files into one file. The document provides a sample JCL for executing DFSORT, including statements for the program, libraries, parameters, input/output files, work files, and dumps. It also describes each JCL statement and notes that FREE=CLOSE is not allowed on DFSORT DD statements.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
149 views
DFSORT
DFSORT is a program used to sort records in ascending or descending order or merge multiple files into one file. The document provides a sample JCL for executing DFSORT, including statements for the program, libraries, parameters, input/output files, work files, and dumps. It also describes each JCL statement and notes that FREE=CLOSE is not allowed on DFSORT DD statements.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
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.