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 : C

Explanation

JCL stands for Job Control Language which provides the specifications necessary to process a job.

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 = (4, LE, STEP1)

A - Step2 will be bypassed

B - Step2 will be executed

C - None of these

Answer : B

Explanation

It will read the condition on step2 as 4 Less than 0, which is false, so step will be executed. If condition is true then only 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 = ONLY

A - Step2 will be bypassed

B - Step2 will be executed

C - None of these

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.

Answer : D

Explanation

The DSN parameter refers to the physical dataset name of a newly created or existing dataset. The DSN value can be made up of sub-names each of 1 to 8 characters length, separated by periods and of total length of 44 characters (alphanumeric).

Q 6 - Which utility is used to update PDS?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IEBUPDTE

Answer : D

Explanation

IEBUPDTE is used to update PDS

Q 7 - LIMIT option in GDG's specifies the maximum number of versions that the GDG base can hold. 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 - If we want to use a GDG which is already created by some job, then how to use the reference of the last generation in a JCL?

A - As (-1) generation

B - As (+1) generation

C - As (+0) generation

D - As (-2) generation

Answer : C

Explanation

To refer the last generation of a GDG, we use the reference as (+0).

Q 10 - Which utility is used to run a COBOL-DB2 program?

A - IKJEFT02

B - IKJEFT01

C - IGYCRCTL

D - None of these

Answer : B

Explanation

IKJEFT01 utility is used to run a COBOL-DB2 program.

jcl_questions_answers.htm
Advertisements