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

Explanation

DD statement is used to include name of the dataset to operate.

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 STEPLIB statement is used in order to identify the location of the program to be executed within a Job Step. The STEPLIB statement is specified after the EXEC statement and before the DD statement of the job step. State whether true or false?

A - True

B - False

Answer : A

Explanation

This statement is correct.

Q 5 - Which parameter is used to check the syntax of a JCL without executing it?

A - CLASS=0

B - PRTY=N

C - TYPRUN = HOLD

D - TYPRUN=SCAN

Answer : D

Explanation

TYPRUN = SCAN checks the syntax errors of the JCL without executing it.

Q 6 - Which utility is used to create, delete, rename, catalog, uncatalog datasets (other than PDS) and usually used to manage VSAM datasets?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IDCAMS

Answer : D

Explanation

IDCAMS is used to create, delete, rename, catalog, uncatalog datasets (other than PDS) and usually used to manage VSAM datasets.

Q 7 - The GDG versions can have same or different DCB parameters. An initial model DCB can be defined to be used by all versions, but it can be overridden when creating new versions. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 8 - What statements are invalid in a procedure?

A - JOB statement

B - Delimiter statement

C - Null statement

D - All of these

Answer : D

Explanation

A procedure must not contain following statements : JOB statement, JOBLIB DD statement, DD * , DD DATA - In-stream data, delimiter statement, Null statement, JES statements, PEND statement (for cataloged procedures)

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