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 is the purpose of coding RESTART parameter in job statement?
A - Assign a job-class to a Job which decides the nature of job
B - To specify the output destination for the system and Job messages when the job is complete
Answer : C
Explanation
RESTART is used to restart a job from a particular step. Syntax : RESTART=* | STEPNAME
Q 4 - What will happen to Step2 if Step1 executes with RC=0?
//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 - Which parameter is used to check the syntax of a JCL without executing it?
Answer : D
Explanation
TYPRUN = SCAN checks the syntax errors of the JCL without executing it.
Q 6 - Which utility is used to compare the contents of sequential data sets and partitioned datasets?
Answer : C
Explanation
IEBCOMPR is used to compare the contents of sequential data sets and partitioned datasets.
Q 7 - A job is a unit of work which can be made up of many job steps. Each job step is specified in a Job Control Language (JCL) through a set of Job Control Statements. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - What is the output of following JCL?
//STEP1 EXEC PGM = SORT
//SYSOUT DD SYSOUT = *
//SORTIN DD DSN = input.file.name
//SORTOUT DD DSN = output.file.name
//SYSIN DD *
SORT FIELDS = COPY
INCLUDE=(1,6,CH,EQ,C'TUTORI')
/*
A - It will copy only those rows which starts from TUTORI from input file to output file.
B - It will copy the data from input file to output file and will not eliminate the duplicates
Answer : A
Explanation
It is used to include rows based on the condition that the first 6 characters should start from TUTORI and will ignore the rest.
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.
Answer : C
Explanation
?* is used to mark the end of in-stream data.