SYSOUT Parameter
SYSOUT Parameter Example
Scenario1 - Writing output on default printer (SPOOL).
Code -
----+----1----+----2----+----3----+----4----+----5----+
//DD01 DD SYSOUT=*
Scenario2 - To capture the output in a dataset.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//DD01 DD SYSOUT=(,INTRDR)
//SYSIN DD *
...
Scenario3 - To send the output to a specific printer.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//SYSOUT DD SYSOUT=(A,LPAR01)
Scenario4 - To send the output to a specific class of printers.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//SYSOUT DD SYSOUT=(A,CLASS=A)
Scenario5 - To send the output to a specific destination.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//SYSOUT DD SYSOUT=(A,DEST=DEST1)