Multiple choice technology mainframe

What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step ?

  1. DD

  2. RUN

  3. EXEC

  4. SYSOUT

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

EXEC statement initiates a job step in JCL, assigns the step name, and specifies the program or procedure to execute. DD defines data sets, RUN is not a JCL statement, and SYSOUT controls output classification.

AI explanation

To answer this question, you need to understand the concept of job steps in job control language (JCL).

The statement that marks the beginning of a job step, assigns a name to the step, and identifies the program or cataloged or in-stream procedure to be executed in the step is the EXEC statement.

Let's go through each option to understand why it is correct or incorrect:

Option A) DD - This option is incorrect. The DD statement is used in JCL to define and describe the input and output data sets used by a program or job step. It is not used to mark the beginning of a job step or identify the program to be executed.

Option B) RUN - This option is incorrect. The RUN statement is not a valid statement in JCL. It is not used to mark the beginning of a job step or identify the program to be executed.

Option C) EXEC - This option is correct. The EXEC statement is used in JCL to mark the beginning of a job step, assign a name to the step, and identify the program or cataloged or in-stream procedure to be executed in the step.

Option D) SYSOUT - This option is incorrect. The SYSOUT statement is used in JCL to specify the output destination and characteristics for the program or job step. It is not used to mark the beginning of a job step or identify the program to be executed.

The correct answer is C) EXEC. This option is correct because the EXEC statement is used to mark the beginning of a job step, assign a name to the step, and identify the program or cataloged or in-stream procedure to be executed in the step.