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 - In Job processing, what happens in Hard copy stage?
A - Selection of Initiator for execution of Job
Answer : C
Explanation
In hard copy stage, output of job is moved to spool output.
Q 3 - What is the purpose of coding NOTIFY 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 : D
Explanation
The system sends the success or failure message (Maximum Condition Code) to the user specified in this parameter. Syntax : NOTIFY="userid | &SYSUID"
Q 4 - What will happen to Step2 if Step1 abend with some error?
//TXXXXXX JOB (XXXXX), XXXX //STEP1 EXEC PGM = PR1 //STEP2 EXEC PGM = PR2, COND = ONLY
Answer : B
Explanation
Step2 will be executed as step1 abended and we have coded ONLY parameter which means this step will execute only if the previous steps abend.
Q 5 - Which parameter is used to check the syntax of a JCL without executing it?
Answer : D
Explanation
TYPRUN = SCAN checks the syntax errors of the JCL without executing it.
Answer : D
Explanation
IEBUPDTE is used to update PDS
Q 7 - FORCE option in GDG's deletes the GDG versions and the GDG base. If any of the GDG versions are set with an expiration date which is yet to expire, then those are not deleted and hence the GDG base is retained. 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 - If we want to use a GDG which is already created by some job, then how to use the reference of the last generation in a JCL?
Answer : C
Explanation
To refer the last generation of a GDG, we use the reference as (+0).
Q 10 - Which utility is use to compile a COBOL program?
Answer : C
Explanation
We use IGYCRCTL utility to compile a COBOL program.