![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 - What are the various stages of Job processing?
A - Input → Execution → Conversion → Hard copy → Output → Purge
B - Input → Conversion → Execution → Hard copy → Output → Purge
C - Input → Conversion → Execution → Output → Hard copy → Purge
Answer : C
Explanation
Correct answer is C. Job is processed in this manner.
Q 2 - What does JES stands for?
Answer : C
Explanation
The Operating System uses Job Entry System (JES) to receive jobs into the Operating System, to schedule them for processing and to control the output.
Q 3 - What will happen to Step2 if Step1 executes with RC=0?
//TXXXXXX JOB (XXXXX), ’XXXX’ //STEP1 EXEC PGM = PR1 //STEP2 EXEC PGM = PR2, COND = ONLY
Answer : A
Explanation
Step2 will be bypassed as we have coded ONLY, which means Step will be executed only if the previous steps abend.
Q 4 - Calling a procedure from within a procedure is called a nested procedure. Procedures can be nested up to 15 levels. The nesting can be completely in-stream or cataloged. We cannot code an in-stream procedure within a cataloged procedure. State whether true or false?
Answer : A
Explanation
This statement is correct.
Q 5 - What is use of DCB parameter in DD statement?
A - Space required for the dataset
Answer : B
Explanation
The Data Control Block (DCB) parameter details the physical characteristics of a dataset. This parameter is required for datasets that are newly created in the job step. LRECL is the length of each record held within the dataset. RECFM is the record format of the dataset.
Answer : D
Explanation
SORT utility is used to sort a file in a particular order based on the sort card.
Q 7 - A job is a unit of work which can be made up of many job steps. Each job step is specified in a Job Control Language (JCL) through a set of Job Control Statements. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - What will be the output of following JCL which is calling a catalog procedure?
//TXXXXXJ JOB ,, NOTIFY = &SYSUID, CLASS = A, MSGCLASS = X // JCLLIB ORDER=XXXXX.PROC.LIBRARY //DATA1 EXEC PROC = PROC1, TIME = 3
Answer : B
Explanation
We are overriding the TIME parameter inside PROC1.
Answer : C
Explanation
We use & for symbolic parameters.
Q 10 - Calling a procedure from within a procedure is called a nested procedure. Procedures can be nested up to 15 levels. State whether true or false?
Answer : B
Explanation
This is self explanatory.
To Continue Learning Please Login