- 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 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 is the purpose of coding MSGCLASS parameter in job statement?
A - Assign a job-class to a Job which decides the nature of job
B - To specify the output destination for the system and Job messages when the job is complete
Answer : B
Explanation
To specify the output destination for the system and Job messages when the job is complete. Syntax : MSGCLASS = CLASS
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 - How you will define a temporary dataset in JCL?
A - DSN = &&TEMP with DSN parameters
B - DSN = temp-file-name with DSN parameters
Answer : D
Explanation
A temporary dataset is the one that is created and deleted within a job and is declared as DSN=&&TEMP. Do not mention the DSN parameters with this.
Q 6 - Which utility is used for copy, merge, compress, backs up, or restores partitioned data sets?
Answer : B
Explanation
IEBCOPY is used to copy, merge, compress, backs up, or restores partitioned data sets.
Q 7 - A CHKPT is the parameter coded for multi-volume QSAM datasets in a DD statement. When a CHKPT is coded as CHKPT=EOV, a checkpoint is written to the dataset specified in the SYSCKEOV statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - What sort card you will use to copy the data from one dataset to another dataset?
Answer : A
Explanation
In the SORT step mention the SYSIN & SYSOUT dataset name & in sort card code SORT FIELDS=COPY to copy data from input file to output file.
Q 9 - Which method you will use to skip a particular step in JCL?
Answer : B
Explanation
You can use COND with the step. If condition is true step will be bypassed.
Q 10 - What DISP parameter we mention for creation of temporary dataset so that we can use it in later steps?
Answer : C
Explanation
PASS is valid only for normal disposition. This is used when the dataset is to be passed and processed by the next job step in a JCL.