- JCL Tutorial
- JCL Home
- JCL - Overview
- JCL - Environment
- JCL - JOB Statement
- JCL - EXEC Statement
- JCL - DD Statement
- JCL - Base Library
- JCL - Procedures
- JCL - Conditional Processing
- JCL - Defining Datasets
- JCL - Input/Output Methods
- JCL - Run COBOL Programs
- JCL - Utility Programs
- JCL - Basic Sort Tricks
- JCL Useful Resources
- JCL - Questions and Answers
- JCL - Quick Guide
- JCL - Useful Resources
- JCL - Discussion
JCL Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to JCL Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - What is JCL?
A - JCL is a set of control statements which provides the specifications necessary to process a job.
B - JCL is a interface between programs & MVS operating system.
Answer : D
Explanation
All the statements regarding JCL are correct.
Q 2 - What operation is performed by EXEC statement?
Answer : B
Explanation
Specifies the PROC/Program to be executed. In the above example, a SORT program is being executed (i.e., sorting the input data in a particular order).
Q 3 - How much time Step2 will have for execution, if Step1 will take 2.5 minutes?
//TXXXXXX JOB (XXXXX), ’XXXX’, TIME = 4 //STEP1 EXEC PGM = PR1, TIME = 4 //STEP2 EXEC PGM = PR2, TIME = 0
Answer : C
Explanation
The job TIME limit takes precedence over the step time limit. Step2 will have 1.5 minutes for execution. If it goes beyond that, this job will abend.
Q 4 - What will happen to Step2 if Step1 executes with RC=0?
//TXXXXXX JOB (XXXXX), ’XXXX’ //STEP1 EXEC PGM = PR1 //STEP2 EXEC PGM = PR2, COND = EVEN
Answer : B
Explanation
Step2 will be executed as we have coded EVEN which means this step will be executed even if all other steps abends or not. If you will code EVEN then step will be executed irrespective of results from other steps.
Q 5 - Which step will be executed after Step1, if Step1 executes with RC=4?
//TXXXXXX JOB (XXXXX), ’XXXX’ //STEP1 EXEC PGM = PR1 // IF STEP1.RC GT 0 THEN //STEP2 EXEC PGM = PR2 // ELSE //STEP3 EXEC PGM = PR3 // END-IF
Answer : A
Explanation
If condition is 4 Greater than 0 and this condition is true, so Step2 will be executed and Step3 will be bypassed.
Answer : D
Explanation
IEBUPDTE is used to update PDS
Q 7 - The GDG versions can have same or different DCB parameters. An initial model DCB can be defined to be used by all versions, but it can be overridden when creating new versions. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - What statements are invalid in a procedure?
Answer : D
Explanation
A procedure must not contain following statements : JOB statement, JOBLIB DD statement, DD * , DD DATA - In-stream data, delimiter statement, Null statement, JES statements, PEND statement (for cataloged procedures)
Answer : C
Explanation
We use & for symbolic parameters.
Q 10 - What units are used for allocation of output dataset?
Answer : C
Explanation
In mainframes, we use cylinders, tracks and blocks for allocation of datasets.
To Continue Learning Please Login
Login with Google