DD SYSOUT Parameter


The SYSOUT parameter is used to define the destination of the system output generated by the program or job step. It specifies the device class, the device number or name, and the output class.

Syntax -

SYSOUT={msg-class|*|output-class|output-device|(,)}
output-class Specifies the output class that is defined during JES initialization.
* Specifies to use the output class in the MSGCLASS parameter on the JOB statement.
(,) Specifies a null class. Coding SYSOUT=(,) nullifies the SYSOUT class.
output-device Specifies output device name.

Default and overrides -

The SYSOUT parameter values are processed in the following override order -

  • SYSOUT DD statement.
  • Referenced JCL options.
  • JES2 or JES3 options.
  • The installation default options for the requested output class.

Examples -


Scenario1 - Writing output on default printer (SPOOL).

//DD01    DD SYSOUT=*

Scenario2 - To capture the output in a dataset.

//DD01   DD SYSOUT=(,INTRDR)
//SYSIN DD *
...

Scenario3 - To send the output to a specific printer.

//SYSOUT DD SYSOUT=(A,LPAR01)

Scenario4 - To send the output to a specific class of printers.

//SYSOUT DD SYSOUT=(A,CLASS=A)

Scenario5 - To send the output to a specific destination.

//SYSOUT DD SYSOUT=(A,DEST=DEST1)