Option 1 Option 2 Option 3 Option 4 Correct Answer
Option 1 Option 2 Option 3 Option 4 Correct Answer
Option 1
Option 2
Option 3
Is of no
significance.
Option 1 and
Option 3
MAX NUM OF
DUPLICATES
specified in
Alternate Key
defination.
Using COBOL
Batch READ PREV
instruction after
START-ing the file Using 'Sort' to
at the Highest
copy the last
Key.
record.
How could we
change the Name
of a VSAM file
without deleting it Using ALTER
through JOB?
command.
Using IMPORT
after EXPORT.
What is the
significance of
FREESPACE for an
ESDS?
To provide
For inserting new space for
records after the rewrite
initial load.
operation.
Sequential(QSA
What is the
M) files can be
difference between created on tape
sequential files and while ESDS files
ESDS files?
cannot.
ALTINDEX for an
ESDS is possible
while no such
facility exists for
QSAM files.
Correct
Answer
Alternate key
Alternate key and
and Primary key. primary key pointers.
Nothing.
Option 4
Using ISPF
RENAME
Option.
Option 1 and
Option 2
For expanding
records on a
rewrite if it is a
variable record
length ESDS.
Option 1 and
No difference. Option 2
What happens
when you open an
empty VSAM file in
a COBOL program
for output?
How do you
initialize a VSAM
file before any
operation?
A Duplicate
alternate key file
status of 02 can
occur in?
What is the Max
Value that can be
attained in the
3,4th byte of
Alternate key
Header?
What would the
following JCL do
when coded with
VSAM
'SYSTEM.DATASET.
NAME'?
//LOCKDS DD
VOL=REF=SYS1.LIN
KLIB,DISP=OLD,
//
DSN=SYSTEM.DATA
SET.NAME
Why CI and CA
splits are not
possible in ESDS
and RRDS?
COBOL will
write a dummy
record to the COBOL returns a
file.
File Status of 35.
Opening the
File as OUTPUT Option 1 and
in COBOL.
Option 3
Output
Extend mode
operation only operation
X'FFFF'
X'AFFF'
X'7FFF'
X'00FF'
Prevent other
jobs from
running while
the above job is
using the
cluster name. Both a) and c)
In the case of
RRDS the slots
for the records
are
ESDS the new
No imbedded free preallocated,
record is added space is allocated so the CI and
at the end of
at the time of
CA split is not
last record.
DataSet definition. possible.
All of the above
Define new
VSAM DataSet
allocated with
more space.
Use IDCAMS to
REPRO the old
VSAM file to
new VSAM
DataSet.Use
IDCAMS to
ALTER / rename
the old VSAM
DataSet. Delete
the Old and use
What is the easiest alter again to
way to fix the
name the new
problem associated dataset back to
with VSAM out of the old dataset
space condition? name.
VSAM Cluster that
supports only
FIXED Length
recods.
RRDS
The minimum
value of Data
Buffer you would
provide for
Random read.
What is the value
for Sequential
read?
2,Recs/CI
Use IDCAMS
ALTER to alter
space allocation
for the dataset.
Use ALTER
ADDVOLUMES
parameter to
add some new
volumes.
LDS
ESDS
KSDS
2,4
2,Twice of Recs/CI
(considering I/O
and Processing
Buffers)
Recs/CI,2
Mention in which
datasets VERIFY
cannot be used.
Relative Record
Linear Data Set Dataset
ESDS to LDS
KSDA to LDS
VSAM ignoring
the
specification
24
Which of the
following entry
names are valid for
ALTER FREESPACE? Cluster name
At OPEN, VSAM
determines
processing options
in the following
JCL, program,
order
catalog
RRDS to LDS
Data CISZ 4k;
index CISZ
selected by
VSAM
25
VRRDS to LDS
26 None
Data component
name
Index
component
name
Option 2 and
Option 3
program, JCL,
catalog
JCL, catalog,
program
catalog, program,
JCL
Mention in which
datasets VERIFY
cannot be used.
If an application
program accesses a
base cluster in
alternate key
sequence, then DD
statements are
needed for which
one of the
following data
sets?
Base cluster
Alternate index
Path
All 3 Options
REPRO only
EXPORT only
Both REPRO
and EXPORT
receive the
following
Messages.What
may be the reason
for this?
IDCAMS SYSTEM
SERVICES
REPRO - INFILE
(PRODSTU) OUTFILE
(PRODSTV) REPLACE
IDC3300I ERROR
OPENING
TESTV48A.PRDF03
0.VSAM
IDC3351I ** VSAM
OPEN RETURN
CODE IS 100
IDC0005I NUMBER
OF RECORDS
PROCESSED WAS
425032
IDC0001I
FUNCTION
COMPLETED,
HIGHEST
There was a
problem in
Opening the
VSAM due to
some reason
but IDCAMS
was able to
manage that.
There was a
problem While
REPRO-ing the
VSAM due to
some
reason,IDCAMS
was able to copy
only 425032
Records.
OPEN
encountered an
empty
alternate index
that is part of
an upgrade set None of the above
What happens if
DISP=NEW is coded
in JCL for accessing
a VSAM for an
A new VSAM
application
dataset is
program?
created.
Space will be
allocated by MVS
although it will
never be used.
3 CYLINDERS
3 CYLINDERS and
the Tracks left over.
Data component
will be allocated
the Coded space
value.VSAM will
calculate the an
additional amount
for Index
component.
The space
allocated for a
VSAM KSDS Cluster
is CYLINDERS (4 4).
If space allocated
for the INDEX
component by
VSAM is 2 Track,
how much is the
space allocated by
VSAM for the Data
component?
2 CYLINDERS
VSAM dataset
will be created
in an unVSAM will ignore
initialized state. DISP=NEW
4 CYLINDERS
Data
If space allocation
component will
parameter is coded
be allocated
for a KSDS Data
the Coded
component
space
only,what will be
value;Index
the possible
component
outcome of
space will
executing such an
The Space will be default to
IDCAMS Define
The Define will taken to be for
VSAM default
command?
fail.
the whole cluster space value
If UPDATE is
specified in a PATH
defination and the
ALTERNATE Index
has NOUPGRADE
what will happen if
the BASE Cluster is
processed?
The Base
Cluster as well
as the
ALTERNATE
INDEX Cluster
gets Updated
with the
changed Data.
The Base
cluster data as
well as its
Upgrade Set
gets updated
with the
changed
The Base Cluster Data.The AIX is
data only gets
not Updated
updated with the with the
changed Data.
changed data.
When can a
BLDINDEX
command be
executed?
After Defining
the Base
Cluster.
2042
2043
1843
100
What is the
effective
freespace% (space
left/CI after initial
load) for a 590 byte
record considering
10% freespace at
defination.(CI =
4096 byte)
10
50
15
What is the
effective
freespace% (space
left/CI after initial
load) for a 2000
byte record
considering 10%
freespace at
defination.(CI =
4096 byte)
Physical record
size for a 6144 byte
CI is 2048.What is
the physical rec
size for a 7680 byte
CI?
How many more
100 byte records
can be inserted in a
4096 byte CI
without splitting it,
after the initial
load, if a 10%
freespace was
specified on
defination?
None
10
50
15
512
1024
2048
4096
10
35
1086
1096
86
46.25
54.25
96
46.50,No
755
46.50,Yes
805
46.25,No
50
49 Option 4
From the
information below
calculate the ratio
of actual free CI/CA
to the value of free
CI/CA at initial
load.
Consider 2000 CIs
have data in them.
DATA:
ATTRIBUTES
CISIZE-------------4096
CI/CA---------------180
SPLITS-CI---------14533
SPLITS-CA-----------335
FREESPACE-%CI--------10
FREESPACE-%CA--------10
FREESPC--------89616384
HI-A-RBA------184320000
HI-U-RBA------From the data
below calculate the
number of tracks
(12 CIs per track)
used.
CISIZE-------------4096
CI/CA---------------180
HI-A-RBA------184320000
HI-U-RBA------176209920
Number of Free CIs
within the used
area:42348
3.11
3.21
3.01
7796
7763
7780
7790
The Dataset
'SYSTEM.DATAS
ET.NAME' in
EXPORTED but
not deleted and
IMPORTED into
the dataset of
same name.
The dataset
'SYSTEM.DATAS
ET.NAME' is
DELETE/DEFINE
D due to the
PURGE
KeyWord.
The Dataset
'SYSTEM.DATASET
.NAME' in
EXPORTED in a
TEMPORARY file
and deleted.It is
then IMPORTED
into the dataset of
same name.The
TEMPORARY
Dataset is Deleted
due to the
KeyWord PURGE.
The Dataset
'SYSTEM.DATAS
ET.NAME' in
EXPORTED in a
TEMPORARY
file and
deleted.It is
then
IMPORTED into
the dataset of
same name and
PURGED due to
the KeyWord
PURGE coded
in it.
VSAM tries to
EXPORT the
Dataset
'SYSTEM.DATASET.
NAME' in a
TEMPORARY
dataset TEMPDSI
but fails as EXPORT
cannot be taken in
TEMPORARY file.
The other part of
the command is
NOT executed due
to the Condition
Check.
When using
IDCAMS to build an
alternate index for
a KSDS, two VSAM
work files are
dynamically
defined for the keypointer pairs when
external sort is
used, with DD
names IDCUT1 and
IDCUT2.What type
of BUFFERs
allocated to these
datasets will
improve the
performance of
this operation?
BUFSP
BUFNI
BUFND
View
Browse
Show
Menu -->
Settings
Attributes
Settings
4
What command
will you use to
change the color in
the PDS member
list?
COL
MLC
COLOR
SET
Which of the
following
statement about
ISPF is true?
A '*' over the
number area of
Action bar pull
down menu
indicates what
Use 'Show'
command
COLOR ON
HIL ON
COL ON
Is a line mode
interface
Provides easy
Provides facilities management
for executing
of datasets
programs only in through
the foreground
dataset menu
the option is
already active
the option is
restricted
Either one
the option is
unavailable
Utilities
Selection Panel ISPF Settings Screen
Forward
Backward
12
Pressing 'Page
Down' Key
WW.W.AHOC.MAI
Which of the
NFRAM.IBMGBL.S
following dataset WW.W.AHOC.# TATION.CENTER.
name is incorrect? AINFRAM.DATA WARE
What is the
wildcard used for
matching a single
character in the
search of a dataset
pattern?
?
*
Pressing Ctrl
Page Up key
WW.W.AHOC..
MAINFRAM.IB WW.W.AHOC.MAIN
M.DATA
FRAMES.DATA
Pressing PF11
COPY,SWAP,DA
TA
CUT, EXCLUDE, END
Renaming a
block of lines
Recalling a block of
lines
OVERLAYSFEATUR THISLISSTESTU
ES
RES
THIS IS TESTURES
CUT
COPY
Type KEYS on
the command
line and assign Can't be done using
:D5 to PF Key 4 PF Keys
COLS
3.12
3.13
3.14
3.15
You want to
compare a
sequential dataset
with a PDS
member. Which
utility option will
you choose to do
that?
3.13
3.14
3.15
3.16
Directory Blocks
0, Record
Length 80, Block
Size 800 &
Dataset Type
'PDS'
Directory Blocks
as blank, Record
Length 80, Block
Size 810 & Dataset
Type 'PDS'
Directory
Blocks as blank,
Record Length
80, Block Size
400 & Dataset
Type 'PDS'
3.1
3.2
3.3
Directory Blocks as
blank, Record
Length 80, Block
Size 800 & Dataset
Type as blank
3.4
F '$'
F ''
F 'sequence' 30
70
F 'sequence' 30
F P'$'
F P''
F 'sequence' 70 F 'sequence'
What command do
you give to change
all lower case to
upper case?
p'.' p' ' ALL
p'<'p'>' ALL
What command do
you give if you wish
to see only those
lines where the
variable WB-PARMCOUNT appears in
a sequential
dataset?
X ALL
p''p'' ALL
F 'WB-PARMCOUNT'
Go to line with
bookmark C
represents
locate
SUPERC
SAR
SDSF
SAVR
OWNER S!A
PRE
S1A*,OWNER
S1A
CANCEL
CA
Cancel
Cancel has higher command
Cancel is used for
priority than
cancels the job test jobs and purge
purge
faster
for production jobs.
System messages
generated while
the job was running
3.14
Joblog
information
3.3
PROC
3.7
3.13
3.13
3.2
What option do
you need to logon
with so that other
users cannot see
you logged in?
NOMAIL
Which of these
statements are
correct about
Member lists?
What key do you
need to press
when a TSO session
hangs?
Identify the dataset
name which is
correct.
How do you
increase space in a
pds when a PDS is
full and you want
to save a new
member?
Single period
implies
multiople
selection
3.12
NONOTICE
RECONNECT
Multiple
Single
underscores
underscoreimplies implies single
multiple selection selection
3.14
OIDCARD
Multiple
underscores implies
multiple selection
PF3
PF5
WR.W.AHOC.AI
NFRAMPM.DAT WR.1.AHOC.AINFR
ADEFN
AM.DATA
Compress the
pds using
option 'Z'
Which of the
commands
mentioned should
be used if changes
made to a datset in
View mode needs
to saved.
CHANGE
REPLACE
COPY
What command
ensures that when
you open a dataset
in Edit mode and
you exit the
dataset the
changes get saved. SAVE
AUTO
What command do
you use to insert a
label A in a pds
member at line 20?
How do you reset a
label in a pds
member?
CREATE
Write .A on line
Write A before Write .A after line
20
Write A on line 20 line 20
20
Use REF
command
If STEPLIB is
specified for a
jobstep JSTEP1,
and JOBLIB is also
specfied at the job
level, which takes
precedence for
STEPLIB
step JSTEP1
Use REFRESH
Use RES command command
JOBLIB
Use FRESH
command
Depends upon
which appears in
the job first
Installation dependent
What is the
maximum number
of execution steps
25
255
1064
2155
a job can have ?
If the DISP=
keyword is not
coded for a new
dataset, what
default values will
be used for
DISP=(NEW,CAT DISP=(NEW,CATLG DISP=(NEW,DEL
LG,DELETE)
,CATLG)
ETE,DELETE)
None of the above
DISP=
It is used to pass
parameters to an
executable
program
DISP=(NEW,CAT
LG,CATLG)
None of the above
It should be less
than 10 characters
in length
It will be ignored
if the program
does not accept
parameters
No
Depends upon
the value of X
1,3
There is a STEPLIB
on STEP1 and a
JOBLIB for the job
as below //STEPLIB DD
DSN=A.B.C,DISP=S
HR
//
DD
DSN=X.Y.Z,DISP=SH
R
//JOBLIB DD
DSN=L.M.N,DISP=S
HR
The load module
for PGM1 is NOT
present in A.B.C or
X.Y.Z, but is
present in L.M.N.
What will be result
when STEP1 is
Abend with S806 Execute successfully
executed ?
Is the following
acceptable in a job
or will it fail with a
JCL error ?
//STEP1 EXEC
PGM=PGM1
//STEPLIB DD
DSN=A.B.C.(PGM1)
Will fail with a JCL
Acceptable
error
,DISP=SHR
To create a
member X in a PDS
A.B.C that already
exists, which
syntax is / are
correct ?
A. //DD1 DD
DSN=A.B.C(X),DISP
=SHR
B. //DD1 DD
DSN=A.B.C(X),DISP
=(NEW,CATLG,DEL
ETE),SPACE=(etc) A only
B only
Only if PGM1 is
present in A.B.C
Depends upon
installation
Both A and B
Neither A nor B is
correct
To create a
member X in a PDS
A.B.C that already
exists, which DISP
is / are correct ?
A. //DD1 DD
DSN=A.B.C(X),DISP
=SHR
B. //DD1 DD
DSN=A.B.C(X),DISP
=(NEW,CATLG,DEL
ETE),SPACE=(etc) A only
Which of the
following (one or
more) does
instream data in a The SYSIN DD
Statement
JCL relate to ?
B only
Both A and B
Neither A nor B is
correct
Line E
Which of the
following is correct
syntactically ?
A. JCLLIB DD
DSN=A.B.C,DISP=S
HR
b. JCLLIB
A only
ORDER=A.B.C
B only
2,3
Line F
A and B both
Neither A nor B is
correct
COND is used to
// SET RC=55
// IF RC > 55
//STEPX EXEC
PGM=IEFBR14
// ENDIF
Which of the
following is / are
correct ?
Execute a step
based upon the
condition code of
the previous steps
This is invalid,
will cause a JCL
error
Line E
Line F
Which of the
following is correct
syntactically ?
A. // JCLLIB
ORDER=A.B.C
B. //MYPROC
JCLLIB
A only
ORDER=A.B.C
B only
A and B both
Neither A nor B is
correct
If a job has an
inline proc X and a
JCLLIB
ORDER=A.B.C,
where proc X also
exists in A.B.C;
when the EXEC
PROC=X statement
is expanded, which
Inline proc X
is used ?
//STEP1 EXEC
PGM=PGM1
//FILEIN DD
DSN=A.B.C,DISP=S
HR
//FILEOUT DD
DSN=X.Y.Z,DISP=SH
R
pqr
**************B
OTTOM OF
DATA***********
*******
Which of the
following is/are
correct ?
Incorrect
statement in line
pqr, will cause
JCL error
What is the
difference between
the following
statements ?
A. FILEIN DD
DSN=A.B.C,DISP=S
HR
B. FILEIN DD
DISP=SHR,DSN=A.B A is correct, B is
not
.C
//FILEIN DD
DSN=X.Y.Z,DISP=SH
R
//
DD
DSN=A.B.C,DISP=S
HR
Which of the
following is / are
true ?
This is an
example of
"dataset
concatenation"
Only of of A.B.C
and X.Y.Z need
FILEIN will have the be present for the
data of X.Y.Z and
JCL to run
A.B.C together
without error
COND=(0,NE) in a
step STEP1 means -
The COND=EVEN
on a step STEP1
means
Execute STEP1
even if a previous
step has
abended
The COND=ONLY
on a step STEP1
means
Execute STEP1
even if a previous
step has
abended
it is ignored when
the JCL executes,
the first step is
the 1st step will not
always executed execute
A previous step
STEP4 returns a A previous step
condition code of STEP0 returns a
8
condition code of 8
A previous step
STEP3 returns a
condition code of
4
None of the above
//STEP10 EXEC
PGM=PGM1,COND
=((4,LT),(4095,EQ,S
TEP0))
Step10 will be
bypassed if which
is / are true ?
RESTART=J10
means
Job should
execute from the
first procstep of
jobstep J10
Job should
execute from the
step J10, which
may be either in
the job or the
proc
None of the above
1,2
A. //FILE1 DD
DSN=&TEMPA,DISP
=( ETC
B. //FILE1 DD
DSN=&&TEMPA,DI A is correct, B is
not
SP=( ETC
Which of the
following
parameters (one of
more) can be used
in both the JOB and
the EXEC
Time
statement
What statement is
used to specify the
JES search order of
INCLUDEs in a JCL JOBLIB
Region
Restart
JCLLIB
INCLIB
/*LIB
1,2
// SET
PGMA='MYPROG1'
..
..
//STEP1 EXEC
PGM=&PGMA
Which of the
following is/are
true ?
STEP1 will
execute a
program load
module &PGMA
//FILEIN DD *
abc
def
//*
The statement is
incorrect
syntactically, DD *
can only be used
for SYSIN
The statement is
correct only in the
main body of a job,
not inside a
procedure
The statement is
correct only
inside a
procedure, not in
the main body of
a job
None of the above
Job should
execute from
jobstep J10 and
procstep P10,
error if the step
does not exist
Job should
execute from the
step after jobstep
J10 and procstep
P10, error if the
step does not
exist
None of the above
A is correct, B is
not
RESTART=J10.P10
on the jobcard
means
A. //J01 EXEC
PROC=PROC1
B. //J01 EXEC
PROC1
TYPRUN=SCAN is
present in a JCL
jobcard, which of
the following is
FALSE ?
Two identical JCL
statements are in
job as below //STEP1 EXEC
PGM=IEFBR14
//STEP1 EXEC
PGM=IEFBR14
Which of the
following is/are
correct ?
// IF RC>4
//STEPX EXEC
PGM=IEFBR14
// ENDIF
COND code
checking is done
when the Job is
executed
If a file being
used in the SHR
mode in the JCL
is not present,
the JCL will
return an error
Which of the
following is/are
correct ?
STEPX will
execute only if the
condition code of
any of the
previous steps is
less than 4
If statement is
not allowed in a
JCL, so it will
None of the above is
return a JCL error true
Which
statement(s) is/are
true if you use
TIME=1440 on the
jobcard
// SET
UTILID='FBR14'
//STEPX EXEC
PGM=IE&UTILID
Which of the
following is true ?
STEPX will be
Invalid syntax, will executed
return a JCL error successfully
None of the
statements is FALSE 2,3
1,3
A and B mean
exactly the same
thing
In A, PROC1 should
be a JCL procedure,
in B, PROC1 should
not be a JCL
procedure, but a set
of JCL statements
not including the
PROC keyword
A is correct, B is
not
A is correct, B is
not
A is correct, B is
not
All generations
and the base of
A.B.C will be
deleted
All generations of
A.B.C will be deleted
but the base will
remain
In both A and B,
PROC1 will be
expanded from
the JCLLIB order
specified in the
JCL first
None of the above
2,3
A.B.C is a GDG
base, inspect the
following JCL
statements in a
single JCL //STEP1 EXEC
PGM=PGM1
//FILE1 DD
DSN=A.B.C(+1),DIS
P=(NEW,CATLG,DE
LETE)
..
.
//STEP10 EXEC
PGM=PGM10
//FILE2 DD
DSN=A.B.C(+1),DIS
P=SHR
which of the
options is true ?
1,2
It means the
installation
default value of
region is
requested
IEBGENER
IEBCOPY
IDCAMS
DFSORT
It will run
successfully
1,2
The Output is
written to the
dataset
The Output is
dummied out
X = 3, Y = 8
X=4, Y=9
X=2, Y=8
3&4
The Input
sequential Dataset
has the following
values for a
particular record
Column Beginning
1 = C4700033
Another record has
the following
values for a
particular record
Column Beginning
38 = 1515
Code the SYSIN
statement for the
IEBGENER such
that the record
with a value of
C4700033
beginning Column
1 is the last record
in a member TEST1
and record with a
value of 1515
beginning Column
38 is the last
record in a
member TEST2 . it
What happens if
we do not specify
the SYSIN DD
statement while
executing an
IEBGENER
//SYSIN DD
*
GENERATE
MAXNAME=2,
MAXGPS=2
MEMBER
NAME=TEST1
RECORD
IDENT = (8,
C4700033,1)
MEMBER
NAME=TEST2
RECORD
IDENT = (4,
1515,38)
//SYSIN DD
*
GENERATE
//SYSIN DD * MAXNAME=2,
GENERATE
MAXGPS=2
MAXNAME=2,
MEMBER
MAXGPS=2
NAME=TEST1
MEMBER
RECORD
NAME=TEST1
IDENT =
RECORD IDENT (C4700033,8,
= (1,
1)
C4700033,8)
MEMBER
MEMBER
NAME=TEST2
NAME=TEST2
RECORD
RECORD IDENT IDENT =
= (38, 1515,4)
(1515,4, 38)
//SYSIN DD *
GENERATE
MAXNAME=2,
MAXGPS=2
MEMBER
NAME=TEST1
RECORD IDENT =
(C4700033,8, 1)
MEMBER
NAME=TEST2
RECORD IDENT =
(1515,4, 38)
1
The IEBGENER
would execute
as SYSIN DD is
not required
The IEBGENER
would execute
with return code
of 4
The IEBGENER
would not
execute with a
return
code of 12
The IEBGENER
would not execute
with a return
code of 16
8) The Following
IEBGENER is
required to create
an output dataset
with First 9
Characters of Input
Dataset with
packed Decimal
Data
//STEP1 EXEC
PGM=IEBGENER
//SYSUT1 DD
DSN= Input Dataset
name, DISP=SHR,
//SYSUT2 DD
DSN= Output
Dataset name,
DISP=SHR,
//SYSIN DD *
GENERATE
MAXFLDS=1
RECORD FIELD=
X,
//SYSPRINT DD
SYSOUT=*
//SYSDUMP DD
(9,1,HE,1)
SYSOUT=*
(9,1, ,1)
A Character set
A Character
in which each
set in which
character is
each character represented by a
Double Byte
Character Dataset is represented 16 Byte
by a 2 Byte
Hexadecimal
is
Binary Code Code
The maximum
number of Sort
Work Files used
can be
16
32
(9,1,PD,1) (9,1,PZ,1)
A Character
set in which
each character
is represented
by a 2 Byte
Code
20
A Character set
in which each
character is
represented by a
16 Byte Code
3
What is the
constraint if
IEFBR14 to be used
if we want to
delete a large
number of dataset,
which are being
used further down
in the JCL and all
these datasets are
migrated on to a
tape?
Time is a
constraint as
IEFBR14 cannot
delete more
than 4 datasets
at time
Time is a
constraint as
migrated datasets
have to be
hrecalled before
being deleted
Dataset is
copied to
another
Dataset is copied volume
to its own volume without
without changing changing the
the name
name
Dataset is copied
to another volume
changing the name
1&3
The Copy
statement as
shown below does
:
//COMPRESS EXEC
PGM=IEBCOPY
//A DD
DSN=DATASET1,DI
SP=OLD
//B DD
DSN=DATASET2,DI
SP=OLD
//C DD
DSN=DATASET3,DI
SP=OLD
//SYSIN DD*
Copies A to
COPY
OUTDD=B,INDD=(A B compresses
B , Copies C to Copies A to B,
,B,C,B)
B compresses Copies C to B
B
compresses B
A Dataset needs to
be copied to
another dataset.
The utility by which
this can be
achieved is
IEBGENER,
DFSORT,
IEBCOPY
Merges A &
C, copies to B
and
compresses B None of the above
IEBGENER,
IEBGENER,
IEBCOPY,
DFSORT, IEFBR14 IEFBR14
IDCAMS
IEBGENER
Which utility do
use to send mails
using SMTP?
IEBCOPY
The PARM=MOD
on the following
Lines means
//STEP1 EXEC
PGM=IEBUPDTE,
//
PARM={MOD}
DFSORT
Specifies that
Specifies that
the input
the Output Data Specifies that the consists of both
set would be
input consists
the Control
created if it
solely of the
data set and
does not exist Control Data Set input data set None of the above
We have situation
where we want to
increase the space
allocated to a PDS.
The PDS has a large
number of
members. This can
be achieved by
taking the backup
of the PDS,
deleting it and
allocating a new
PDS with increased
space allocation.
The best way to do
itInwould
be using IEBGENER
the Following
IEFBR14
Example we have a
IEBCOPY
//COPY JOB
//JOBSTEP EXEC
PGM=IEBCOPY
//SYSPRINT DD
SYSOUT=A
//IN1 DD
DSN=DATASET1,
UNIT=DISK,
VOL=SER=111112,
// DISP=SHR
//IN5 DD
DSN=DATASET5,
UNIT=DISK,
VOL=SER=111114,
// DISP=SHR
//OUT2 DD
DSN=DATASET2,
UNIT=DISK,
VOL=SER=111115,
// DISP=(OLD,
KEEP)
//IN6 DD
DSN=DATASET6,
UNIT=DISK,
VOL=SER=111117,
The Output
dataset
DATASET2
would have the
The Output
members
dataset DATASET2 (A,C,E) after
None of the above
has members A, C the COPY
statement is true
from DATASET5
operation
The Output
dataset
DATASET2
would have the
members (A ,B
,C, D, E, F) after
the copy
operation
DFSORT
IEBCOPY
In the Same
Quetion as Q18,
SYSUT3
is
In the Following
Example we have a
IEBCOPY
//COPY JOB
//JOBSTEP EXEC
PGM=IEBCOPY
//SYSPRINT DD
SYSOUT=A
//IN1 DD
DSN=DATASET1,UN
IT=DISK,VOL=SER=1
11112,
// DISP=SHR
//IN2 DD
DSN=DATASET2,UN
IT=DISK,VOL=SER=1
11114,
// DISP=SHR
//OUT1 DD
DSN=OUTDATA,UN
IT=DISK,VOL=SER=1
11115,
//
DISP=(NEW,KEEP),S
PACE=(CYL,(1,1))
//SYSUT3 DD
UNIT=SYSDA,SPACE
=(TRK,(1))
Is a temporary
spill dataset
COPERST1 COPY
COPERST1 COPY OUTDD=OUT1
OUTDD=OUT1
INDD=IN1
INDD=IN1
EXCLUDE
INDD=IN2
MEMBER=C
SELECT
MEMBER
INDD=IN2
=((E,B,R))
SELECT
EXCLUDE
MEMBER
MEMBER=C
=((E,B,R))
SYSUT1 should
be PDS and
If a IEBCOPY is used SYSUT2 should
to unload a PDS to be the
a Sequential
Sequential
Dataset then
dataset
Defines the
Output Dataset Does not imply any
for the above options mentioned
COPY operation in 1,2 or 3
COPERST1
COPY
OUTDD=OUT1
INDD=IN1
EXCLUDE
MEMBER=C
INDD=IN2
SELECT
MEMBER
=((E,B))
SYSUT3 should
be PDS and
SYSUT2 should be SYSUT4 should
Sequential dataset be the
and SYSUT1
Sequential
should be a PDS dataset
SYSUT4 should be
PDS and SYSUT3
should be the
Sequential dataset
We want to unload
a PDS to a
Sequential Dataset
but with selective
members Which of
the following is
true
Its is possible
with IEBCOPY
Which of the
It ca be used to
following is not
replace
true about
members in a
IEBCOPY
dataset
It is not possible
with IEBCOPY
It is used for
Compressing
Dataset
It is possible to
unload
members from
PDS but
selecting
members is not
possible
It is used to
delete the
Specified
dataset
The limitation of
IEBUPDTE with
respect to logical
record length of
the PDS is
It can only be
used with
datasets
containing fixed
length record of
no more than
150 bytes
It can only be
used with
It can only be
datasets
used with datasets containing
containing fixed fixed length
length record of record of no
no more than 140 more than 120
bytes
bytes
Which of the
Following function
statement is used
to begin and
IEBUPDTE
operation
ADD
CHANGE
REPL specifies
that the a
member of a
dataset is being
entered in its
entirety as a
replacement for
Which of the
a sequential
following option is data set or a
not true for an
member of the
IEBUPDTE
old master data
statement
set
REPRO
REPRO
specifies that a
member or a
CHANGE specifies dataset is
that the
copied in its
modifications are entirety to a
to be made to an new master
existing member dataset.
of a Dataset
None of the
options given are
true
It is used for
Altering, Copying
and Relocking load
modules.
DELETE specifies
that the member of
a dataset is to be
deleted from the
new master dataset
4
Which of the
following is false
about the
following
IEBUPDTE program
do in the example
shown below
//STEP1 EXEC
PGM=IEBUPDTE,PA
RM=MOD
//SYSPRINT DD
SYSOUT=A
//SYSUT1 DD
DSN=SYS1.PROCLIB
,DISP=OLD
//SYSUT2 DD
DSN=SYS1.PROCLIB
,DISP=OLD
//SYSIN DD DATA
./
ADD
LIST=ALL,NAME=M
EM1,LEVEL=01,SO
URCE=0
./ NUMBER
NEW1=10,
INCR=10
The ADD
function
statement
indicates that
the records(
data
statements) in
the control
dataset are to
be placed in the
Output
2&4
Which of the
following
statement best
describes the
function of
IEBUPDTE
statement.
//STEP1 EXEC
PGM=IEBUPDTE,PA
RM=NEW
//SYSPRINT DD
SYSOUT=*
//SYSUT2 DD
DSN=DATASET1,
//
DISP=(OLD)
//SYSIN DD DATA
./
ADD
NAME=MEMB1,LIS
T=ALL
THIS IS THE FIRST
STATEMENT
00000010
./
ADD
NAME=MEMB2,LIS
T=ALL
THIS IS THE FIRST
Creating three
members in the
dataset
DATASET1 and
Copying the
record THIS IS
Copying the
THE FIRST
record THIS IS
STATEMENT
THE FIRST
in the newly
STATEMENT in created
Creating three the already
members
members in the existing members MEMB1,
dataset
MEMB1, MEMB2, MEMB2,
DATASET1
MEMB3
MEMB3
./ CHANGE
NAME=MEMB1
./ CHANGE
./ CHANGE
,UPDATE=INPL
NAME=MEMB1, NAME=MEMB1,U ACE
./ NUMBER
PDATE=INPLACE ./ NUMBER
SEQ1=ALL,NEW ./ NUMBER
SEQ1=ALL,NEW
1=10,INCR=10 NEW1=10,INCR=1 1=10,INCR=10
(This record
0
(This record
would be
(This record would would be
replaced
) be replaced
replaced
00000020)
00000020)
None of the options
mentioned
./ CHANGE
NEW=PS,NAME
=MEMB1
./ DELETE
SEQ1=10,SEQ2=
20
./ DELETE
SEQ1=10,SEQ2=20
./ CHANGE
NEW=PS,
./ DELETE
./ CHANGE
SEQ1=10,SEQ2 ./ DELETE
=20
SEQ1=10,SEQ2=20
SORT
FIELDS=(1,4,CH, SORT
This result
A),EQUALS
FIELDS=(1,4,CH,A), cannot be
NOEQUALS
achived
The requirement is
such that the Input
File needs to be
sorted and a
number of files
having same LRECL
but different
BLKSIZE are
concatanated. The
Following needs to
be taken care of
for BLKSIZE in this
case
The BLKSIZE of
the different
files
concatanated
cannot be
different
The Files
should be
The BLKSIZE is not concatanated
a constraint in
in the
sorting when a
ascending
number of files
order of
are concatanated Blocksize
The requirement is
such that the Input
File needs to be
sorted only for
detail record which
has its key beging
Column2 having
length of 5
characters. The
First
Record is a header
record followed by
100 detail record
and a trailer
record. The Header
record is
determined by a
letter 'H' in Column
1, Detail
record by a letter
'D' in Column 1 and
Trailer Record by a
letter 'T' in
Column 1.
The Following Sort
statement can
Achieve this
SORT
FIELDS=(1,1,CH,
A,2,5,CH,A),
SKIPREC=1
STOPAFT=100
The Requirement is
such that only
those records need
to be included
in the Input File
which has the word
'revenue' starting
Column 7.
This can be achived
by
IEBGENER
SORT
SORT
FIELDS=(1,1,CH,A,2,
FIELDS=(1,5,CH,A), SORT
5,CH,A),
SKIPREC=1
FIELDS=(1,6,CH, SKIPREC=1
STOPAFT=100
A),
STOPAFT=101
2
DFSORT
IEBCOPY
IEBUPDTE
The COBOL
program writes a
Field to an Output
File beginning
Column 10 . The
Field in COBOL is
defined as
S9(7)V99 COMP-3 .
This file is to be
SORT
sorted on the Field. SORT
SORT
FIELDS=(10,5,P SORT
The Sort statement FIELDS=(10,10,C FIELDS=(10,10,ZD, D,A)
FIELDS=(10,5,BI,A)
would be
H,A)
A)
IEBGENER
IEBCOPY
IEBUPDTE
The Duplicates
needs to be
dropped from
Input File. This can
be achieved
by DFSORT. The
Key based on
which DUPLICATES
is to be removed
start at Column 9
and has length of 6
. The datatype is
packed decimal
This can be achived
by Coding the
Following Sort
Control
Statements.
Summarization of
duplicates is not
SORT
required. Which is FIELDS=(9,6,PD,
the correct
A)
Statement
SORT
FIELDS=(9,6,PD,A)
SUM
FIELDS=NONE
SORT
FIELDS=(9,6,PD,
A)
CANNOT BE
SUM FIELDS=6 ACHIEVED
The Duplicates
needs to be
dropped from
Input File. This can
be achieved
by DFSORT. The
Key based on
which DUPLICATES
is to be removed
start at Column 9
and has length of 6
. The datatype is
packed decimal
This can be achived
by Coding the
Following Sort
Control
Statements.
Summarization of
duplicates is
required. Which is
the correct
SORT
SORT
statement
FIELDS=(9,6,PD) FIELDS=(9,6,ZD)
SUM
SUM
FIELDS=(9,6,ZD) FIELDS=(9,6,PD)
The Duplicates
needs to be
dropped from
Input File. This can
be achieved
by DFSORT. The
Key based on
which DUPLICATES
is to be removed
start at Column 9
and has length of 6
. The datatype is
packed decimal
This can be achived
by Coding the Sort
Control
Statements.
Summarization of
duplicates is not
required, but the
deleted records
need to be written SORT
to a seperate File . FIELDS=(9,6,PD,
Which is the
A),XSUM
correct statement
The DD statement
for the files which
contain the deleted
duplicate
records is
SORTXSUM
SORT
FIELDS=(9,6,PD,
SORT
A)
FIELDS=(9,6,PD,A) SUM
SORT
SUM
FIELDS=NONE,X FIELDS=(9,6,PD,A)
FIELDS=XSUM
SUM
SUM FIELDS=6
SORTSUM
XSUM
None of the
Options
INCLUDE
COND=((32,6,ZD
,GT,400000),AN
D,(32,6,ZD,LT,5
00000))
INCLUDE
COND=((32,6,ZD,G
T,500000),AND,(3
2,6,ZD,LT,400000)
)
INCLUDE
COND=((32,6,P
D,GT,400000),A
ND,(32,6,ZD,LT,
500000))
INCLUDE
COND=((32,6,PD,GE
,400000),AND,(32,6
,ZD,LE,500000))
1
It is not possible
to Code the Sort
Control
statements
instream in the
Procedure
OMIT
COND=((32,6,ZD
,LT,400000),OR,
(32,6,ZD,GT,500
000))
OMIT
OMIT
COND=((32,6,Z
COND=((32,6,ZD,L D,LT,400000),A
E,400000),OR,(32, ND,(32,6,ZD,GT
6,ZD,GE,500000)) ,500000))
OMIT
COND=((32,6,ZD,LE,
400000),AND,(32,6,
ZD,GE,500000))
2
The Requirement is
such that the Input
File needs to be
Split into
6 different Output
Files. The key on
which the File is to
be split is
numeric and the
ranges for the File
is given below
File One : Between
0 & 5000
File Two : Between
5001 & 10000
File Three :
Between 10001 &
15000
File Four : Between
15001 & 20000
File Five : Between
20001 & 25000
File Six : Between
25001 & 30000.
which of the
following is correct
This can be
achieved using
DFSORT in one
single step
This can be
achieved using
DFSORT multiple
times
The maximum
number of Files
which can be
merged using
DFSORT is
The Project
Requirement is
such that the
Existing Report File
needs to
be deleted every
time the report
program runs, A
new report needs
to created of the
number of
employees in each
Department and
information about
the employees.
The Report
Program uses the
Sequential File as
Input. The utilities
which has to be
used in this case is DFSORT Only
32
12
IEBGENER &
DFSORT
16
IEFBR14 &
DFSORT
20
IEBGENER Only
The Input
sequential Dataset
has the following
values for a
particular record
Column Beginning
1 = 4000
Another record has
the following
values for a
particular record
Column Beginning
38 = 1515
Code the IEDNT
statement for the
IEBGENER such
that the record
with a value of 400
beginning Column
1 is the last record
in a member TEST1
and record with a
value of 1515
beginning Column
38 is the last
record in a
member TEST2 . it
can be assumed
//SYSIN DD
*
GENERATE
MAXNAME=2,
MAXGPS=2
MEMBER
NAME=TEST1
RECORD
IDENT = (4,
4000',1)
MEMBER
NAME=TEST2
RECORD
IDENT = (4,
1515,38)
The COBOL
program writes a
Field to an Output
File beginning
Column 10 . The
Field in COBOL is
defined as a COMP
field. This file is to
be sorted on the
Field. The data
type on the SORT
Control Statement
would be
PD
//SYSIN DD
*
GENERATE
//SYSIN DD * MAXNAME=2,
GENERATE
MAXGPS=2
MAXNAME=2,
MEMBER
MAXGPS=2
NAME=TEST1
MEMBER
RECORD
NAME=TEST1
IDENT =
RECORD IDENT (4000,8, 1)
= (1, 4000,8)
MEMBER
MEMBER
NAME=TEST2
NAME=TEST2
RECORD
RECORD IDENT IDENT =
= (38, 1515,4)
(1515,4, 38)
//SYSIN DD *
GENERATE
MAXNAME=2,
MAXGPS=2
MEMBER
NAME=TEST1
RECORD IDENT =
(4000,8, 1)
MEMBER
NAME=TEST2
RECORD IDENT =
(1515,4, 38)
1
ZD
BI
CH
The File to be
sorted is Small
and whose
records would fit
in the storage at
once
When using
DYNALLOC
parameter on
an OPTION or
SORT control
Statement
This can be
achived by Using
the OMIT
statement in the
SORT Control
statement
This can be
achived by
using both the
include and the
omit condition Cannot Say.
This can be
achived by
Using the
INCLUDE
statement in
the SORT
Control
statement
Locking Services
Database
services
DDF
If an application
Segmented
does a lot of 'mass
delete' what kind
of tablespace
would help
Simple
Partitioned
Insert statement
with VALUES clause
for a table doesn't
mention the
column name and
the column is
defined as CHAR(1)
NOT NULL. What
will be result of the
execution.
It will be
successful with
value nulls for the
column that was
omitted
It will be
It will be unsuccesssuccessful with ful
value 'NA' for
the column
that was
omitted
Statement will
execute fine
It will be
successful with
value spaces for
the column that
was omitted
How do I restrict
By using the
my output based FILTER cluase
on column
function.
Two tables are
Outer Join
being joined and
there are some
non-matching
columns. All the
columns of these
two tables are
defined as NOT
NULLS. When do I
get NULLS for some
of the column
values in my JOIN
operation.
By using the
WHERE cluase
By using the
RESTRICT
cluase
Inner Join
For a highly
accessed table, the
index and the
tablespaces
bufferpools should
be
A table has its
unique clustered
index built on
columns A, B and
C. A new
application has
been developed
which will access
this table very
frequently with
search criteria
based on columns
A and B. Should I
go ahead and
create a new index
on A and B to
enhance the
performance
QMF and SPUFI are
examples of
Different
BP4
BP1
No
Option 1 and 2
Advance SQLs
Embedded SQLs
Same
By using the
HAVING cluase
1, 3 and 4
How do I ensure
that I have only
one row per page
im my tablespace
definition
This is not
physically possible
We cannot
JOINS
DERIVED VALUE
perform any
insert/delete/upda
te on a view which
has
What dependant Index
Views
object isn't
dropped when a
table is dropped
What should be my PIC S9(4) COMP PIC S9(9) COMP
COBOL host
variable be
decared as if I am
selecting a column
which is defined as
integer in DB2
DISTINCT
GROUP BY
Synonyms
Alias
If in a COBOL
No error
program, I fail to
declare a null
indicator, what do I
get
Checking SQLCODE OPEN CURSOR
after one of these
following
statement in a
COBOL program is
not required
Precompiler
warning
SQLCODE -305
SQLCODE 100
1,2,3 and 4
UPDATE
DELETE
PRECOMPILER
LKED
BIND
PRECOMPILE
LKED
BIND
PACKAGE
Which of the
ISOLATION LEVEL
would you specify
for the best
concurrent access
with a fair degree
of data integrity
RR
UR
RS
BIND
CHECK
AUDIT
COPY
QUIESCE
REPAIR
CS
2 and 3
REBIND
RUNNING the
APPLICATION
during a quiet
time
Consider the
following code :
COMPUTE A = B
In the above
example, when will
you prefer
COMPUTE
statement over the
MOVE statement?
In which division
and section, the
Special-names
paragraph
appears?
What does
passing BY
REFERENCE
mean?
When there's a
possibility that
significant digits
of the result will
be lost in
execution
MOVE is always
preferred
Environment
Environment division
division & Input- and Configuration
Output section Section
COMPUTE is
always preferred
Identification
Division.
Not applicable
Not Applicable
What is
difference
between next
sentence and
continue ?
NEXT
NEXT SENTENCE
SENTENCE gives gives control to the
control to the next verb following the
verb after the
next period.
explicit scope
CONTINUE gives
terminator.
control to the next
CONTINUE gives verb after the explicit
control to the verb scope terminator.
following the next
period.
Both are
functionally
same.
16 bytes and 20
digits.
4 bytes and 10
digits.
8 bytes and 10
digits.
Numeric
unsigned.
Alphaneumeric
Numeric comp-3
Numeric comp.
Compilation error.
'AAAAA'
Runtime error
Both
Not Applicable
Yes
No
Low Values
Spaces
In an EVALUTE
statement is the
order of the WHEN
clauses significant?
What is the default
value(s) for an
INITIALIZE verb
executed on an
alphaneumeric
variable ?
Zeros.
Consider the
following piece of
code :
77 COUNTR PIC 9
VALUE ZERO.
01 DATA-2 PIC
X(11). . .
INSPECT DATA-2
TALLYING COUNTR
FOR LEADING "0"
REPLACING FIRST
"A" BY "2" AFTER
INITIAL "C"
If DATA-2 is
0000ALABAMA,
what will DATA-2
and COUNTER be
after the execution
of INSPECT verb?
Counter=3. Data-2
unchanged.
a/five/ABCD?six
a/FIVE/ABCD?six
a/FIVE/abcd?six
Data unchanged
Not Applicable
01 DATA-4 PIC
X(11).
:::
INSPECT DATA-4
CONVERTING
"abcdefghijklmnop
qrstuvwxyz" TO
"ABCDEFGHIJKLMN
OPQRSTUVWXYZ"
AFTER INITIAL "/"
BEFORE INITIAL"?"
What will the
contents of DATA-4
be after the
conversion
statement is
performed, if
before conversion
DATA-4 =
a/five/?six
Output
Extend
I-O
ON SIZE ERROR
INVALID KEY
AT END
Which mode of
opening is required
when REWRITE is
used?
Which clause can
be used instead of
checking for FILE
STATUS = 10?
What is the
difference between
performing a
Paragraph and
Section ?
What should be
the sorting order
for SEARCH ALL?
How do you define
a sort file in JCL
that runs the
COBOL program?
Performing a
SECTION will
cause all the
paragraphs that
are part of the
section, to be
performed.
Performing a
PARAGRAPH will
cause only that
paragraph to be
performed.
Performing a
SECTION will not
return control to the
statement following
the particular
Perform statement.
Performing a
PARAGRAPH will
return control to the
statement following
the particular
Perform statement.
None of the
above.
Use DDNAMES
SORTWK01,SORTW
K02,SORTWK03,etc
in the step.
Yes
No
Program will go
into an infinite
loop.
Compilation error.
Compilation
error.
No difference
between GO BACK
and STOP RUN when
used in a standalone
program.
10
50
No,only in
Numeric and
Alphaneumeric
data types.
No,only in
Alphaneumeric data
types.
Yes
No,only in
Alphabetic and
Alphaneumeric data
types.
What is the
maximum length of
a field you can
define using COMP3?
12 Bytes
9 Bytes
10 Bytes
15 Bytes
S0C1
S0C4
S0C7
S913
For Renames
clause
For Renames
clause
For Renames
clause
Yes
No
Passing by
Reference
Linkage Section
Working storage
section
File Section
Input-Output section
The statement
closes an opened
file and it prevents
the file from being
opened by any
program.
The statement
closes an opened
file and it prevents
the file from further
being written into by
the same program.
Where do you
define your data in
a program if the
data is passed to
the program from
a Caller program?
The statement
None of the above
closes an opened
file and it
prevents the file
from further being
opened by the
same program.
Access mode
must be
RANDOM.
Access mode
must be
DYNAMIC.
Compilation
error.
Compilation
error.
38
44
14
32
Total no of bytes in
the following
01 rec-1
02 first-group
03 a1 pic x(4).
03 a2 pic 99.
02 second-group
redefines firstgroup.
03 A3 pic999.
03 A4 pic 999.
02 third-group.
03 A5 occurs 5
times pic 99.
22
16
12
10
Perform P2 varying
I from 1 by 1 until I
> 10 will execute
P2
Which of the
following verb can
be used to
manipulate the
value of an index
name ?
9 Times.
10 Times.
0 Times.
1 Time.
ADD
MOVE
SUBTRACT
SET
Too many GO TO
stmts make a
program difficult to
understand
Which of the
following is not
true ?
Go thru the
following piece of
code and answer
the question that
follows :
Move Zeroes to I
move 5 to j
perform para1
varying I from 10
by 2 until I = 0
display j.
para1.
Add 5 to j.
Whatll be the
value after
execution of
display stmt ?
35
40
30
25