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 - 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 JCLLIB statement is used to identify the private libraries used in the job. It can be used both with instream and cataloged procedures. State whether true or false?

A - True

B - False

Answer : A

Explanation

This statement is correct.

Answer : D

Explanation

A temporary dataset is the one that is created and deleted within a job and is declared as DSN=&&TEMP. Do not mention the DSN parameters with this.

Q 6 - Which utility is used for copy, merge, compress, backs up, or restores partitioned data sets?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IEBUPDTE

Answer : B

Explanation

IEBCOPY is used to copy, merge, compress, backs up, or restores partitioned data sets.

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 sort card you will use to copy the data from one dataset to another dataset?

A - SORT FIELDS=COPY

B - SORT FIELDS=MOVE

C - SORT FIELDS=COPY(ALL)

D - SORT FIELDS=MOVE(ALL)

Answer : A

Explanation

In the SORT step mention the SYSIN & SYSOUT dataset name & in sort card code SORT FIELDS=COPY to copy data from input file to output file.

Q 9 - Which method you will use to skip a particular step in JCL?

A - SKIP

B - COND

C - ASKIP

D - None

Answer : B

Explanation

You can use COND with the step. If condition is true step will be bypassed.

Q 10 - What DISP parameter we mention for creation of temporary dataset so that we can use it in later steps?

A - DISP=(NEW,CATLG,DLTE)

B - DISP=(NEW,DLTE)

C - DISP=(NEW,PASS)

D - DISP=(NEW,CTLG)

Answer : C

Explanation

PASS is valid only for normal disposition. This is used when the dataset is to be passed and processed by the next job step in a JCL.

jcl_questions_answers.htm
Advertisements