- 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 - 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 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 - Which of the parameters can be coded on both JOB and EXEC?
Answer : D
Explanation
All these parameters can be coded on JOB as well as EXEC. Some other examples are REGION & ADDRSPC
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 - What is use of DISP parameter in DD statement?
A - Space required for the dataset
Answer : C
Explanation
The DISP parameter is used to describe the status of the dataset, disposition at the end of the job step on normal and abnormal completion. DISP is not required in a DD statement only when the dataset gets created and deleted in the same job step (like the temporary datasets). Syntax : DISP=(status, normal-disposition, abnormal-disposition)
Q 6 - Which utility is used to compare the contents of sequential data sets and partitioned datasets?
Answer : C
Explanation
IEBCOMPR is used to compare the contents of sequential data sets and partitioned datasets.
Q 7 - Generation Data Groups (GDGs) are group of datasets related to each other by a common name. The common name is referred as GDG base and each dataset associated with the base is called a GDG version. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - What is the name of program which will be executed in the STEP1?
//XXXXX JOB ,, NOTIFY = SYSUID, CLASS = A, MSGCLASS = X // SET A = PROG1 //STEP1 EXEC PGM = &A //DD1 DD DSN = FILE1, DISP = SHR
Answer : B
Explanation
SET statement is used to assign the values to symbolic parameters. So value of A is PROG1. So PROG1 will be executed in STEP1.
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 is the output of following JCL?
//STEP1 EXEC PGM = IEBEDIT //SYSUT1 DD DSN = XXXXXX.XXXX.XXXX(XXXXXXXX), DISP = SHR //SYSUT2 DD SYSOUT = (*,INTRDR) //SYSPRINT DD SYSOUT = * //SYSIN DD * EDIT TYPE = INCLUDE, STEPNAME = (STEP3,STEP7) /*
A - It will execute only STEP1
B - It will exclude STEP3 & STEP4 from execution
Answer : C
Explanation
This utility is used to run only particular steps in a JCL.
To Continue Learning Please Login
Login with Google