Tag: mainframe

Questions Related to mainframe

  1. a) Cluster name

  2. b) Data component name

  3. c) Index component name

  4. d) b and c


Correct Option: B
  1. a) At the cluster level

  2. b) At the data level only

  3. c) At the index level only

  4. d) At both data and index levels


Correct Option: B
  1. a) Creating new Datasets

  2. b) Deleting Datasets

  3. c) Removing a dataset from the Catalog

  4. d) All of the above


Correct Option: D
  1. a) Only X is TRUE

  2. b) Only X and Y are TRUE

  3. c) Only X, Y and Z are TRUE

  4. d) Only Y is TRUE


Correct Option: C

What does the COUNT statement in REPRO do ?

  1. a) Counts the Number of records copied and displays in SYSOUT

  2. b) Counts the Number of records copied and displays in SYSPRINT

  3. c) Specifies the numebr of records to be copied

  4. d) None of the above


Correct Option: C
  1. a) Copy one flat file to another

  2. b) Copy one PDS to another

  3. c) Copy one VSAM to another

  4. d) All of the above


Correct Option: B
  1. a) TEST.DATASET gets compressed

  2. b) TEST.DATASET gets overwritten

  3. c) TEST.DATASET gets deleted

  4. d) S04 ABEND


Correct Option: A

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.

  1. 0

  2. +1

  3. -1

  4. None of the Above


Correct Option: B