z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example of the DEFAULT parameter

z/OS MVS JCL Reference
SA23-1385-00

//EXMP2    JOB     ACCT555,MAEBIRD,MSGCLASS=B
//OUTDAL   OUTPUT  DEFAULT=YES,DEST=DALLAS
//OUTPOK   OUTPUT  DEST=POK
//STEP1    EXEC    PGM=REPORT
//OUTHERE  OUTPUT  CLASS=D
//SYSIN    DD      *
            .
            .
            .
/*
//WKRPT    DD      UNIT=VIO,DISP=(,PASS)
//RPT1     DD      SYSOUT=(,),OUTPUT=*.OUTHERE
//RPT2     DD      SYSOUT=A
//STEP2    EXEC    PGM=SUMMARY
//OUTHQ    OUTPUT  DEFAULT=YES,DEST=HQ
//WKDATA   DD      UNIT=VIO,DISP=(OLD,DELETE),DSNAME=*.STEP1.WKRPT
//MONTH    DD      SYSOUT=(,),OUTPUT=*.STEP1.OUTHERE
//SUM      DD      SYSOUT=A
//FULRPT   DD      SYSOUT=A,OUTPUT=(*.OUTDAL,*.OUTPOK)

In this example, the JOB named EXMP2 contains two job-level OUTPUT JCL statements: OUTDAL and OUTPOK. OUTDAL is a default OUTPUT JCL statement because it contains DEFAULT=YES; OUTDAL can be implicitly referenced by a sysout DD statement. OUTPOK must be explicitly referenced in a sysout DD OUTPUT parameter for its processing options to be used. The purpose of both of these OUTPUT JCL statements is to specify a destination for a sysout data set.

STEP1 contains a step-level OUTPUT JCL statement: OUTHERE. The purpose of this statement is to specify that JES process the data set locally in output class D. OUTHERE can be used only if it is explicitly referenced.

STEP2 contains a step-level default OUTPUT JCL statement: OUTHQ. The purpose of this statement is to specify a destination for a sysout data set. OUTHQ can be implicitly referenced.

The references in this job are as follows:
  • In STEP1 and STEP2, sysout DD statements RPT1 and MONTH explicitly reference OUTPUT JCL statement OUTHERE. These two sysout data sets are printed locally in the same output class.
    Note: You can explicitly reference an OUTPUT JCL statement in a preceding job step.
  • In STEP1, DD statement RPT2 implicitly references OUTPUT JCL statement OUTDAL. This implicit reference occurs because all of the following are true:
    1. DD statement RPT2 contains a SYSOUT parameter but does not contain an OUTPUT parameter. Thus, this DD statement is making an implicit reference.
    2. STEP1 does not contain a default OUTPUT JCL statement, so the implicit reference must be to job-level default OUTPUT JCL statements.
    3. OUTDAL is the only job-level default OUTPUT JCL statement.
  • In STEP2, DD statement SUM implicitly references OUTPUT JCL OUTHQ because all of the following are true:
    1. DD statement SUM contains a SYSOUT parameter but does not contain an OUTPUT parameter. Thus, this DD statement is making an implicit reference.
    2. STEP2 contains a default OUTPUT JCL statement: OUTHQ. Therefore, the implicit reference is to OUTHQ and cannot be to any job-level default OUTPUT JCL statements.
  • In STEP2, DD statement FULRPT explicitly references OUTPUT JCL statements OUTDAL and OUTPOK.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014