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

To specify the output destination for the system and Job messages when the job is complete. Syntax : MSGCLASS = CLASS

Q 3 - Which of the parameters can be coded on both JOB and EXEC?

A - TIME

B - COND

C - ACCT

D - All of these

Answer : D

Explanation

All these parameters can be coded on JOB as well as EXEC. Some other examples are REGION & ADDRSPC

Q 4 - If COND parameter is coded on both JOB and EXEC statement, then the condition on JOB is checked before checking the condition on EXEC statement. State whether true or false?

A - True

B - False

Answer : A

Explanation

This statement is correct.

Answer : C

Explanation

The DISP parameter is used to describe the status of the dataset, disposition at the end of the job step on normal and abnormal completion. DISP is not required in a DD statement only when the dataset gets created and deleted in the same job step (like the temporary datasets). Syntax : DISP=(status, normal-disposition, abnormal-disposition)

Q 6 - Which utility is used to compare the contents of sequential data sets and partitioned datasets?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IEBUPDTE

Answer : C

Explanation

IEBCOMPR is used to compare the contents of sequential data sets and partitioned datasets.

Q 7 - Generation Data Groups (GDGs) are group of datasets related to each other by a common name. The common name is referred as GDG base and each dataset associated with the base is called a GDG version. 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 - What is the output of following JCL?

//STEP1  EXEC PGM = IEBEDIT                                   
//SYSUT1   DD  DSN = XXXXXX.XXXX.XXXX(XXXXXXXX), DISP = SHR    
//SYSUT2   DD  SYSOUT = (*,INTRDR)                              
//SYSPRINT DD  SYSOUT = *                                       
//SYSIN    DD  *                                              
  EDIT TYPE = INCLUDE, STEPNAME = (STEP3,STEP7)                        
/* 

A - It will execute only STEP1

B - It will exclude STEP3 & STEP4 from execution

C - It will execute only STEP3 & STEP4

D - None of these

Answer : C

Explanation

This utility is used to run only particular steps in a JCL.

jcl_questions_answers.htm
Advertisements