Previous Topic: SUBS=DESTNext Topic: SUBS=ALL


Example

The following example assumes SUBS=DEST, printer DEPTPRT1 and printer DEPTPRT2 defined in the CA Spool initialization parameters:

//SAMPLE2 JOB (ACCT#),'PGMRNAME',
// CLASS=A,MSGCLASS=C
//OUT1 OUTPUT WRITER=DEPTPRT2
//STEP1 EXEC PGM=IEBPTPCH
//SYSUT2 DD SYSOUT=A,DEST=DEPTPRT1
//SYSUT1 DD DSN=SYS2.ESF.JCLLIB,DISP=SHR
//SYSPRINT DD SYSOUT=*,OUTPUT=*.OUT1
//SYSIN DD *
PRINT TYPORG=PO,MAXFLDS=10,MAXNAME=10
MEMBER NAME=ESFPARM
RECORD FIELD=(80)

Both the SYSUT2 and SYSPRINT SYSOUT allocations will be redirected into two separate CA Spool files that are sent to printer DEPTPRT1 with output class A and printer DEPTPRT2.

Note: SYSPRINT will not have output class C as specified in MSGCLASS; instead it will be assigned the default output class for printer DEPTPRT2.