Sei sulla pagina 1di 126

Question Bank

JCL
Cognizant Academy
Couse Name JCL
Test Type TEST
Module No. Module Name Topics Covered
Job and Job Step
Job Entry Subsystem(JES)
Job Flow in MVS
Need of JCL statements
Structure JCL statements
JOB Statements
EXEC Statements
DD Statements
JOBLB and STEPLB
PROCEDURES
Special JCL Statements
Overrides
EFBR14
EBGENER
EBCOPY
EBUPDAE
DFSHORT
1
Over view of JCL
4
BM Utilities
2
JCL statements
3
Libraries
MuItipIe Choice Questions
Q. No Question Option 1 Option 2 Option 3 Option 4
Correct
Answer
1 What is JCL ?
One type oI
Programming
Language
Operating
System
Component
InterIace
between
Operating
System and
Sub System
oI Operating
System Option 2
2
Which oI the Iollowing versions
belongs to JES?
JES1 JES2 JES3 JES4 Option 4
3
Which oI the Iollowing are
Operation Fields in JCL
statements? JOB EXEC PROGRAM DD Option 1
4
How many diIIerent types oI
Parameter Fields are there? 4 3 2 1 Option 1
5
Which oI the Iollowing statement
used Ior checking JCL syntax
errors?
TYPRUNHO
LD
TYPRUNSCA
N
TYPRUNSU
BMIT
TYPRUNR
UN Option 2
6 Which oI the Iollowing are true?
Dataset Names
used in JCL are
speciIied in DD
statement.
DISP
(Disposition)
parameter
speciIies the
DISP has two
positional sub
parameters
DCB (Data
Control
Block)
SpeciIies Option 3
7
Which oI the Iollowing measure
used Ior space allocation Ior a
dataset UNIT CYL TRK VOL Option 2
8
The purpose oI NULL statement
is
To add
comments in a
job.
To mark the
end oI job.
To speciIy
DUMMY
datasets
To speciIy
end oI in-
stream data Option 2
9 JOBLIB should be speciIied
Anywhere in
the JCL.
BeIore JOB
statement
As the Iirst
JCL statement
Iollowing the
JOB statement
AIter
STEPLIB Option 3
10
Which statement identiIies a
library Irom which the Cataloged
procedures are to be retrieved JOBLIB STEPLIB PROCLIB JCLLIB Option 2
11
Which oI the Iollowing statement
used to invoke a JCL procedure JOB EXEC DD
All oI the
above Option 1
12
Which oI the Iollowing statements
are true
PROC &
PEND
statements are
mandatory Ior
PEND signiIies
the end oI a
procedure
PROC
statement
marks the
beginning oI a 1 & 3 Option 3
13
What are three parameters you
can speciIy on Job statement as
well as on exec stmt ?
Time , Region
and Cond
parameters
Region,parm,ti
me
Time &
Region
None oI the
above Option 1
14
To restart a job Irom a
particular proc step, the Iollowing
command is used.
RESTARTJC
LSTEPNAME.
PROCSTEPN
AME
RESTARTPR
OCSTEPNAM
E.JCLSTEPNA
ME
RESTARTJ
CLSTEPNAM
E
RESTART
PROCSTEP
NAME Option 1
15
What is the parameter to be
passed in the job card Ior the
unlimited time, irrespective oI the
job class
TIMEunlimite
d Time' ' TIME1440
NoneoI the
above Option 3
16 What is meant by s0c7?
Data exception
error
Operation
Exception Error
Protection
Exception
none oI the
above Option 3
17
Which one oI the Iollowing
utilities can be executed as a
standalone batch program without
any DD statement? IEBGENER IDCAMS IEFBR14
none oI the
above Option 1
18
In a JCL, a GDG version is
created as Iollows.
//STEP01 EXEC PGMSORT
..

TEST.OUTFIL
E(-1)

TEST.OUTFIL
E(0)

TEST.OUTFI
LE(1)

