Using OUTPUT JCL COPIES by nullifying DD copies
If both a DD statement and a referenced OUTPUT JCL statement contain
COPIES parameters, the DD COPIES parameter normally overrides the
OUTPUT JCL COPIES parameter. For example, four copies are printed
of sysout data set DDA:
//OTA OUTPUT COPIES=3
//DDA DD SYSOUT=A,OUTPUT=*.OTA,COPIES=4
However, if the DD COPIES is a null parameter, the OUTPUT JCL COPIES
parameter is used. For example, three copies are printed of sysout
data set DDB:
//OTB OUTPUT COPIES=3
//DDB DD SYSOUT=A,OUTPUT=*.OTB,COPIES=
The following example shows a null COPIES parameter on an in-stream
DD statement that overrides a procedure DD statement. The null COPIES
parameter on DD statement PS.DDA nullifies the COPIES parameter on
the procedure DD statement DDA, thereby allowing the COPIES parameter
on OUTPUT JCL statement OT to be used. The system prints three copies
of the DDA sysout data set.
//JEX JOB ACCT34,'PAUL BENNETT'
//INSTR PROC
//PS EXEC PGM=ABC
//OT OUTPUT COPIES=3
//DDA DD SYSOUT=A,OUTPUT=*.OT,COPIES=2
// PEND
//STEP1 EXEC PROC=INSTR
//PS.DDA DD COPIES=
/*
Note: If a null COPIES parameter appears on a DD statement
that either does not reference an OUTPUT JCL statement or references
an OUTPUT JCL statement that does not contain a COPIES parameter,
the system uses a default of 1.