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).
Questions
What is TIME=1440 mean
- a) CPU time limit is 1440 minutes (maximum limit)
- b) No CPU time limit is to be applied to this step
- c) CPU time limit is 1440 seconds
- d) None of the above
How do you code instream data in a JCL
- a) //SYSIN DD*
- b) //SYSIN DD *
- c) Both a and b
- d) Neither of the above
What is order of searching of the libraries in a JCL
- a) STEPLIB, JOBLIB, SYS1.LINKLIB
- b) JOBLIB, STEPLIB, SYS1.LINKLIB
- c) SYS1.LINKLIB,STEPLIB, JOBLIB
- d) As defined in the EXEC statement
How many positional parameters are there in job statement?
- a) 1
- b) 2
- c) 3
- d) 4
The maximum number of in-stream procedure you can code in any JCL is ?
- a) 7
- b) 5
- c) 10
- d) 15
The types of processing supported by ESDS are
- a) sequential
- b) skip-sequential
- c) a and b
- d) Neither
Spanned records can be found in
- a) ESDS and KSDS Only
- b) all KSDS, ESDS and RRDS
- c) RRDS and ESDS Only
- d) KSDS Only
Data organization in KSDS is
- a) INDEXED
- b) NUMBERED
- c) LINEAR
- d) NONINDEXED
The default cluster type is
- a) ESDS
- b) RRDS
- c) LDS
- d) KSDS
The REPLACE parameter causes
- a) KSDS records to be replaced by an input record with the same key
- b) ESDS records to be replaced by an input record with the same RBA
- c) RRDS records to be replaced by an input record with the same RRN
- d) a and c
Which of the following entry names are valid for ALTER FREESPACE?
- a) Cluster name
- b) Data component name
- c) Index component name
- d) b and c
When defining a KSDS, the best place to specify CISZ is generally
- a) At the cluster level
- b) At the data level only
- c) At the index level only
- d) At both data and index levels
IEFBR14 can be used for
- a) Creating new Datasets
- b) Deleting Datasets
- c) Removing a dataset from the Catalog
- d) All of the above
IDCAMS can X) Define a VSAM file Y) Load a VSAM File Z) Print a VSAM File
- a) Only X is TRUE
- b) Only X and Y are TRUE
- c) Only X, Y and Z are TRUE
- d) Only Y is TRUE
What does the COUNT statement in REPRO do ?
- a) Counts the Number of records copied and displays in SYSOUT
- b) Counts the Number of records copied and displays in SYSPRINT
- c) Specifies the numebr of records to be copied
- d) None of the above
IEBCOPY is used for ?
- a) Copy one flat file to another
- b) Copy one PDS to another
- c) Copy one VSAM to another
- d) All of the above
What is the maximum no of generations you can have in a GDG
- a) 15
- b) 255
- c) 2056
- d) 6046
What is the OUTPUT of the following step //STEP1 EXEC PGM=IEBCOPY //SYSUT1 = TEST.DATASET //SYSIN DD * COPY INDD=SYSUT1 OUTDD = SYSUT1
- a) TEST.DATASET gets compressed
- b) TEST.DATASET gets overwritten
- c) TEST.DATASET gets deleted
- d) S04 ABEND
JCL statements that are not allowed in procs are
- JOB, Delimiter(/*), or Null statements
- DD * or DATA statements
- Any JES2 or JES3 control statements
- All the above
How is a new GDG coded
- 0
- +1
- -1
- None of the Above