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.

Questions and Answers

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 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)

A - Step2 will be bypassed

B - Step2 will be executed

C - None of these

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 - A JCLLIB statement is used to identify the private libraries used in the job. It can be used both with instream and cataloged procedures. State whether true or false?

A - True

B - False

Answer : A

Explanation

This statement is correct.

Answer : B

Explanation

The Data Control Block (DCB) parameter details the physical characteristics of a dataset. This parameter is required for datasets that are newly created in the job step. LRECL is the length of each record held within the dataset. RECFM is the record format of the dataset.

Q 6 - Which utility is used to sort a file in JCL?

A - DFHSORT

B - DHSORT

C - MERGE

D - SORT

Answer : D

Explanation

SORT utility is used to sort a file in a particular order based on the sort card.

Q 7 - SCRATCH option in GDG's physically deletes the generation when it is uncataloged. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 8 - What will be the output of following JCL which is calling a catalog procedure?

//TXXXXXJ  JOB ,, NOTIFY = &SYSUID, CLASS = A, MSGCLASS = X
//    JCLLIB  ORDER=XXXXX.PROC.LIBRARY
//DATA1 EXEC PROC = PROC1, TIME = 3

A - TIME parameter inside PROC1 will not be overridden

B - TIME parameter coded in PROCEDURE PROC1 will be replaced with TIME parameter overridden in the JCL i.e TIME = 3

C - It will give abend

D - None of these

Answer : B

Explanation

We are overriding the TIME parameter inside PROC1.

Q 9 - In order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

A - COND=(12,GT,STEP1)

B - COND=(12,LT,STEP1)

C - COND=(8,EQ,STEP1)

D - RESTART

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 - 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?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

jcl_questions_answers.htm
Advertisements