Previous topic |
Next topic |
Contact z/OS |
Location in the JCL
z/OS MVS JCL Reference
References by sysout DD statements: An OUTPUT JCL statement can be referenced by a sysout DD statement in two ways:
Note: If the sysout DD statement does not contain an OUTPUT parameter and the job or step does not contain a default OUTPUT JCL statement, processing of the sysout data set is controlled only by the DD statement, a JES2 /*OUTPUT statement or a JES3 //*FORMAT statement, and appropriate installation defaults.
Job-level OUTPUT JCL statements: This statement appears after the JOB statement and before the first EXEC statement. It cannot be used for a started procedure.
Step-level OUTPUT JCL statements: This statement appears in a step, that is, anywhere after the first EXEC statement in a job, except within a concatenated DD statement.
Location of default OUTPUT JCL statements: Where you place default OUTPUT JCL statements determines to which statements a sysout DD statement implicitly refers. A sysout DD statement implicitly references all job-level default OUTPUT JCL statements when the step containing the DD statement does not contain any step-level default OUTPUT JCL statements.
You can place more than one job- or step-level default OUTPUT JCL statement in a job or step.
OUTPUT JCL statement with JESDS parameter: Place an OUTPUT JCL statement with a JESDS parameter after the JOB statement and before the first EXEC statement.
OUTPUT JCL statements in cataloged or in-stream procedures: OUTPUT JCL statements can appear in procedure steps. The referencing DD statement can appear later in the procedure, in the calling job step, or in a later step in the job.
An OUTPUT JCL statement must not be placed before the first EXEC statement in a procedure; for this reason, procedures cannot contain job-level OUTPUT JCL statements or OUTPUT JCL statements with JESDS parameters.
A procedure DD statement can refer to an OUTPUT JCL statement in an earlier job step or to a job-level OUTPUT JCL statement. However, a procedure DD statement cannot refer to an OUTPUT JCL statement in the calling step.
Copyright IBM Corporation 1990, 2014