
- JCL Tutorial
- JCL Home
- JCL - Overview
- JCL - Environment
- JCL - JOB Statement
- JCL - EXEC Statement
- JCL - DD Statement
- JCL - Base Library
- JCL - Procedures
- JCL - Conditional Processing
- JCL - Defining Datasets
- JCL - Input/Output Methods
- JCL - Run COBOL Programs
- JCL - Utility Programs
- JCL - Basic Sort Tricks
- JCL Useful Resources
- JCL - Questions and Answers
- JCL - Quick Guide
- JCL - Useful Resources
- JCL - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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.

JCL Mock Test III
Q 1 - How you will the direct the data to spool using SYSOUT option?
Answer : D
Explanation
Code SYSOUT=*, then the data will be directed to spool.
Q 2 - How you will concatenate the dataset in JCL?
A - Code the DD statements continuously & give DDNAME only for first DD
B - Code the DD statements continuously & give the same DDNAME for all DD statements
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 3 - Which utility is used to copy or print sequential data sets?
Answer : A
Explanation
IEBGENER is used to copy or print sequential datasets.
Q 4 - Which utility is used for copy, merge, compress, backs up, or restores partitioned data sets?
Answer : B
Explanation
IEBCOPY is used to copy, merge, compress, backs up, or restores partitioned data sets.
Q 5 - Which utility is used to compare the contents of sequential data sets and partitioned datasets?
Answer : C
Explanation
IEBCOMPR is used to compare the contents of sequential data sets and partitioned datasets.
Answer : D
Explanation
IEBUPDTE is used to update PDS
Answer : D
Explanation
IEFBR14 is no operation utility. Used to return control to user and terminate. It is usually used to create empty dataset or delete an existing dataset.
Q 8 - Which utility is used to create, delete, rename, catalog, uncatalog datasets (other than PDS) and usually used to manage VSAM datasets?
Answer : D
Explanation
IDCAMS is used to create, delete, rename, catalog, uncatalog datasets (other than PDS) and usually used to manage VSAM datasets.
Answer : D
Explanation
SORT utility is used to sort a file in a particular order based on the sort card.
Q 10 - How the file will be sorted if you will use the following sort card?
//STEP1 EXEC PGM = SORT //SYSPRINT DD SYSOUT = * //SYSOUT DD SYSOUT = * //SORTIN DD DSN = input.data.set,DISP=SHR //SORTOUT DD DSN=output.data.set //SYSIN DD * SORT FIELDS = (1,06,CH,D) /*
Answer : A
Explanation
This is self explanatory.
Q 11 - 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?
Answer : B
Explanation
This is self explanatory.
Q 12 - 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. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 13 - Account information refers to the person or group to which the CPU time is owed. It is set as per the rules of the company owning the mainframes. If it is specified as (*), then it takes the id of the user, who has currently logged into the Mainframe Terminal. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 14 - 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?
Answer : B
Explanation
This is self explanatory.
Q 15 - A CHKPT is the parameter coded for multi-volume QSAM datasets in a DD statement. When a CHKPT is coded as CHKPT=EOV, a checkpoint is written to the dataset specified in the SYSCKEOV statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 16 - Generation Data Groups (GDGs) are group of datasets related to each other by a common name. The common name is referred as GDG base and each dataset associated with the base is called a GDG version. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 17 - SCRATCH option in GDG's physically deletes the generation when it is uncataloged. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 18 - FORCE option in GDG's deletes the GDG versions and the GDG base. If any of the GDG versions are set with an expiration date which is yet to expire, then those are not deleted and hence the GDG base is retained. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 19 - LIMIT option in GDG's specifies the maximum number of versions that the GDG base can hold. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 20 - The GDG versions can have same or different DCB parameters. An initial model DCB can be defined to be used by all versions, but it can be overridden when creating new versions. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 21 - What sort card you will use to copy the data from one dataset to another dataset?
Answer : A
Explanation
In the SORT step mention the SYSIN & SYSOUT dataset name & in sort card code SORT FIELDS=COPY to copy data from input file to output file.
Q 22 - 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 SUM FIELDS = NONE /*
A - It will copy the data from input file to output file and will eliminate the duplicates
B - It will copy the data from input file to output file and will not eliminate the duplicates
Answer : A
Explanation
SUM FIELDS=NONE is used to eliminate the duplicate rows.
Q 23 - 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
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 24 - What statements are invalid in a procedure?
Answer : D
Explanation
A procedure must not contain following statements : JOB statement, JOBLIB DD statement, DD * , DD DATA - In-stream data, delimiter statement, Null statement, JES statements, PEND statement (for cataloged procedures)
Q 25 - 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) //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 //STEP1 EXEC PROC1
Answer : A
Explanation
In-stream procedure will be invoked.
Answer Sheet
Question Number | Answer Key |
---|---|
1 | D |
2 | A |
3 | A |
4 | B |
5 | C |
6 | D |
7 | D |
8 | D |
9 | D |
10 | A |
11 | B |
12 | B |
13 | B |
14 | B |
15 | B |
16 | B |
17 | B |
18 | B |
19 | B |
20 | B |
21 | A |
22 | A |
23 | A |
24 | D |
25 | A |