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

Specifies the PROC/Program to be executed. In the above example, a SORT program is being executed (i.e., sorting the input data in a particular order).

Answer : C

Explanation

To specify the priority of the job within a job class. If this parameter is not specified, then the job is added to the end of the queue in the specified CLASS. Syntax : PRTY=N

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.

Answer : D

Explanation

The DSN parameter refers to the physical dataset name of a newly created or existing dataset. The DSN value can be made up of sub-names each of 1 to 8 characters length, separated by periods and of total length of 44 characters (alphanumeric).

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 - FORCE option in GDG's deletes the GDG versions and the GDG base. If any of the GDG versions are set with an expiration date which is yet to expire, then those are not deleted and hence the GDG base is retained. 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 - Which statement is used to end the in-stream procedure in a JCL?

A - STOP

B - END

C - PEND

D - None of these

Answer : C

Explanation

PEND statement is used to end the in-stream procedure.

jcl_questions_answers.htm
Advertisements