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 III

Q 1 - 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.

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?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IEBUPDTE

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?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IEBUPDTE

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?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IEBUPDTE

Answer : C

Explanation

IEBCOMPR is used to compare the contents of sequential data sets and partitioned datasets.

Q 6 - Which utility is used to update PDS?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IEBUPDTE

Answer : D

Explanation

IEBUPDTE is used to update PDS

Q 7 - Which utility is used a dummy utility?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IEFBR14

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?

A - IEBGENER

B - IEBCOPY

C - IEBCOMPR

D - IDCAMS

Answer : D

Explanation

IDCAMS is used to create, delete, rename, catalog, uncatalog datasets (other than PDS) and usually used to manage VSAM datasets.

Q 9 - Which utility is used to sort a file in JCL?

A - DFHSORT

B - DHSORT

C - MERGE

D - SORT

Answer : D

Explanation

SORT utility is used to sort a file in a particular order based on the sort card.

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?

A - False

B - True

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?

A - False

B - True

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?

A - False

B - True

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?

A - False

B - True

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?

A - False

B - True

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?

A - False

B - True

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?

A - False

B - True

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?

A - False

B - True

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?

A - False

B - True

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?

A - False

B - True

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?

A - SORT FIELDS=COPY

B - SORT FIELDS=MOVE

C - SORT FIELDS=COPY(ALL)

D - SORT FIELDS=MOVE(ALL)

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

C - It will copy the data from input file to output file

D - None of these

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

C - It will copy the data from input file to output file

D - None of these

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?

A - JOB statement

B - Delimiter statement

C - Null statement

D - All of these

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                                        

A - In-stream procedure

B - Catalog procedure

C - Job will abend

D - None of these

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
jcl_questions_answers.htm
Advertisements