Explained Each Parameter JCL DFSORT Job

The job control language (JCL) you need to do a sort depends on whether you run DFSORT directly or call DFSORT from a program. For now, concentrate on running DFSORT directly.

The below are the list of Parameters to be used in DFSORT job.

Required JCL includes a JOB statement, an EXEC statement, and several DD statements. The statements you need and their exact form depend upon whether you: Invoke DFSORT with an EXEC statement in the input job stream, or with a system macro instruction within another program

  • Choose to use EXEC statement cataloged procedures to invoke DFSORT
  • Choose to specify PARM options on the EXEC statement
  • Choose to specify PARM options or control statements in a DFSPARM data set
  • Choose to specify control statements in a SYSIN data set

The JCL statements you need for most jobs are as follows.

//jobname JOB

Signals the beginning of a job. At your site, you might be required to specify information such as your name and account number on the JOB statement.

//stepname EXEC

Signals the beginning of a job step and tells the operating system what program to run. To run DFSORT, write the EXEC statement like this:

//stepname EXEC PGM=SORT


The DFSORT program would typically be in a library known to the system, so the //STEPLIB DD statement would not be needed. However, if DFSORT is not in a library known to the system, the //STEPLIB DD statement defines the library containing the DFSORT program


Defines the data set in which DFSORT messages and control statements are listed.


Defines the input data set or concatenated input data sets.


Defines a work data set for a sort. Typically not needed, because DFSORT can allocate work data sets for a sort dynamically.


Defines the output data set.


Precedes or contains the DFSORT program control statements.


Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.