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 - How much time Step2 will have for execution, if Step1 will take 2.5 minutes?
//TXXXXXX JOB (XXXXX), ’XXXX’, TIME = 4 //STEP1 EXEC PGM = PR1, TIME = 4 //STEP2 EXEC PGM = PR2, TIME = 0
Answer : C
Explanation
The job TIME limit takes precedence over the step time limit. Step2 will have 1.5 minutes for execution. If it goes beyond that, this job will abend.
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 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 create, delete, rename, catalog, uncatalog datasets (other than PDS) and usually used to manage VSAM datasets?
Answer : D
Explanation
IDCAMS is used to create, delete, rename, catalog, uncatalog datasets (other than PDS) and usually used to manage VSAM datasets.
Q 7 - JOB statement 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. 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 - How to send the execution status of a job to a user?
Answer : C
Explanation
We use NOTIFY parameter to send the status of a job.
Q 10 - Which statement is used to end the in-stream procedure in a JCL?
Answer : C
Explanation
PEND statement is used to end the in-stream procedure.