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 : C

Explanation

Identifiers are two slashes (//) starting from column number 1. All JCL statements starts with identifiers except for two exceptions - For a delimiter statement, /* starting in col 1 and for a comment statement , //* starting at col 1.

Answer : A

Explanation

Based on the time duration and the number of resources required by the job, companies assign different job classes. These can be visualized as individual schedulers used by the OS to receive the jobs. Placing the jobs in the right scheduler will aid in easy execution of the jobs. Some companies have different classes for jobs in test and production environment. Valid values for CLASS parameter are A to Z characters and 0 to 9 numeric (of length 1). Following is the syntax: CLASS=0 to 9 | A to Z

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 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 : A

Explanation

The SPACE parameter specifies the space required for the dataset in the DASD (Direct Access Storage Disk). Syntax : SPACE=(spcunits, (pri, sec, dir), RLSE)

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 - A job is a unit of work which can be made up of many job steps. Each job step is specified in a Job Control Language (JCL) through a set of Job Control Statements. 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 - Up to which level cataloged and in-stream procedure can invoke other procedure?

A - 20

B - 15

C - 25

D - 12

Answer : B

Explanation

Cataloged and In-stream procedure can invoke other procedure up to 15 levels only.

Q 10 - How to mark the end of in-stream data?

A - END

B - //*

C - /*

D - PEND

Answer : C

Explanation

?* is used to mark the end of in-stream data.


jcl_questions_answers.htm

Advertisements