Previous Topic: OUTPUT ParametersNext Topic: ESFALLOC TSO Command


Example

The following example illustrates a method of using the OUTPUT statement:

//SYSCOPY      JOB (ACCOUNT),'DEPT PRINT',CLASS=A,MSGCLASS=A
//OUT1         OUTPUT DEST=DEPTPRT1,FORMDEF=010201,COPIES=3
//OUT2         OUTPUT DEST=DEPTPRT2,FORMDEF=010201,COPIES=3
//OUTA         OUTPUT DEST=DEPTPRT3,FORMDEF=030303,DEFAULT=YES
//OUTB         OUTPUT DEST=DEPTPRT4,CLASS=F,COPIES=3,DEFAULT=YES
//STEP1        EXEC ASMHC
//ASM.SYSPRINT DD   SUBSYS=(ESF,A,ASM1)
//STEP2        EXEC ASMHC
//ASM.SYSPRINT DD   SUBSYS=(ESF,A,ASM2),OUTPUT=*.OUT2

The example shows how to force output from both assemblies to the printers DEPTPRT3 and DEPTPRT4 by specifying the DEFAULT=YES parameter. The output from the second assembly is sent to the printer DEPTPRT2 by the explicit OUTPUT reference on the DD card.