- 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
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 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 operation is performed by JOB statement?
Answer : A
Explanation
Specifies the information required for SPOOLing of the job such as job id, priority of execution, user-id to be notified upon completion of the job.
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 = (0, EQ, STEP1)
Answer : A
Explanation
It will read the condition on step2 as 0 EQUAL 0, which is true, so step will be bypassed. If condition is true then the step will be bypassed.
Q 4 - A JCLLIB statement is used to identify the private libraries used in the job. It can be used both with instream and cataloged procedures. 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 - 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.
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.
Q 9 - In order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Answer : B
Explanation
COND=(12,LT,STEP1), it will read the condition as 12 less than 8, which is false, so this step will be executed.
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.