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 - In Job processing, what happens in Execution stage?
A - Selection of Initiator for execution of Job
Answer : A
Explanation
When the job reaches its highest priority, it is taken up for execution from the job queue. The JCL is read from the SPOOL, the program is executed and the output is redirected to the corresponding output destination as specified in the JCL.
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 = ONLY
Answer : A
Explanation
Step2 will be bypassed as we have coded ONLY, which means Step will be executed only if the previous steps abend.
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 - What is use of SPACE parameter in DD statement?
A - Space required for the dataset
Answer : A
Explanation
The SPACE parameter specifies the space required for the dataset in the DASD (Direct Access Storage Disk). Syntax : SPACE=(spcunits, (pri, sec, dir), RLSE)
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 - PROC1 is a in-stream procedure in a JCL and with this name PROC1 one catalog procedure exists, then which procedure will be invoked - catalog or in-stream?
//TXXXXX JOB ,, NOTIFY = &SYSUID // JCLLIB ORDER = (XXXXX.PROCLIB) //PROC1 PROC //STEP1 EXEC PGM = IEFBR14 //DD1 DD DSN = TXXXXX.TEST, SPACE = (TRK, (1,1)), // DCB = (RECFM = FB, BLKSIZE = 8000, LRECL = 80), // DISP = (NEW, DELETE) //PEND //STEP1 EXEC PROC1
Answer : A
Explanation
In-stream procedure will be invoked.
Q 9 - Up to which level cataloged and in-stream procedure can invoke other procedure?
Answer : B
Explanation
Cataloged and In-stream procedure can invoke other procedure up to 15 levels only.
Q 10 - Which utility is use to compile a COBOL program?
Answer : C
Explanation
We use IGYCRCTL utility to compile a COBOL program.