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.
Answer : C
Explanation
JCL statements are coded on 80 bytes records.
Q 2 - In Job processing, what happens in Purge stage?
A - Selection of Initiator for execution of Job
Answer : D
Explanation
When the job is complete, the allocated resources and the JES SPOOL space is released. In order to store the job log, we need to copy the job log to another dataset before it is released from the SPOOL.
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 - Calling a procedure from within a procedure is called a nested procedure. Procedures can be nested up to 15 levels. The nesting can be completely in-stream or cataloged. We cannot code an in-stream procedure within a cataloged procedure. State whether true or false?
Answer : A
Explanation
This statement is correct.
Q 5 - RESTART parameter is coded in the JOB or EXEC statement and it helps in manual restart of the JOB/STEP after the job failure. State whether true or false?
Answer : A
Explanation
This statement is correct.
Answer : D
Explanation
SORT utility is used to sort a file in a particular order based on the sort card.
Q 7 - Account information refers to the person or group to which the CPU time is owed. It is set as per the rules of the company owning the mainframes. If it is specified as (*), then it takes the id of the user, who has currently logged into the Mainframe Terminal. 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 - Which utility is use to compile a COBOL program?
Answer : C
Explanation
We use IGYCRCTL utility to compile a COBOL program.