Examples of the GROUPID parameter
Example 1
//EXMP5 JOB ACCT1984,MAEBIRD,MSGCLASS=A
//OUTRPT OUTPUT GROUPID=RPTGP,DEFAULT=YES,DEST=TDC
//STEP1 EXEC PGM=RPTWRIT
//SYSIN DD *
.
.
.
/*
//RPTDLY DD SYSOUT=C
//RPTWK DD SYSOUT=C
In this example, the DD statements RPTDLY and RPTWK implicitly
reference the default OUTPUT JCL statement OUTRPT. JES2 creates two
output groups:
- Group RPTGP is created because of the GROUPID parameter in the OUTPUT JCL statement. It contains the two reports from the sysout DD statements RPTDLY and RPTWK and is printed at the destination TDC. The programmer named this group RPTGP.
- The other group is named by JES2. It contains the system-managed data set for the job’s messages.
Example 2
//EXAMP JOB MSGCLASS=A
//JOBOUT OUTPUT GROUPID=SUMM,DEST=HQS,CHARS=GT10
//STEP1 EXEC PGM=RWRITE
//OUT1 OUTPUT FORMS=STD,CHARS=GS10,DEST=LOCAL
//RPT1 DD SYSOUT=A,OUTPUT=(*.OUT1,*.JOBOUT)
//STEP2 EXEC PGM=SWRITE
//OUT2 OUTPUT FORMS=111,CHARS=GB10,DEST=LOCAL
//RPT2 DD SYSOUT=B,OUTPUT=(*.OUT2,*.JOBOUT)
This job causes JES2 to produce five sets of output:
- 1.1.1, containing the system-managed data sets. This set is specified through the JOB statement MSGCLASS parameter.
- SUMM.1.1, containing a copy of the data set defined by DD statement RPT1. This set is specified through the second OUTPUT subparameter: *.JOBOUT. It is for output class A.
- SUMM.2.1, containing a copy of the data set defined by DD statement RPT2. This set is specified through the second OUTPUT subparameter: *.JOBOUT. Because it is for output class B, it is in a separate subgroup from the SUMM.1.1 subgroup.
- 4.1.1, containing a copy of the data set defined by DD statement RPT1. This set is specified through the first OUTPUT subparameter: *.OUT1.
- 5.1.1, containing a copy of the data set defined by DD statement RPT2. This set is specified through the first OUTPUT subparameter: *.OUT2.