JCL DD SYSOUT

JCL – DD SPACE JCL – DD UNIT

Advertisements


SYSOUT parameter used to identify the dataset as a system output dataset.

Normally this called as a SYSOUT dataset.

Do not use SYSOUT with SMS managed dataset.

SYSOUT mostly used to view the system ABEND codes information and output of the display statement.

SYSOUT mostly used to route the COBOL program's DISPLAY statements.

SYSOUT is always allocated and gets all the output from the System level process (including any messages about the JCL itself, performance stats, error messages etc.)

SYSOUT parameter used to direct the output device and generate during execution of the job to an output device.

SYSOUT can write all these messages to dataset as well.

The SYSOUT parameter can also:


  1. Assigns this sysout data set to an output class.
  2. Optionally requests an external writer to process the sysout data set.
  3. Optionally identifies the forms on which the data set is to be printed or punched.

Syntax:

SYSOUT= { class                                 }
        { *                                     }
        { ([class] [,writer-name] [,form-name]) }

SYSOUT=(,)

class Specifies the output class for the data set.

The class is one character.

The class allows A through Z or 0 through 9.

The each output class attributes are defined during JES initialization.
* Requests the output class in the MSGCLASS parameter on the JOB statement.
(,) Specifies a null class.

A null class must be coded to use the CLASS parameter on a OUTPUT JCL statement.

Specifying SYSOUT=(,) nullifies the SYSOUT class.
writer-name Specifies the member name.

Member name allows 1 to 8 alphanumeric characters.
form-name Specifies the print or punch forms.

form-name is 1 through 4 characters.

Form-name allows alphanumeric or national ($, #, @) characters.

Defaults and overrides:


The sysout dataset is processed according to the following override order:


  1. The options specified on this sysout DD statement.
  2. The options specified on a referenced OUTPUT JCL statement.
  3. The options specified on a referenced JES2 OUTPUT statement or on a JES3 FORMAT statement.
  4. The installation default options for the requested output class.

Example 1:

//DD01    DD     SYSOUT=P

In the above example, the DD statement specifies that JES is to write the sysout dataset to the class P output.


Example 2:

//DD2    DD     DSNAME=&&TEMP,SYSOUT=P

In this example, the DD statement specifies that JES is to write the data set to the device handling class P output.


Example 3:

//DD5    DD     SYSOUT=(P,,PRT)

In the above example, the DD statement specifies that JES is to write the sysout data set to the device handling class P output. The data set is to be printed.


JCL – DD SPACE JCL – DD UNIT

Advertisements