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

Explanation

Specifies the PROC/Program to be executed. In the above example, a SORT program is being executed (i.e., sorting the input data in a particular order).

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 - A SET statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the JCL. State whether true or false?

A - True

B - False

Answer : A

Explanation

This statement is correct.

Q 5 - Which step will be executed after Step1, if Step1 executes with RC=4?

//TXXXXXX JOB (XXXXX), ’XXXX’
//STEP1 EXEC PGM = PR1
// IF STEP1.RC GT 0 THEN                      
//STEP2 EXEC PGM = PR2
// ELSE
//STEP3 EXEC PGM = PR3
// END-IF

A - Step2 will be executed

B - Step3 will be executed

C - None of these

Answer : A

Explanation

If condition is 4 Greater than 0 and this condition is true, so Step2 will be executed and Step3 will be bypassed.

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

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 8 - What is the name of program which will be executed in the STEP1?

//XXXXX JOB ,, NOTIFY = SYSUID, CLASS = A, MSGCLASS = X
//      SET A = PROG1
//STEP1    EXEC PGM = &A
//DD1      DD   DSN = FILE1, DISP = SHR

A - A

B - PROG1

C - It will not recognize the value of A

D - None of these

Answer : B

Explanation

SET statement is used to assign the values to symbolic parameters. So value of A is PROG1. So PROG1 will be executed in STEP1.

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 - Which statement is used to end the in-stream procedure in a JCL?

A - STOP

B - END

C - PEND

D - None of these

Answer : C

Explanation

PEND statement is used to end the in-stream procedure.

jcl_questions_answers.htm
Advertisements