DFSORT JCL

To run DFSORT™, supply the EXEC statement and appropriate DD statements.

The following table summarizes the DD statements.

Table 1. DFSORT DD statements
DDNAME Use Format Need
SORTIN Input LRECL=42 Required
SYSIN Input Required
SORTOUT Output LRECL=42 Required
SYSOUT Output SYSOUT Required
SYSUDUMP Output SYSOUT Optional
SORTWK01 Work data set Required
SORTWK02 Work data set Required
SORTWK03 Work data set Required
SORTWK04 Work data set Required
SORTWK05 Work data set Required
SORTWK06 Work data set Required
EXEC
This statement must be in the following form:
//     EXEC PGM=SORT
SORTIN DD
This input data set is the RAPSIN data set created by FABTROOT.
SYSIN DD
This input data set contains DFSORT control statements. The sort parameter is "SORT FIELDS=(1,8,BI,A)."
SORTOUT DD
This output data set contains the sorted records. LRECL must be 42, and BLKSIZE must be a multiple of 42.
SYSOUT DD
This output data set contains the messages produced by DFSORT.
SYSUDUMP DD (or SYSABEND)
This defines output from a system abend dump routine. It is used only for debugging, when a dump is required.
SORTWKnn DD
These are intermediate storage data sets used by DFSORT. See the z/OS® DFSORT Application Programming Guide for more information on how to code SORTWKnn DD statements.