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 does JCL stands for?
Answer : C
Explanation
JCL stands for Job Control Language which provides the specifications necessary to process a job.
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 - What will happen to Step2 if Step1 executes with RC=0?
//TXXXXXX JOB (XXXXX), XXXX //STEP1 EXEC PGM = PR1 //STEP2 EXEC PGM = PR2, COND = (4, LE, STEP1)
Answer : B
Explanation
It will read the condition on step2 as 4 Less than 0, which is false, so step will be executed. If condition is true then only the step will be bypassed.
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 - What is use of DSN parameter in DD statement?
A - Space required for the dataset
Answer : D
Explanation
The DSN parameter refers to the physical dataset name of a newly created or existing dataset. The DSN value can be made up of sub-names each of 1 to 8 characters length, separated by periods and of total length of 44 characters (alphanumeric).
Answer : D
Explanation
IEBUPDTE is used to update PDS
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 - What will be the output of following JCL which is calling a catalog procedure?
//TXXXXXJ JOB ,, NOTIFY = &SYSUID, CLASS = A, MSGCLASS = X // JCLLIB ORDER=XXXXX.PROC.LIBRARY //DATA1 EXEC PROC = PROC1, TIME = 3
Answer : B
Explanation
We are overriding the TIME parameter inside PROC1.
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 used to run a COBOL-DB2 program?
Answer : B
Explanation
IKJEFT01 utility is used to run a COBOL-DB2 program.