Multiple choice technology programming languages

If the location of the program is to be specific to a job step, then the location can be specified in the following JCL parameter

  1. JOBLIB

  2. PGM

  3. STEPLIB

  4. Any of the above

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

To solve this question, the user needs to know about JCL (Job Control Language) and the different parameters that can be used to customize a job step.

The JOBLIB and STEPLIB parameters are used to specify the location of program libraries that contain the executable programs required for a job. The PGM parameter is used to specify the name of the program to be executed for a particular job step.

Option A - JOBLIB: The JOBLIB parameter is used to specify the location of program libraries that contain the executable programs required for the entire job. This parameter is not specific to a particular job step.

Option B - STEPLIB: The STEPLIB parameter is used to specify the location of program libraries that contain the executable programs required for a particular job step. This option is correct as it provides a way to specify the location of the program specific to a job step.

Option C - Any of the above: This option is incorrect as the JOBLIB parameter cannot be used to specify the location of the program for a specific job step.

Option D - PGM: The PGM parameter is used to specify the name of the program to be executed for a particular job step. This parameter does not specify the location of the program.

Therefore, the correct answer is:

The Answer is: B. STEPLIB

AI explanation

The STEPLIB DD statement specifies a program library that applies only to a single job step, letting that step search a specific load library for its program. JOBLIB, by contrast, applies to every step in the job unless overridden, and PGM merely names which program to execute rather than where to find it.