TEST.OUTF
ILE(2) Option 3
19
What does the Iollowing
statement reIer?
(TEST.OUTFILE is a GDG base)
//SORTOUT DD
All versions oI
TEST.OUTFIL
E
JCL Syntax
error
Current
version oI
TEST.OUTFI
LE
None oI the
above Option 1
20
All versions oI a GDG should
have same RECFM and LRECL. Both Only RECFM Only LREC
None oI the
above Option 4
21 IEBCOPY is used Ior
Copying
sequential
dataset to PDS
Copying PDS to
PDS
Copying PDS
to sequential
dataset
All oI the
above Option 2
22
Which one oI the Iollowing
command is used to reIer a
Catalogued PROC?
// JCLLIB
ORDER(TES
T.PROCLIB)
// PROCLIB
ORDER(TES
T.PROCLIB)
// JOBLIB
ORDER(TE
ST.PROCLIB
)
// STEPLIB
ORDER(T
EST.PROCL
IB) Option 1
23
What are the deIault positional
parameters Ior DISPNEW
DISP(
NEW,CATLG,
DELETE)
DISP(
NEW,CATLG,
CATLG)
DISP(NEW,
DELETE,DE
LETE)
DISP(NEW
,DELETE,C
ATLG) Option3
24 B37 is caused by
Lack oI
suIIicient
secondary
space
Lack oI
suIIicient
primary space
Lack oI space
Ior PDS
All oI the
above Option 1
25 RLSE parameter is used to
Release unused
allocated space
Release
contiguous
space
Release largest
contiguous
Iree space
Release up to
5 separate
contiguous
areas Option 1
26
The syntax used to reIer
SORTOUT oI STEP01 in
SORTIN oI STEP02.
//STEP01 EXEC PGMSORT

STEP01.SORT
OUT

&STEP01.SOR
TOUT

