![JCL Tutorial](/jcl/images/jcl-mini-logo.jpg)
- 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.
![Questions and Answers](/images/questions_and_answers.png)
Q 1 - In Job processing, what happens in Input stage?
A - Selection of Initiator for execution of Job
Answer : C
Explanation
In input stage, Job is taken as an input to JES.
Q 2 - In Job processing, what happens in Purge stage?
A - Selection of Initiator for execution of Job
Answer : D
Explanation
When the job is complete, the allocated resources and the JES SPOOL space is released. In order to store the job log, we need to copy the job log to another dataset before it is released from the SPOOL.
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 - A STEPLIB statement is used in order to identify the location of the program to be executed within a Job Step. The STEPLIB statement is specified after the EXEC statement and before the DD statement of the job step. State whether true or false?
Answer : A
Explanation
This statement is correct.
Q 5 - Temporary datasets need storage only for the job duration and are deleted at job completion. Such datasets are represented as DSN=&name or simply without a DSN specified. State whether true or false?
Answer : A
Explanation
This statement is correct.
Answer : D
Explanation
IEFBR14 is no operation utility. Used to return control to user and terminate. It is usually used to create empty dataset or delete an existing dataset.
Q 7 - SCRATCH option in GDG's physically deletes the generation when it is uncataloged. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Answer : B
Explanation
Yes, a catalog procedure can call a in-stream procedure.
Answer : B
Explanation
PROC is used for declaring a procedure.
Q 10 - How do we pass values to a program through JCL?
Answer : C
Explanation
We can pass data to a program either by in-stream data (DD *) or by using PARM parameter.