DFSORT JCL (STEP SORT12)
The SORT12 program sorts the DAR12O data set that is created by FABADA1. Sorted data set is used by FABADA5.
Space requirements for the various work data sets created by SORT12 are summarized in the following table. Most output data sets do not require DCB information to be specified in your JCL.
DDNAME | Space required |
---|---|
SORTOUT | # CI/area X 1.5 X 20 bytes |
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.
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 DAR12O file from FABADA1.
- SYSIN DD
- This input data set contains DFSORT control statements. It is the SORT12 file from FABADA1.
- SORTOUT DD
- This output data set contains the sorted records. It is used by FABADA5. Required space is as 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.