DD statements and parameters


Almost every JCL coded with several DD statements. Various DD statements and their functions are specified below.

DDnameDescription
//JOBLIB DD Specifies program link/load library if it is not a system library. Refer JCL Joblib
//STEPLIB DD Same as //JOBLIB DD but specific to the particular step where it is added. Refer JCL Steplib
//SORTLIB DD Specifies the data set that contains special load modules if it is not a system library
//SYSOUT DD Specifies the message data set
//SYMNAMES DD Specifies the SYMNAMES data set containing statements to be used for symbol processing
//SYMNOUT DD Specifies the data set in which SYMNAMES statements and the symbol tables are to be listed
//SORTIN DD Specifies the input data set for a Sort or Copy
//SORTINnn DD Specifies the input data sets for a Merge
//SORTOUT DD Specifies the SORTOUT output data set for a Sort, Merge, or Copy
//outfil DD Specifies an OUTFIL output data set for a Sort, Merge, or Copy
//SORTWKdd DD Specifies intermediate storage data sets for Sort processing
//DFSPARM DD Contains DFSORT PARM options and program control statements
//SYSIN DD Contains DFSORT control statements which are required for Sort. Refer JCL SYSIN
//SORTCNTL DD Same as //SYSIN DD
//SORTDIAG DD Specifies the messages and program control statements that are to be printed
//SORTCKPT DD Specifies the data set for checkpoint records
//SYSUDUMP DD Specifies the data set for output from a system ABEND dump routine. Refer JCL SYSUDUMP
//SYSMDUMP DD Same as //SYSUDUMP DD Refer JCL SYSMDUMP
//SYSABEND DD Same as //SYSUDUMP DD ReferJCL SYSABEND
//SORTSNAP DD Specifies the snap dump data set dynamically allocated by DFSORT
//ddname Specifies the data set containing exit routines.

DD statement parameters -


The below are the DD statement parameters used by DFSORT.

{AMP | BUFSP}


AMP parameter used when password-protected VSAM data sets are used in sorting. BUFSP parameter used when minimum buffer pool value required while creating the data set.No default values for these parameters.

DCB


Refer JCL DCB Parameter

DISP


Refer JCL DISP Parameter

DSNAME or DSN


Specifies the dataset names.The dataset name is fully qualified or temporary dataset name.The default value is system assigns unique name if not present.

SPACE


Specifies the amount of memory needed.The same can be needed while creating the data set or processing dataset

UNIT


Specifies the number of I/O units required for processing dataset.

VOLUME/VOL


Specifies the information used to identify the volume.

Note! If duplicate DD names are provided in the DFSORT jcl, DFSORT ignores the second one among the duplicates and performs the operation on the first one alone.