JCL Online Quiz


Advertisements


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 - 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 JOBLIB statement is used in order to identify the location of the program to be executed in a JCL. The JOBLIB statement is specified after the JOB statement and before the EXEC statement. This can be used only for the in stream procedures and programs. 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 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 - A job is a unit of work which can be made up of many job steps. Each job step is specified in a Job Control Language (JCL) through a set of Job Control Statements. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 8 - Can a Catalogued procedure call an In-stream procedure?

A - No

B - Yes

Answer : B

Explanation

Yes, a catalog procedure can call a in-stream procedure.

Q 9 - What are the type of procedure in JCL?

A - Cataloged

B - Uncataloged

C - In-stream

D - Both A & D

Answer : D

Explanation

Catalog and in-stream procedures are used in JCL.

Q 10 - How do we pass values to a program through JCL?

A - In-stream data

B - PARM

C - Both A & B

D - Not possible

Answer : C

Explanation

We can pass data to a program either by in-stream data (DD *) or by using PARM parameter.


jcl_questions_answers.htm

Advertisements
E-Books Store