Simple JCL Quiz

Description: Simple JCL Quiz
Number of Questions: 5
Created by:
Tags: jcl
Attempted 0/5 Correct 0 Score 0

How many data sets can exist within one GDG?

  1. 255

  2. 126

  3. 256

  4. 127


Correct Option: A
Explanation:

To solve this question, the user needs to know about GDG (Generation Data Group) and how it works.

A Generation Data Group (GDG) is a collection of related datasets that are created with a common name. Each dataset in a GDG is assigned a unique generation number. The generation number identifies the dataset's relative position within the group.

A GDG can consist of up to 255 datasets. The first dataset in the group is assigned generation number 0, the second is assigned generation number 1, and so on, up to the maximum number of 255.

So, the answer to this question is:

The Answer is: A (255)

PARM is an Keyword parameter of which statement?

  1. EXEC

  2. DD

  3. PARAM

  4. JOB


Correct Option: C

AI Explanation

To answer this question, we need to understand the different JCL (Job Control Language) statements and their keyword parameters.

The correct answer is C) PARAM.

Explanation: The PARAM keyword parameter is used in the PROC statement. It is used to pass values to symbolic parameters defined in the PROC or PARM statements. The PARAM keyword allows you to pass values to these parameters dynamically at run-time.

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

Option A) EXEC - The EXEC statement is used to specify an execution control statement or a JCL procedure to be performed. It does not have a PARM keyword parameter.

Option B) DD - The DD (Data Definition) statement is used to define and describe the input, output, and intermediate data sets used by a program. It does not have a PARM keyword parameter.

Option C) PARAM - The PARAM keyword parameter is used in the PROC statement to pass values to symbolic parameters defined in the PROC or PARM statements. This option is correct.

Option D) JOB - The JOB statement is used to identify the beginning of a job and to specify job-level control information. It does not have a PARM keyword parameter.

Therefore, the correct answer is C) PARAM.

We know that we can have a maximum of 255 "sequential data sets" that can be concatenated together, but what will be the maximum "partitioned data sets" that can be concatenated

  1. 16

  2. 32

  3. 31

  4. 64


Correct Option: A

AI Explanation

To answer this question, we need to understand the concept of concatenating partitioned data sets.

In IBM Mainframe systems, partitioned data sets (PDS) are a type of dataset that can contain multiple members. Each member within a PDS is an independent data set with its own name and attributes.

When concatenating PDSs, the maximum number of members that can be concatenated together is determined by the system's maximum number of available concatenation slots.

In the case of this question, the correct answer is A) 16. This means that a maximum of 16 PDSs can be concatenated together.

Options B) 32, C) 31, and D) 64 are incorrect. These options do not represent the correct maximum number of partitioned data sets that can be concatenated together.

If both the JOBLIB and STEPLIB statements are coded, which specification will the JCL choose to perform the step

  1. JOBLIB Overriding STEPLIB step will be performed

  2. None of Them

  3. Question is false


Correct Option: A
- Hide questions