- 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 - 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 - 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 - 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 - If COND parameter is coded on both JOB and EXEC statement, then the condition on JOB is checked before checking the condition on EXEC statement. 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 - How the file will be sorted if you will use the following sort card?
//STEP1 EXEC PGM = SORT //SYSPRINT DD SYSOUT = * //SYSOUT DD SYSOUT = * //SORTIN DD DSN = input.data.set,DISP=SHR //SORTOUT DD DSN=output.data.set //SYSIN DD * SORT FIELDS = (1,06,CH,D) /*
Answer : A
Explanation
This is self explanatory.
Q 7 - LIMIT option in GDG's specifies the maximum number of versions that the GDG base can hold. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - PROC1 is a in-stream procedure in a JCL and with this name PROC1 one catalog procedure exists, then which procedure will be invoked - catalog or in-stream?
//TXXXXX JOB ,, NOTIFY = &SYSUID // JCLLIB ORDER = (XXXXX.PROCLIB) //PROC1 PROC //STEP1 EXEC PGM = IEFBR14 //DD1 DD DSN = TXXXXX.TEST, SPACE = (TRK, (1,1)), // DCB = (RECFM = FB, BLKSIZE = 8000, LRECL = 80), // DISP = (NEW, DELETE) //PEND //STEP1 EXEC PROC1
Answer : A
Explanation
In-stream procedure will be invoked.
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.