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 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 will happen to Step2 if Step1 executes with RC=0?
//TXXXXXX JOB (XXXXX), XXXX //STEP1 EXEC PGM = PR1 //STEP2 EXEC PGM = PR2, COND = (0, EQ, STEP1)
Answer : A
Explanation
It will read the condition on step2 as 0 EQUAL 0, which is true, so step will be bypassed. If condition is true then 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 = EVEN
Answer : B
Explanation
Step2 will be executed as we have coded EVEN which means this step will be executed even if all other steps abends or not. If you will code EVEN then step will be executed irrespective of results from other steps.
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)
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 - A CHKPT is the parameter coded for multi-volume QSAM datasets in a DD statement. When a CHKPT is coded as CHKPT=EOV, a checkpoint is written to the dataset specified in the SYSCKEOV statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - What statements are invalid in a procedure?
Answer : D
Explanation
A procedure must not contain following statements : JOB statement, JOBLIB DD statement, DD * , DD DATA - In-stream data, delimiter statement, Null statement, JES statements, PEND statement (for cataloged procedures)
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 - Calling a procedure from within a procedure is called a nested procedure. Procedures can be nested up to 15 levels. State whether true or false?
Answer : B
Explanation
This is self explanatory.