DEST Parameter
DEST Parameter Example
Scenario1 - Sending output to SPOOL.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//STEP01 EXEC PGM=PROG1
//DD1 DD DSN=MTH.DATA.FILE,DISP=SHR
//OUTPUT DD SYSOUT=*
Scenario2 - Sending output to the PRINTER1.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//STEP01 EXEC PGM=PROG1
//DD1 DD DSN=MTH.DATA.FILE,DISP=SHR
//OUTPUT DD SYSOUT=*,DEST=PRINTER1
Scenario3 - Sending output to the QUEUE1.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//STEP01 EXEC PGM=PROG1
//DD1 DD DSN=MTH.DATA.FILE,DISP=SHR
//OUTPUT DD SYSOUT=*,DEST=QUEUE1
Explaining Example -
The output of the job is sent to a logical printer named QUEUE1. The actual physical printer associated with QUEUE1 can be changed without modifying the JCL.