*.STEP01.SO
RTOUT
-
.STEP01.SO
RTOUT Option 3
27
Which one oI the Iollowing
utilities can be executed as a
standalone batch program without
any DD statement? IEBGENER IDCAMS IEFBR14
None oI the
above Option 3
28 What does DISPOLD denote?
exclusive
control oI the
dataset no exclusivity
dataset can be
extended
None oI the
above Option 1
29
What is the purpose oI DD
DUMMY statement ?
Marks a
deleted DD
statement
Begins an
interpreted
command
stream
SpeciIies no
space
allocation &
no disposition
Suppress
command
processing Option 3
30
What is the Iunction oI DD DISP
parameter?
Tells the
system what to
do with the
dataset
Describes the
status oI the
dataset
Tells the
system what
to do with the
dataset
All oI the
above Option 4
31
How is the record Iormat oI an
output dataset speciIied
RECORG
parameter
STORCLAS
parameter
RECFM
parameter
None oI the
above Option 3
32
What is the purpose oI DD *
statement
Begins an input
data prompt at
the system
console
Begins an in-
stream dataset
Marks the end
oI a command
stream
Includes all
datasets
within a
naming Option 2
33
A DD statement has 2 types oI
parameters. Name them ?
Positional,
Keyword
Keyword,
Control
Dynamic,
Static
Named,
Dynamic Option 1
34
What is the Iunction oI JOB
statement ?
Marks the end
oI a job
Marks the
beginning oI an
instream
procedure
Marks the
beginning oI a
job & assigns
a name to the
Assigns an
execution
priority to a
job Option 3
35
How can a job send a status
message to a TSO user at the
completion oI a job ? STATUS NOTIFY ENDMSG USER Option 2
36
What is the Iunction oI a DD
statement ?
IdentiIies &
describes a
dataset
Delimits a DO
loop
Marks the
start oI a
declarative
section
Delimits the
start oI an
inline include
section Option 1
37
When output dataset space is
required, what quantity categories
are used ?
Primary,
Secondary,
Directory
Address, Units,
CONTIG or
ALS
Displacement
and length
Megabytes,
Kilobytes and
Bytes Option 1
38
What statement marks the
beginning oI a job step; assigns a
name to the step; identiIies the
program or
START
RUN EXEC GO Option 3
38
Can an individual step be
restricted Irom using all the job`s
allowed CPU time ? Yes No
Only in
Catalogued
Procedure
Through the
STEPTIME
parameter Option 1
40
Where can program checkpoints
be stored Ior use in a restart ?
CHCKPOINT
DD statement
SYSCHK DD
statement
CHKOUT DD
statement
CHECK or
DD
statement Option 2
41
How can the disposition oI sysout
datasets be set Ior an entire
jobstream ?
SYSOUT
parameter
OUTPUT
parameter
DEFAULT
parameter
DEST
keyword Option 1
42
What statement marks the end oI
an in-stream or Catalogued
procedure ? STREAM SET PROC PEND Option 4
43
What is the Iunction oI DD name
parameter with a 2 part structure;
Audit.Report ?
Override the
Audit DD
statement in
the report
Override the
Report DD
statement in the
Audit procedure
Concatenate a
dataset onto a
DD statement
in a called
Delete the
Audit DD
statement in
the Report Option 3
44
Which DD parameters are
required ?
All parameters
& Keywords
are optional
Dsname,
SPACE,
RECFM
Dsname,
SPACE,
UNIT
Dsname,
DISP,
SPACE Option 1
45
How can an in-stream dataset be
terminated? // //* /*
None oI the
above Option 3
46
What is the Iunction oI the DD
DCB keyword?
Begins the
subparameters
oI the DCB
Begins the
DASD control
block
Marks the
close oI the
DCB
ModiIies the
record type
parameters Option 1
47
What is the maximum length oI a
single line oI JCL ? 71 bytes 60 bytes 55 bytes 80 bytes Option 1
48
Many JCL statements contain
speciIic values designed to direct
& control the execution oI the
statement. What are these Iields
Linkage
Variables Parameters
Control
Libraries Includes Option 2
49
When space is allocated Ior an
output dataset, what units can be
used? Disks Megabytes
Cylinders,
Tracks,
Blocks Bytes Option 3
50
What is the Iormat oI comment
statement ? // //* /*
None oI the
above Option 2
51
A DD statement consists oI 4
Iields. Name them :-
Name, DD,
Space, Device
Format, Name,
DD, Space
DD,
parameter,
device, Iormat
Name, DD,
parameter,
comments Option 4
52
What DD statement is used to
supply the name oI a dataset ? Name Dsname Label File Option 2
53
What is the purpose oI the DD
KEYLEN` parameter?
SpeciIy the
length oI a data
set key in bytes
Override the
key length oI an
SMS deIined
VSAM dataset
Override the
key length
speciIied in the
dataset label
All oI the
above Option 4
54
What is the Iunction oI the
STEPLIB DD statement?
IdentiIy a
library to be
searched Ior
programs
IdentiIy a library
containing
executable job
steps
system step
library within a
job stream
All oI the
above
Option 4
55
How can return codes be tested
beIore execution oI a job step?
Through the
RC keyword
Through the
CODE keyword
Through the
COND
keyword
Through the
RETURNCD
keyword
Option 3
56 What is concatenating?
Overriding or
adding
procedures
Logically
connecting
input datasets
Overriding a
called PROC
dsname
All oI the
above
Option 2
57
How can values be passed Irom
the job stream to an executable
program?
Through the
PARM
keyword
Through the
VALUE
parameter
Through the
PGM
parameter
All oI the
above
Option 1
58
Must tape dataset deIinitions
include VOLSER speciIications?
Yes No
Only Ior
uncataloged
datasets
Only Ior
cataloged
datasets
Option 3
59
What is the Iunction oI //JCLLIB
statement?
IdentiIies the
source oI the
JCL commands
Points to the
system soItware
library
beginning oI
the in-stream
JCL
IdentiIies the
libraries that
the system
will search Option 4
60
What parameter oI the job
statement is used to limit the CPU
time consumed by the job? RUNTIME
TIME
LIMIT
EXECMAX
Option 2
61
What statement marks the
beginning oI an in-stream or
cataloged procedure and assigns
deIault values to parameters STREAM SET PROC PEND Option 3
62
How can a stopped job be started
again?
Through the
RETURN
parameter
Through the
STARTUP
parameter
Through the
RESTART
parameter
Through the
CHECKPNT
keyword
Option 3
63
In order to continue a job aIter a
return code oI 12 in step1, what
the step2 EXEC statement
include?
CONTINUE
COND
(12,NE)
COND
(12,GE)
COND
(12,EQ)
Option 2
64
In SMS datasets, what is the
Iunction oI the DD
MGMTCLAS` keyword?
management
class Ior a new
dataset
storage proIile
Irom the class
library
storage class
deIinition
block
Alters the
deIault
storage
proIile Ior the Option 1
65
How can the submitting user`s
RACF authority be overridden in
a job stream?
Through the
USER
parameter
USER and
PASSWORD
parameter
By notiIying
the console
operation to
override the
Through the
RACF
parameter
Option 2
66
What parameters can be used to
limit the number oI records
written to a SYSOUT dataset ? LIMIT OUTLIM SIZE MAX
Option 2
67
What statement can be used to
send data to another MVS JES3
node ?
LINK CONNECT XMIT SEND
Option 3
67
What parameter directs the output
oI the job log dataset ?
JOBLOG MSGCLASS MSGLEVEL SYSLOG
Option 2
68
How can a job`s execution priority
be modiIied ?
PRIQTY
parameter
PRTY
parameter
JOBCLASS
parameter
RUNTIME
parameter
Option 2
69
How can the attributes oI one
SMS dataset be copied to another
dataset ?
Using DD like
parameter
Using DD Copy
parameter
Using DD
ReIer
parameter
cannot be
copied within
SMS datasets
Option 1
70
What is the Iunction oI //CNTL
statement ?
Marks the
beginning oI
one or more
program
IdentiIies the
control card
library
Delimits the
PROC control
statements
None oI the
above
Option 1
71
In SMS datasets, what is the
Iunction oI the DD AVGREC
keyword ?
average length
oI records in a
Iile
SpeciIies the
multiplier to be
used Ior primary
& secondary
Directs the
system to
allocate space
based on
word
blocking
Iactor
Option 2
72
How can a JES3 operator
command be entered through the
jobstream?
Through the
OPERATOR
statement
Through the
COMMAND
statement
Through the
//** statement
Through the
console
statement
Option 3
73
To connect EBCDIC records to
ASCII during write process, what
DCB sub-parameter is used ? EBCDIC
NONE ASCII ALL
TRANSLATE
ALL
OPTCODE
Q
Option 4
74
as input without the generation
number, what will the input to the
DD ?
the most recent
generation
created
the earliest
generation
created
a
concatenation
oI all the
cataloged
will be
returned to
the job
Option 3
75
How can buIIers be assigned to a
DCB ?
Through the
BUFMAX
subparameter
Through the
BUFOUT
subparameter
Through the
BUF
subparameter
Through the
BUFNO
subparameter
Option 4
76
What is the Iunction oI the DD
MODIFY` parameter ?
overrides the
LRECL oI a
cataloged
dataset
speciIy a copy-
modiIication
module to
Iormat a printed
overrides the
blocksize oI a
cataloged
dataset
add records
to an existing
dataset
Option 2
78
What is the preIix character Ior
symbolic parameter ? &
}
Option 2
79
What is the purpose oI REGION
key word ?
speciIies the
amount oI
space required
by a step
speciIies the
amount oI space
required by a
job
both oI the
above
none oI the
above
Option 3
80
What is a system data set catalog
?
a reIerence to
the naming
standards Ior
datasets
a list oI MVS
reIerence
libraries
a list oI
datasets
available to
MVS along
the original
installation
datasets Ior
JCL Option 3
81
II both the JOBCAT & STEPCAT
statements are coded in a step,
which will be executed? JOBCAT STEPCAT
the one coded
Iirst in the JCL
stream
both the
statements
will be
executed in Option 2
82
What is the return code issued
when the operator cancels a job? S122 S222 S322 1 & 2 Option 4
83 How is a GDG base created?
Using
IDCAMS
utility
Using
IEHPROGM
utility 1 & 2
None oI the
above Option 3
84
Name some oI theJcl statements
that are not allowed in procs?
Job,Delimter,N
ull statements
Exec,DD
statements
Joblib or
jobcatt dd
statements 1 & 3 Option 4
85 Where must load modules reside?
Sequential
datasets
Partitioned
Dataset(PDS) KSDS
None oI the
Above Option2
86 What is an IEFBR14 used Ior? Delete datasets Find datasets
Catalog &
uncatalog
datasets All the above Option 4
87
Which parameter is required to
copy a dataset using IEBCOPY? Copy
Keyword
Parameter
Positional
Parameter Parm Option 1
88
What are the parameters used Ior
an utility IEBGENER? Generate Member Record All the above Option 4
89
How many extents are possible Ior
a sequential Iile ? 16 15 18 20 Option 1
90 What is NOTCAT 2
MVS message
indicating that
a duplicate
catalog entry
MVS message
indicating that a
dataset does not
exists
MVS message
indicating
successIul
creation oI a
None oI the
Iollowing Option 1
91 What is CONDEVEN ?
execute this
step even iI any
oI the previous
steps,
execute this
step only iI any
oI the previous
steps, Both
None oI the
Iollowing Option 1
92
How do you access a Iile that had
a disposition oI KEEP?
Using UNIT
parameter
Volume serial
No
Using DCB
parameter
All oI the
above Option 2
93
How do you create a temporary
dataset?
Temporary
datasets can be
created by not
speciIying any
Temporary
datasets can be
created by
speciIying the 1 & 2
None oI the
Iollowing Option 3
94
I have a COBOL program that
ACCEPTs some input data. How
do you code the JCL statment Ior
this? ( How do you code instream
W1
//SYSIN DD*
input data
input data
W1
//DD*
input data
input data
//SYSIN DD*
input data
// None oI the
Iollowing Option 1
95
What are the valid DSORG values
?
PS - QSAM,
PO -
Partitioned
PO -
Partitioned, IS -
ISAM
PS - QSAM,
PO -
Partitioned, IS
-
None oI the
Iollowing Option 3
96
How will you identiIy a deIault
catalog Ior entire job? STEPCAT MCAT JOBCAT
All oI the
above Option 2
97
Which oI the Iollowing is a
correct generic name speciIication
Ior TEST.USER.DATA.A? TEST.USER.* TEST.*.*.A
*.USER.DAT
A.A
TEST.USER.
*.A Option 1
98
Omit parameter is used in the
Iolowing Utility? IEBGENER IEFBR14 DFSORT IEBCOPY Option 3
99
THE MAXIMUM NUMBER OF
IN-STREAM PROCEDURE
YOU CAN CODE IN ANY JCL
IS ? 10 16 5 15 Option 4
100
Which oI the Iollowing is Online
transaction? CICS DB2 JCL
None oI the
above Option 1
101
Maximum number oI DD
statements in a job? 56 255 3273 248 5943
Target Audience : ELT
Session : End of Module
Topics
Marks Qs Marks Qs Marks Qs Marks Qs Marks Qs Marks Qs Marks Qs Marks Qs Marks Qs Marks Qs
T1 1 1 1 1 2 1
T2 0 1 1 2 1 3 1
T3 1 1 1 1 2 1 3 1 3 1 3 1
T4 1 1 5 5
TotaI
Weigtage
3
Category
Application
Knowledge + Difficult
Comprehension + Difficult
Comprehension + Average
2
3
2
DifficuIt
1 Others
KnowIedge Comprehension AppIication
Easy Average DifficuIt Easy Average DifficuIt Easy Average
An
Easy
17(14) 0(0) 12(4)
,78 "8 ,78 "8 ,78 "8 ,78 "8 ,78 "8



0(2)
Easy Average
EvaIuation TotaI
Marks
AnaIysis
Average DifficuIt DifficuIt
12(4) 9(3)

Potrebbero piacerti anche