Override sequence with “Direct” OUTPUT JCL statements for WTR queue and hold queue
A “direct”
OUTPUT JCL statement is one that is explicitly referenced by the OUTPUT
parameter of a SYSOUT DD JCL statement for a data set, or an OUTPUT
JCL statement that specifies the JESDS parameter. If there is a "direct"
OUTPUT JCL statement for the data set, the OUTSERV initialization
statement parameters are overridden by the following sources:
- SYSOUT class table: This table is constructed from the parameters on the SYSOUT initialization statement.
- “Direct” OUTPUT JCL statement: The values specified on the direct OUTPUT JCL statement override the values specified by source 1 (above).
- SYSOUT DD JCL statements: The values specified on the SYSOUT DD JCL statements override the values specified by sources 1 and 2 (above).
EXAMPLE
This example shows the override process using the FORMS parameter
on the OUTSERV initialization statement and “direct” OUTPUT JCL statement.
OUTSERV,FORMS=1PRT
SYSOUT,CLASS=F,FORMS=3PRT ----> For WTR Q
SYSOUT,CLASS=F,FORMS,3PRT,HOLD=EXWTR ----> For HOLD Q
Under these conditions, the following job is run:
//MARIOA JOB MSGLEVEL=(1,1),MSGCLASS=F
//OUT1 OUTPUT CHARS=GS14,FORMS=2PRT,DEFAULT=NO
//STEP1 EXEC PGM=IEBDG
//SYSPRINT DD SYSOUT=(F,,4PRT),OUTPUT=*.OUT1
//SYSUT2 DD SYSOUT=F,DCB=(LRECL=80,RECFM=FB,BLKSIZE=80),
// OUTPUT=*.OUT
//SYSIN DD *
DSD OUTPUT=(SYSUT2)
FD NAME=FIELD1,LENGTH=80,STARTLOC=1,PICTURE=5,'MARIO',FILL=x'40'
CREATE QUANTITY=10,NAME=FIELD1
END
/*
Table 1 illustrates the override process for this example.
Data Set | FORMS Initial Value in OUTSERV Statement | Order of FORMS Overrides | FORMS Final Value | CHARS Final Value | ||
---|---|---|---|---|---|---|
1. SYSOUT, CLASS=F | 2. OUTPUT FORMS=2PRT | 3. DD for SYSPRINT | ||||
SYSPRINT |
1PRT |
3PRT |
2PRT |
4PRT |
4PRT |
GS14 |
SYSUT1 |
1PRT |
3PRT |
2PRT |
n/a |
2PRT |
GS14 |
JESJCL |
1PRT |
3PRT |
n/a |
n/a |
3PRT |
GS10 |
JESMSGLG |
1PRT |
3PRT |
n/a |
n/a |
3PRT |
GS10 |
JESYSMSG |
1PRT |
3PRT |
n/a |
n/a |
3PRT |
GS10 |
JES3 builds one OSE for each direct OUTPUT JCL statement referring to a data set. A copy of the output data set for each OUTPUT statement is made available for processing. Each copy is formatted according to the processing options specified on the OUTPUT statement that produced it.