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

Answer : B

Explanation

The JCL along with the PROC is converted into an interpreted text to be understood by JES and stored into a dataset, which we call as SPOOL.

Answer : A

Explanation

When the job reaches its highest priority, it is taken up for execution from the job queue. The JCL is read from the SPOOL, the program is executed and the output is redirected to the corresponding output destination as specified in the JCL.

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 - Calling a procedure from within a procedure is called a nested procedure. Procedures can be nested up to 15 levels. The nesting can be completely in-stream or cataloged. We cannot code an in-stream procedure within a cataloged procedure. 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.

Answer : A

Explanation

To concatenate the dataset in JCL, code the DD statements continuously & give DDNAME only for first DD like shown below:
//NAME1 DD DSN=file.name1,DISP=SHR
//               DD DSN=file.name2,DISP=SHR
//               DD DSN=file.name3,DISP=SHR

Q 7 - In-stream procedure is coded within the same JCL member, it is called an Instream Procedure. It should start with a PROC statement and end with a PEND statement. State whether true or false?

A - False

B - True

Answer : B

Explanation

This is self explanatory.

Q 8 - PROC1 is a in-stream procedure in a JCL and with this name PROC1 one catalog procedure exists, then which procedure will be invoked - catalog or in-stream?

//TXXXXX  JOB ,, NOTIFY = &SYSUID
//	JCLLIB ORDER = (XXXXX.PROCLIB)
//STEP1    EXEC  PROC1
//PROC1   PROC                                              
//STEP1    EXEC PGM = IEFBR14                                   
//DD1      DD DSN = TXXXXX.TEST, SPACE = (TRK,(1,1)),           
//         DCB=(RECFM = FB, BLKSIZE = 8000, LRECL = 80),
//         DISP=(NEW,DELETE)
//PEND                                                    

A - In-stream procedure

B - Catalog procedure

C - Job will abend

D - None of these

Answer : B

Explanation

Catalog procedure will be invoked.

Q 9 - Which statement is coded in the starting of a procedure?

A - PEND

B - PROC

C - SET

D - START

Answer : B

Explanation

PROC is used for declaring a procedure.

Q 10 - Which utility is used to run a COBOL-DB2 program?

A - IKJEFT02

B - IKJEFT01

C - IGYCRCTL

D - None of these

Answer : B

Explanation

IKJEFT01 utility is used to run a COBOL-DB2 program.

jcl_questions_answers.htm
Advertisements