Indicate the correct answers about the OUTPUT statement
-
Multiple OUTPUT statements can be coded for 1 single job step.
-
The OUTPUT statement can be used to control the authorisation of the submitting user,
-
The OUTPUT statement at job level must be coded before the JOB statement.
-
The OUTPUT statement can not override the MSGCLASS parameter on the JOB statement.
Multiple OUTPUT statements can be coded for a single job step to route different sysout classes. OUTPUT statement at job level must be coded AFTER the JOB statement (not before). The OUTPUT statement CANNOT override MSGCLASS on JOB - MSGCLASS controls default sysout class, OUTPUT directives only apply to specific DD statements without overriding MSGCLASS.
To answer this question, let's go through each option to understand why it is correct or incorrect:
Option A) Multiple OUTPUT statements can be coded for 1 single job step. - This option is correct. In JCL, multiple OUTPUT statements can be coded for a single job step. Each OUTPUT statement specifies the destination and attributes for the output data set.
Option B) The OUTPUT statement can be used to control the authorization of the submitting user. - This option is incorrect. The OUTPUT statement in JCL is used to specify the destination and attributes of the output data set. It does not control the authorization of the submitting user.
Option C) The OUTPUT statement at job level must be coded before the JOB statement. - This option is incorrect. The OUTPUT statement is not used at the job level. It is used within a job step to specify the output data set for that specific step.
Option D) The OUTPUT statement cannot override the MSGCLASS parameter on the JOB statement. - This option is correct. The MSGCLASS parameter on the JOB statement specifies the output message class for the entire job. The OUTPUT statement cannot override this parameter and does not affect the message class.
The correct answers are A) Multiple OUTPUT statements can be coded for 1 single job step and D) The OUTPUT statement cannot override the MSGCLASS parameter on the JOB statement.