DD SYSOUT
DD SYSOUT Parameter
Summary
The DD SYSOUT statement is used to specify the destination of system output, such as job log, operator messages, and program output.
The SYSOUT parameter is used to define the destination and characteristics of the 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 -
Scenario 1 - Writing output on default printer (SPOOL).
//DD01 DD SYSOUT=*
Scenario 2 - To capture the output in a dataset.
//DD01 DD SYSOUT=(,INTRDR)
//SYSIN DD *
...
Scenario 3 - To send the output to a specific printer.
//SYSOUT DD SYSOUT=(A,LPAR01)
Scenario 4 - To send the output to a specific class of printers.
//SYSOUT DD SYSOUT=(A,CLASS=A)
Scenario 5 - To send the output to a specific destination.
//SYSOUT DD SYSOUT=(A,DEST=DEST1)