DFSORT JCL (STEP SORT4)

The SORT4 program sorts the DAR4ERRS data set that is created by FABADA3. The sorted data set is used by FABADA4.

Space requirements for the various work data sets created by SORT4 are summarized in the following table. Most output data sets do not require DCB information to be specified in your JCL.

Table 1. DEDB Pointer Checker SORT4 data set sizes
DDNAME Space required
SORTOUT < 1 cylinder

EXEC statement

This statement must be in the following form:

//     EXEC PGM=SORT

DD statements

To run DFSORT, you have to supply the appropriate DD statements. The following table summarizes the DD statements needed to run DFSORT. All statements in this table are required.
Table 2. DFSORT DD statements (Step SORT4)
DDNAME Use Format Required or optional
SORTIN Input Required
SYSIN Input Required
SORTOUT Output Required
SYSOUT Output SYSOUT Required
SORTWK01 Work data set Required
SORTWK02 Work data set Required
SORTWK03 Work data set Required
SORTIN DD
This input data set is the DAR4ERRS file from FABADA3.
SYSIN DD
This input data set contains DFSORT control statements. It is the SORT4CTL file from FABADA3.
SORTOUT DD
This output data set contains the sorted records. It is used by FABADA4. Required space is the same size as the SORTIN data set. Do not specify DISP=MOD for this DD statement.
SYSOUT DD
This output data set contains the message produced by DFSORT.
SORTWKnn DD
These are intermediate storage data sets used by DFSORT. See DFSORT Application Programming Guide for more information about coding SORTWKnn DD statements.

Allocating twice the space used by the SORTIN data set is usually adequate for each work data set.