JCL Mock Test


This section presents you various set of Mock Tests related to JCL Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.

Questions and Answers

JCL Mock Test I

Answer : C

Explanation

JCL stands for Job Control Language which provides the specifications necessary to process a job.

Answer : C

Explanation

MVS stands for Multiple Virtual storage which is the operating system for the IBM mainframe systems.

Q 4 - On how many byte records JCL statements are coded?

A - 16

B - 44

C - 80

D - 32

Answer : C

Explanation

JCL statements are coded on 80 bytes records.

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.

Q 6 - Which of these is not a valid operation code?

A - JOB

B - EXEC

C - DD

D - PGM

Answer : D

Explanation

Valid operation code in JCL are JOB, EXEC & DD. PGM is a parameter, it is not an operation.

Q 7 - Positional parameters are coded first before any Keyword parameter and parameters are separated by ‘Commas’ only. State whether true or false?

A - False

B - True

Answer : B

Explanation

This statement is correct.

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

The Operating System uses Job Entry System (JES) to receive jobs into the Operating System, to schedule them for processing and to control the output.

Answer : D

Explanation

When the job is complete, the allocated resources and the JES SPOOL space is released. In order to store the job log, we need to copy the job log to another dataset before it is released from the SPOOL.

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

Explanation

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.

Answer : C

Explanation

DD statement is used to include name of the dataset to operate.

Answer : C

Explanation

JCL is terminated by a null statement which is optional. For a null statement code only // starting from column 1. All the lines after this will not be executed.

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

Answer : B

Explanation

To specify the output destination for the system and Job messages when the job is complete. Syntax : MSGCLASS = CLASS

Answer : D

Explanation

The system sends the success or failure message (Maximum Condition Code) to the user specified in this parameter. Syntax : NOTIFY="userid | &SYSUID"

Answer : C

Explanation

RESTART is used to restart a job from a particular step. Syntax : RESTART=* | STEPNAME

Answer : A

Explanation

Region parameter specifies the address space required to run a job step within the job. Syntax : REGION=nK | nM

Answer : B

Explanation

Time parameter specifies the time span to be used by the processor to execute the job. Syntax : TIME=(mm, ss) or TIME=ss

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

Answer Sheet

Question Number Answer Key
1 C
2 D
3 C
4 C
5 C
6 D
7 B
8 C
9 C
10 B
11 A
12 C
13 C
14 D
15 B
16 A
17 C
18 C
19 A
20 B
21 D
22 C
23 A
24 B
25 C
jcl_questions_answers.htm
Advertisements