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

Q 3 - How much time Step2 will have for execution, if Step1 will take 2.5 minutes?

//TXXXXXX JOB (XXXXX), ’XXXX’, TIME = 4
//STEP1 EXEC PGM = PR1, TIME = 4
//STEP2 EXEC PGM = PR2, TIME = 0

A - 4

B - 0

C - 1.5

D - 2.5

Answer : C

Explanation

The job TIME limit takes precedence over the step time limit. Step2 will have 1.5 minutes for execution. If it goes beyond that, this job will abend.

Q 4 - A SET statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the JCL. 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 - 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 - JOB statement specifies the information required for SPOOLing of the job such as job id, priority of execution, user-id to be notified upon completion of the job. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 8 - What is the output of following JCL?

//STEP1 EXEC PGM = SORT
//SYSOUT DD SYSOUT = *
//SORTIN DD DSN = input.file.name
//SORTOUT DD DSN = output.file.name
//SYSIN DD *
    SORT FIELDS = COPY
    SUM FIELDS = NONE
/*

A - It will copy the data from input file to output file and will eliminate the duplicates

B - It will copy the data from input file to output file and will not eliminate the duplicates

C - It will copy the data from input file to output file

D - None of these

Answer : A

Explanation

SUM FIELDS=NONE is used to eliminate the duplicate rows.

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 - Calling a procedure from within a procedure is called a nested procedure. Procedures can be nested up to 15 levels. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

jcl_questions_answers.htm
Advertisements