JCL statements that are not allowed in procs are

  1. JOB, Delimiter(/*), or Null statements

  2. DD * or DATA statements

  3. Any JES2 or JES3 control statements

  4. All the above


Correct Option: D

AI Explanation

To answer this question, we need to understand the purpose and restrictions of JCL statements within PROCs (procedures).

JCL (Job Control Language) is a scripting language used to define and control batch jobs in mainframe systems. PROCs, also known as procedures or job templates, are reusable sets of JCL statements that can be invoked by multiple jobs.

When using PROCs, there are certain JCL statements that are not allowed within them. Let's go through each option to understand why it is correct or incorrect:

Option A) JOB, Delimiter(/), or Null statements - This option is incorrect. JOB, Delimiter(/), or Null statements are allowed in PROCs. These statements are used to define the job and its attributes.

Option B) DD * or DATA statements - This option is incorrect. DD * or DATA statements are allowed in PROCs. These statements are used to specify input and output data sets for the job steps.

Option C) Any JES2 or JES3 control statements - This option is incorrect. JES2 (Job Entry Subsystem 2) and JES3 (Job Entry Subsystem 3) control statements are allowed in PROCs. These statements are used to control the execution and management of jobs.

Option D) All the above - This option is correct. None of the statements mentioned in the options (JOB, Delimiter(/*), Null statements, DD *, DATA statements, JES2 or JES3 control statements) are disallowed in PROCs. Therefore, the correct answer is D.

In summary, the JCL statements mentioned in the options (JOB, Delimiter(/*), Null statements, DD *, DATA statements, JES2 or JES3 control statements) are all allowed in PROCs.

Find more quizzes: