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

Q 1 - On how many byte records JCL statements are coded?

A - 16

B - 44

C - 80

D - 32

Answer : C

Explanation

JCL statements are coded on 80 bytes records.

Answer : C

Explanation

JCL is terminated by a null statement which is optional. For a null statement code only // starting from column 1. All the lines after this will not be executed.

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 - When the procedure is separated out from the JCL and coded in a different data store, it is called a Cataloged Procedure. A PROC statement is not mandatory to be coded in a cataloged procedure. 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 - How you will the direct the data to spool using SYSOUT option?

A - SYSOUT=DISP

B - SYSOUT=spool

C - SYSOUT=file-name

D - SYSOUT=*

Answer : D

Explanation

Code SYSOUT=*, then the data will be directed to spool.

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 - What prefix character we use for symbolic parameter?

A - %

B - @

C - &

D - $

Answer : C

Explanation

We use & for symbolic parameters.

Q 10 - What units are used for allocation of output dataset?

A - KB

B - Bytes

C - Cylinders, Tracks & Blocks

D - MB

Answer : C

Explanation

In mainframes, we use cylinders, tracks and blocks for allocation of datasets.


jcl_questions_answers.htm

Advertisements