1.Syntax//name OUTPUT parameter[,parameter]... [comments]
The OUTPUT JCL statement consists of the characters // in columns 1 and 2 and four fields: name, operation (OUTPUT), parameter, and comments.
Code a name in the name field of every OUTPUT JCL statement, as follows:
The operation field consists of the characters OUTPUT and must be preceded and followed by at least one blank. It can begin in any column.
The OUTPUT JCL statement contains only keyword parameters. All parameters are optional; however, do not leave the parameter field blank. You can code any of the keyword parameters in any order in the parameter field.
Default OUTPUT JCL Statement
An OUTPUT JCL statement that contains a DEFAULT=YES parameter is called a default OUTPUT JCL statement.
The comments field follows the parameter field after at least one intervening blank.
6.Location in the JCL
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.
Table: Job- and Step-Level OUTPUT JCL Statements in the JCL
8.Relationship to Sysout DD Statement
Do not refer to an OUTPUT JCL statement in a sysout DD statement that defines a JES internal reader. Such a DD statement contains an INTRDR subparameter in the SYSOUT parameter.
9.Relationship to the JES2 /*OUTPUT Statement
JES2 ignores a JES2 /*OUTPUT statement when either of the following appears in the same job or step:
In this case, JES2 uses the third positional subparameter of the DD SYSOUT parameter as a form name, and not as a reference to a JES2 /*OUTPUT statement.
10.Relationship to the JES3 //*FORMAT Statement
IBM-JCL Related Interview Questions
|VSAM Interview Questions||IBM - VSAM Interview Questions|
|IBM-CICS Interview Questions||JCL Interview Questions|
|IBM DB2 Interview Questions||COBOL Interview Questions|
|DB2 Using SQL Interview Questions||IBM-JCL&VSAM Interview Questions|
|IMS/DB Interview Questions||Mainframe DB2 Interview Questions|
Job Control Statements
Job Control Tasks
Format Of Statements
Syntax Of Parameters
Procedures And Symbols
Jcl Command Statement.
Special Dd Statements
If/then/else/endif Statement Construct
Output Jcl Statement
Xmit Jcl Statement
Jes2 Control Statements
Jes3 Control Statements
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.