- 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 - 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 - What will happen to Step2 if Step1 executes with RC=0?
//TXXXXXX JOB (XXXXX), ’XXXX’ //STEP1 EXEC PGM = PR1 //STEP2 EXEC PGM = PR2, COND = EVEN
Answer : B
Explanation
Step2 will be executed as we have coded EVEN which means this step will be executed even if all other steps abends or not. If you will code EVEN then step will be executed irrespective of results from other steps.
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.
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 - In-stream procedure is coded within the same JCL member, it is called an Instream Procedure. It should start with a PROC statement and end with a PEND statement. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - In-stream procedure is coded as a separate member of a PDS. State whether true or false?
Answer : B
Explanation
In-stream procedure is coded inside the JCL itself. So this statement is incorrect.
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 - 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.
To Continue Learning Please Login
Login with Google