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.
Q 1 - What does JCL stands for?
JCL stands for Job Control Language which provides the specifications necessary to process a job.
Q 2 - What is JCL?
All the statements regarding JCL are correct.
Q 3 - What does MVS stand for?
MVS stands for Multiple Virtual storage which is the operating system for the IBM mainframe systems.
JCL statements are coded on 80 bytes records.
Q 5 - Where & how do you code Identifier in JCL?
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.
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?
This statement is correct.
Q 8 - What are the various stages of Job processing?
Correct answer is C. Job is processed in this manner.
Q 9 - In Job processing, what happens in Input stage?
In input stage, Job is taken as an input to JES.
Q 10 - In Job processing, what happens in Conversion stage?
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.
Q 11 - In Job processing, what happens in Execution stage?
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.
Q 12 - What does JES stands for?
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.
Q 13 - In Job processing, what happens in Hard copy stage?
In hard copy stage, output of job is moved to spool output.
Q 14 - In Job processing, what happens in Purge stage?
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.
Q 15 - What operation is performed by EXEC statement?
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).
Q 16 - What operation is performed by JOB statement?
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.
Q 17 - What operation is performed by DD statement?
DD statement is used to include name of the dataset to operate.
Q 18 - How do you code a Null statement?
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.
Q 19 - What is the purpose of coding CLASS parameter in job statement?
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 20 - What is the purpose of coding MSGCLASS parameter in job statement?
To specify the output destination for the system and Job messages when the job is complete. Syntax : MSGCLASS = CLASS
Q 21 - What is the purpose of coding NOTIFY parameter in job statement?
The system sends the success or failure message (Maximum Condition Code) to the user specified in this parameter. Syntax : NOTIFY="userid | &SYSUID"
Q 22 - What is the purpose of coding RESTART parameter in job statement?
RESTART is used to restart a job from a particular step. Syntax : RESTART=* | STEPNAME
Q 23 - What is the purpose of coding REGION parameter in job statement?
Region parameter specifies the address space required to run a job step within the job. Syntax : REGION=nK | nM
Q 24 - What is the purpose of coding TIME parameter in job statement?
Time parameter specifies the time span to be used by the processor to execute the job. Syntax : TIME=(mm, ss) or TIME=ss
Q 25 - What is the purpose of coding PRTY parameter in job statement?
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