Mainframe JCL and VSAM Quiz

Test your knowledge of IBM mainframe Job Control Language (JCL), VSAM file management, IDCAMS utilities, and Generation Data Groups (GDGs).

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is TIME=1440 mean

  1. a) CPU time limit is 1440 minutes (maximum limit)
  2. b) No CPU time limit is to be applied to this step
  3. c) CPU time limit is 1440 seconds
  4. d) None of the above
Question 2 Multiple Choice (Single Answer)

How do you code instream data in a JCL

  1. a) //SYSIN DD*
  2. b) //SYSIN DD *
  3. c) Both a and b
  4. d) Neither of the above
Question 3 Multiple Choice (Single Answer)

What is order of searching of the libraries in a JCL

  1. a) STEPLIB, JOBLIB, SYS1.LINKLIB
  2. b) JOBLIB, STEPLIB, SYS1.LINKLIB
  3. c) SYS1.LINKLIB,STEPLIB, JOBLIB
  4. d) As defined in the EXEC statement
Question 4 Multiple Choice (Single Answer)

How many positional parameters are there in job statement?

  1. a) 1
  2. b) 2
  3. c) 3
  4. d) 4
Question 5 Multiple Choice (Single Answer)

The maximum number of in-stream procedure you can code in any JCL is ?

  1. a) 7
  2. b) 5
  3. c) 10
  4. d) 15
Question 6 Multiple Choice (Single Answer)

The types of processing supported by ESDS are

  1. a) sequential
  2. b) skip-sequential
  3. c) a and b
  4. d) Neither
Question 7 Multiple Choice (Single Answer)

Spanned records can be found in

  1. a) ESDS and KSDS Only
  2. b) all KSDS, ESDS and RRDS
  3. c) RRDS and ESDS Only
  4. d) KSDS Only
Question 8 Multiple Choice (Single Answer)

Data organization in KSDS is

  1. a) INDEXED
  2. b) NUMBERED
  3. c) LINEAR
  4. d) NONINDEXED
Question 9 Multiple Choice (Single Answer)

The default cluster type is

  1. a) ESDS
  2. b) RRDS
  3. c) LDS
  4. d) KSDS
Question 10 Multiple Choice (Single Answer)

The REPLACE parameter causes

  1. a) KSDS records to be replaced by an input record with the same key
  2. b) ESDS records to be replaced by an input record with the same RBA
  3. c) RRDS records to be replaced by an input record with the same RRN
  4. d) a and c
Question 11 Multiple Choice (Single Answer)

Which of the following entry names are valid for ALTER FREESPACE?

  1. a) Cluster name
  2. b) Data component name
  3. c) Index component name
  4. d) b and c
Question 12 Multiple Choice (Single Answer)

When defining a KSDS, the best place to specify CISZ is generally

  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
Question 13 Multiple Choice (Single Answer)

IEFBR14 can be used for

  1. a) Creating new Datasets
  2. b) Deleting Datasets
  3. c) Removing a dataset from the Catalog
  4. d) All of the above
Question 14 Multiple Choice (Single Answer)

IDCAMS can X) Define a VSAM file Y) Load a VSAM File Z) Print a VSAM File

  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
Question 15 Multiple Choice (Single Answer)

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
Question 16 Multiple Choice (Single Answer)

IEBCOPY is used for ?

  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
Question 17 Multiple Choice (Single Answer)

What is the maximum no of generations you can have in a GDG

  1. a) 15
  2. b) 255
  3. c) 2056
  4. d) 6046
Question 18 Multiple Choice (Single Answer)

What is the OUTPUT of the following step //STEP1 EXEC PGM=IEBCOPY //SYSUT1 = TEST.DATASET //SYSIN DD * COPY INDD=SYSUT1 OUTDD = SYSUT1

  1. a) TEST.DATASET gets compressed
  2. b) TEST.DATASET gets overwritten
  3. c) TEST.DATASET gets deleted
  4. d) S04 ABEND
Question 19 Multiple Choice (Single Answer)

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
Question 20 Multiple Choice (Single Answer)

How is a new GDG coded

  1. 0
  2. +1
  3. -1
  4. None of the Above