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 = ONLY

A - Step2 will be bypassed

B - Step2 will be executed

C - None of these

Answer : A

Explanation

Step2 will be bypassed as we have coded ONLY, which means Step will be executed only if the previous steps abend.

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

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 - 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 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
    INCLUDE=(1,6,CH,EQ,C'TUTORI')
/*

A - It will copy only those rows which starts from TUTORI from input file to output file.

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

It is used to include rows based on the condition that the first 6 characters should start from TUTORI and will ignore the rest.

Q 9 - How to send the execution status of a job to a user?

A - STATUS

B - MESSAGE

C - NOTIFY

D - ALERT

Answer : C

Explanation

We use NOTIFY parameter to send the status of a job.

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