MF

Published on May 2016 | Categories: Documents | Downloads: 108 | Comments: 0 | Views: 833
of 68
Download PDF   Embed   Report

Comments

Content

Question

Option 1

Option 2

What does the Path
of an alternate index
contain?

Base cluster data
records sorted by
Primary Key
values inside
Alternate Key
Primary Key
values.
pointers.

Option 3

1

Is of no
significance.

Highest return code
for VSAM.

1

Option 1 and
Option 3

1

MAX NUM OF
DUPLICATES
specified in
Alternate Key
defination.

What may be the
fastest way to read
the penultimate
record of a VSAM
file (You dont know Using 'Fileaid'
the number of
backward copy
records in the file). option.

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.

It stands for the
max number of
What is the
Duplicate keys
significance of the of any VSAM
number 32767.
AIX.

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

1

1

4

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?

A VSAM file that
has never
contained a
record is
treated as
unavailable.

COBOL will write a
dummy record to
the file & then
delete it out.
Using a Dummy
program that just
Opening the file opens the file for
for Input in
output & then
COBOL.
closes it.

COBOL will
write a dummy
record to the COBOL returns a
file.
File Status of 35.

2

Opening the
File as OUTPUT Option 1 and
in COBOL.
Option 3

2

Both input and
output
Input operation
operation
only

Output
Extend mode
operation only operation

1

X'FFFF'

X'AFFF'

X'7FFF'

3

Prevent the job
from running if
some other job
is using the
same cluster
name.

Prevent other jobs
from updating the
VSAM and Only let
the above job
Update the
CLUSTER.

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

4

4

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.

EXPORT the VSAM
and the IMPORT it
back to a New
VSAM

1

LDS

ESDS

KSDS

1

2,4

2,Twice of Recs/CI
(considering I/O
and Processing
Buffers)

1

Recs/CI,2

What will happen
if FSPC(100 100) is Control interval
specified in
will be left
Control area will
DEFINE?
empty.
be left empty.

One record will
be written in
each CI and 1 CI
will be created Option 1 and
for each CA.
Option 2

3

Mention in which
datasets VERIFY
cannot be used.

Relative Record
Linear Data Set Dataset

3

Key Sequenced Entry Sequenced
Dataset
Data Set

Alter can be used
to convert
Specifying
CISZ(4096) at the
cluster level for a
KSDS results in

ESDS to LDS

KSDA to LDS

VSAM ignoring
the
specification

Data and index
CISZ 4k each

If the key of a KSDS
record begins in
the second field
(first field is 25
bytes long), the
offset in the
KEYS parameter is

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

1

Index CISZ 4K; data
CISZ selected by
VSAM

3

26 None

1

Data component
name

Index
component
name

Option 2 and
Option 3

2

program, JCL,
catalog

JCL, catalog,
program

catalog, program,
JCL

4

Mention in which
datasets VERIFY
cannot be used.

Key Sequenced Entry Sequenced
Dataset
Data Set

Option 3 & Option
Linear Data Set 4

4

Suppose you are
defining a multivolume data set
with VOL(A B) and
five key ranges
specified. Which
one of the
following correctly
indicates where
each key range will
be located?

First key range
on VOL A;
First key range on
second on B;
VOL B; second on
third on A; etc. A; third on B; etc.

First key range
on VOL A;
All key ranges on
remaining key VOL A; B is used for
ranges on B.
overflow only.

3

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

4

Neither REPRO nor
EXPORT

2

3

Which one of the
following backs up
data
in REPRO
CI mode?
During
you

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.

What will happen if
a VSAM dataset
name starts with
A temporary
&& in the IDCAMS dataset will be
DEFINE?
created.

A reusable VSAM IDCAMS will
dataset will be
give an error
created.
condition.

VSAM will create
the dataset with
the name supplied.

3

3 CYLINDERS

3 CYLINDERS and
the Tracks left over.

3

Data component
will be allocated
the Coded space
value.VSAM will
calculate the an
additional amount
for Index
component.

4

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

2

VSAM will try to
allocate
Secondary
Extent in the
same Volume as
the primary
Multiple volume is extent.If not
specified in the
avaiable will
VOLUMES
allocate
parameter.What
Secondary
will happen if the extent in the
primary extent is next listed
used up.
volume.

VSAM will try to
allocate Secondary
Extent in the same
Volume as the
VSAM will
primary extent.If
VSAM will allocate allocate
not avaiable will
secondary extent primary extent allocate primary
in the next listed in the Next
extent in the next
volume.
listed volume. listed volume.

4

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.

3

When can a
BLDINDEX
command be
executed?

After Defining
the Base
Cluster.

The Base cluster
data as well as its
Upgrade Set gets
updated with the
changed Data.The
AIX is Upgraded
through the PATH.
After Defining the
After Defining Base Cluster, the
the Base
Alternate Index
After Defining the Cluster, the
Cluster,the Path
Base Cluster and Alternate Index and Loading the
the Alternate
Cluster and the Base cluster with
Index Cluster.
Path.
data.

4

Which one of the
following COBOL
Structure can form
a 'Key' for an
INDEXED dataset?
01 KEY-01.
03 KEY-02.
05 KEY-BYTEFIRST PIC X(10).
05 KEY-BYTELAST PIC X(10).
03 KEY-03
PIC 9(2).
03 FILLER
PIC 9(5).
Combining KEY03 KEY-04
Combining KEY- BYTE-FIST and KEY- Combining KEYPIC 9(7).
02 and KEY-03. 03
03 and KEY-05 All 3 options

1

For a 4096 byte CI
what record size
fills up the CI space
completely
considering 10%
freespace was
specified.

2042

2043

1843

100

2

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

0

15

3

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

0

15

3

512

1024

2048

4096

1

10

4

1

3

The first 1500
records of a file are
sorted in ascending
key sequence, the
next 2500 are
unsorted. What
The job will fail The job will fail
will happen on a
and nothing will but 1500 records
VSAM REPRO?
be copied.
will be copied.
What is the file
status when you
try to Open a
VSAM just after
defination.
2
90

The job gives
are high return
code and 1500
records will be
copied.

35

The job gives are
high return code
and 1499 records
will be copied.

3

0

3

Using the following
Data calculate the
amount of (Actual
Free + Un-Usable)
space in
Bytes.DATA:
ATTRIBUTES
KEYLEN---------------30
RKP-------------------0
AVGLRECL-----------1000
MAXLRECL-----------1000
CISIZE-------------4096
CI/CA---------------180
STATISTICS
REC-TOTAL--------272262
REC-DELETED-----------0
REC-INSERTED------68083
REC-UPDATED-----------0

1086

1096

86

From the following
data calculate the
% freespace within
the space already
used by the
Dataset.
HI-A-RBA------184320000
HI-U-RBA------176209920
FREESPACE-%CA--------10
FREESPC--------89616384

46.25

54.25

46 None of the above

96

1

1

From the following
data calculate the
the % freespace
within the space
already used by the
Dataset.
Is it time to
reorganize the
dataset,
considering re-org
is required when
current freespace
% inside the used
boundary > CA
Freespace % by
25% and no of
records deleted in
high?
DATA:
ATTRIBUTES
KEYLEN---------------30
RKP-------------------0
AVGLRECL-----------1000
MAXLRECL-----------1000
46.25,Yes
From the
information below
Calculate the
number of CAs not
used by the VSAM
ALLOCATION
SPACE-TYPE-----CYLINDER
SPACE-PRI-----------250
HI-A-RBA------592773120
HI-U-RBA------556646400

46.50,No

755

46.50,Yes

805

46.25,No

50

1

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

3

1

7796

7763

7780

7790

1

What would be the
outcome of
running the
jobstream?
//STS01A JOB
CLASS=A,MSGCLAS
S=Q,MSGLEVEL=(1,
1)
//STEP1 EXEC
PGM=IDCAMS,REGI
ON=2M
//SYSPRINT DD
SYSOUT=*
//PERMCSI DD
DSN=SYSTEM.DATA
SET.NAME,DISP=OL
D
//TEMPCSI DD
UNIT=WORK,
// DSN=TEMPDSET,
//
SPACE=(CYL,(100,1
0)),
//
DCB=BLKSIZE=6400
,
//
DISP=(NEW,DELETE

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.

1

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

None of the above.

4

You wish to look at a
very large dataset.
How can you do it
best?
Edit

View

Browse

Show

3

Menu -->
Settings

None of the above

1

Which menu option
will you use to get
rid of the
underscore
characters in entry
fields in ISPF/PDF? Options --> CUA Options -->

Attributes

Settings

Which ISPF option
allows you to get
the command line
prompt to appear at
the top of panels?

4
What command
will you use to
change the color in
the PDS member
list?
COL

3

MLC

6

COLOR

0

SET

4

2

You wish to edit a
PDS member. But
when you go & try
to open the
member in edit
mode it throws a
message that
'Member in use'.
Now how do you
see who is editing
the dataset?
Press PF11
You are editing
your COBOL
program for which
you want to
highlight the 'IFELSE-ENDIF' loops
in you program.
Which of the
following
command will you
use?
HI ON

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

See 'Short Info' of
Press PF1 twice the dataset

3

COLOR ON

HIL ON

COL ON

1

Is a line mode
interface

Provides easy
Provides facilities management
for executing
of datasets
programs only in through
the foreground
dataset menu

All of the above

3

the option is
already active

the option is
restricted

Either one

4

RECONNECT field is ISPF primary
available in
Menu Screen
Login Screen
What is the
function of PF Key
Swap between
9?
Split Screen
Screens
Maximum how
many screens can
be opened
simultaneously by
an user in a
session?
4

the option is
unavailable

6

Utilities
Selection Panel ISPF Settings Screen

2

Forward

2

Backward

8

12

3

How can you
retrieve your
previous command
entered?
Pressing PF12

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?
?
*

Assume you have a
default key setting.
You want to scroll
down by half a
page in sequential Enter HALF in
dataset. How can the scroll field
you do that?
and press PF7

Pressing Ctrl
Page Up key

1

WW.W.AHOC..
MAINFRAM.IB WW.W.AHOC.MAIN
M.DATA
FRAMES.DATA

1

%

$

3

Enter CSR in the
scroll field and
press PF8

2

Enter HALF in the Enter PAGE in
scroll field and
the scroll field
press PF8
and press PF7

Select a correct set
of primary
commands from
the following lists: CAPS,END,COLS UNDO,MASK,HEX
What is Line
commands 'RR'
Replacing a
Repeating a block
used for?
block of lines
of lines

Pressing PF11

COPY,SWAP,DA
TA
CUT, EXCLUDE, END

4

Renaming a
block of lines

2

Recalling a block of
lines

You are trying to
edit a dataset
where the first line
is showing as 'THIS
IS TEST' from
column 1 till 12.
The third line is
printed as
'OVERLAYSFEATUR
ES' from column 1
till 16. Now if you
overlay line 1 with
line 3 then line 1
will be printed as: THIS IS TEST
Which of the
following
command is used
as Primary
command in
browse mode and
as Line command
in view mode?
SAVE
Type KEYS on
How can you
the command
delete 5 lines from line and assign
a dataset using PF DELETE to PF
key 4?
Key 4

OVERLAYSFEATUR THISLISSTESTU
ES
RES
THIS IS TESTURES

3

CUT

COPY

4

Type KEYS on the
command line and
assign D5 to PF
Key 4

Type KEYS on
the command
line and assign Can't be done using
:D5 to PF Key 4 PF Keys

COLS

3

You want to search
two strings 'TEST'
& 'TEXT' in a set of
PDS members.
Which utility would
you select?

3.12

3.13

3.14

3.15

4

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

1

You are trying to
create a Fixed
Block PDS using 3.2
utility. Which of
the following
specifications will
you use to create
the dataset?
Which utility can
you use to
compress a
dataset?
The following are
the dataset
cataloged in the
system:
TCHN046.TEXT.DAT
A
TCHN046.DATA.SO
RT
TCHN050.TEXT.DAT
A
TCHN046.TEXT.SOR
T
If you specify
TCHN046.**.DATA
* in Dataset List
utility what will be
the result of the
search?
How do you give
the command if
you want to find a
non blank
character?
What exact FIND
command syntax
do you use to
search for word
'sequence' in a file
between columns
30 to 70

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

3

1

TCHN046.DATA. TCHN046.TEXT.DA TCHN050.TEXT. No dataset will
SORT
TA
DATA
result

2

F '$'

4

F '⌐'

F 'sequence' 30
70
F 'sequence' 30

F P'$'

F P'⌐'

F 'sequence' 70 F 'sequence'

1

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

p''p'' ALL

2

F 'WB-PARMCOUNT'

2

Go to line with
bookmark C

2

What does the
command LC do?

represents
locate

X ALL;F 'WB-PARM- F 'WB-PARMCOUNT' ALL
COUNT' ALL
convert a single
convert a single
word to lower
line to lower case case

When jobs are
submitted where
can you monitor
them running?

SUPERC

SAR

SDSF

SAVR

3

OWNER S!A

PRE
S1A*,OWNER
S1A

PRE *,OWNER S1A

3

CANCEL

C

CA

3

I need to check all
jobs running under
my USER ID
S1A,how do I do? PRE *
How do you cancel
a job while its
running.
CAN
Cancel just
cancels the
job,purge
Whats the
cancels and
difference between purges the
cancel and purge? output
What can you see
in the JESYSMSG of
the jobs output?
JCL
Which TSO/ISPF
option is used to
search a pds?

Cancel
Cancel has higher command
Cancel is used for
priority than
cancels the job test jobs and purge
purge
faster
for production jobs.

1

System messages
generated while
the job was running

4

3.14

4

Joblog
information

3.3

PROC

3.7

3.13

Which option helps
you to transfer files
from mainframes
to windows?

3.13

3.2

3

6

How do you swap
between screens
on the mainframe? SWAP
SWAP LIST
LIST
RETP
When you try to
open a pds and
SE37 error is
thrown.What does
Dataset is not
this imply?
Dataset is in use created
Dataset is full No Authorization
Which option is
used to delete a
dataset?
3.4
3.3
3.1
3.2
How do you run
search on specific
pds members?

2

3

4

3.14 and SELECT
3.13

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?

4

Single period
implies
multiople
selection

3.12

NONOTICE

RECONNECT

Multiple
Single
underscores
underscoreimplies implies single
multiple selection selection

3.14

OIDCARD

2

Multiple
underscores implies
multiple selection

4

PF3
PF5
WR.W.AHOC.AI
NFRAMPM.DAT WR.1.AHOC.AINFR
ADEFN
AM.DATA

Attention key PF10
WR.W.AHOC.AI
NFRAM.DATAD WR.1.AHOC.AINFRA
EFN
M.$DATA

Compress the
pds using
option 'Z'

Copy the pds in
a new pds and Delete few
delete the old members of the
pds
pds

Rename the pds

2

3

3

1

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

AUTO SAVE ON AUTO SAVE OFF

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

2

3

Write .A on line
Write A before Write .A after line
20
Write A on line 20 line 20
20

1

Use REF
command

2

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=”

1

2

3

Can you use
instream data in a
Yes
No
JCL procedure
If the “DISP=”
keyword is not
coded for an
existing dataset,
what default values
will be used for
DISP=(NEW,CAT DISP=(NEW,DELET
LG,DELETE)
E,DELETE)
“DISP=”
How many
instream
procedures can be
coded in a single
1
15
job ?
Which of the
following is true
about the PARM=
on an EXEC
statement ?

It is used to pass
parameters to an
executable
program

Is the following line
of JCL syntactically
correct (assuming
that the lines
preceding and
following are
coded correctly)//SYSIN DD
DSN=A.B.C(X),DISP
=SHR CONTROL Yes

Only if you use
the SYSIN DD

Only if the procedure
in itself an inline
procedure and not a
cataloged procedure

2

DISP=(NEW,CAT
LG,CATLG)
None of the above

2

255 None of the above

2

It should be less
than 10 characters
in length

It will be ignored
if the program
does not accept
parameters

it will cause an SBP0
abend if the program
does not accept
parameters

No

Depends upon
the value of X

Only if this is the last
line in the job

1,3

1

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

Fail with a JCL
error

None of the above

2

Only if PGM1 is
present in A.B.C

Depends upon
installation

1

Both A and B

Neither A nor B is
correct

1

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

DD DATA statement DD * statement
for any DDNAME
for any DDNAME None of the above

On which line does
the SYSIN data end
in the SYSIN DD
statement below Line A
//SYSIN
DD*
Line B
Data A
Line C
Data B
Line D
Data C
Line E
//*
Line D
Line F
/*

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

2,3

Line F

None of the above
(depends upon the
next line)

1

A and B both

Neither A nor B is
correct

2

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

Bypass a step based
upon the condition
code of the previous Set the condition
steps
code for a step
None of the above

2

This is invalid,
will cause a JCL
error

None of the above

1

2

3

STEP X will never STEP X will always
execute
execute

On which line does
the SYSIN data end
in the SYSIN DD
statement below Line A
//SYSIN
DD DATA
Line B
Data A
Line C
Data B
Line D
Data C
Line E
//*
Line D
Line F
/*

Line E

Line F

None of the above
(depends upon the
next line)

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

Cataloged proc X in Not permitted
PDS A.B.C
syntactically

pqr will be ignored

If the inline proc is
before the EXEC
PROC statement,
then the inline proc
will be expanded. If
the inline proc is after
the EXEC PROC
statement, then the
cataloged proc X in
A.B.C will be
expanded

pqr will be treated pqr will be treated as
as SYSIN data in a continuation of the
STEP1
data in file X.Y.Z

A and B are both A and B are both
correct and mean correct but mean
B is correct, A is not the same thing
different things

4

3

3

//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 -

If any of the steps
prior to STEP1
returns a
condition code
(CC) not equal to
0, bypass STEP1

Only if the step
immediately prior
If any of the steps
to STEP1 returns
prior to STEP1
a condition code
returns a condition (CC) not equal to
code (CC) not equal 0, execute
to 0, execute STEP1 STEP1
None of the above

The COND=EVEN
on a step STEP1
means

Execute STEP1 only
Execute STEP1
if a previous step
only if a previous returned a non-zero
step has abended condition code

Execute STEP1
even if a previous
step has
abended

Execute STEP1 even
if a previous step
returned a non-zero
condition code

3

The COND=ONLY
on a step STEP1
means

Execute STEP1 only
Execute STEP1
if a previous step
only if a previous returned a non-zero
step has abended condition code

Execute STEP1
even if a previous
step has
abended

Execute STEP1 even
if a previous step
returned a non-zero
condition code

1

If the COND parm
is present on the
first step of a job

it is ignored when
the JCL executes,
the first step is
the 1st step will not
always executed execute

implies that that
entire JCL should
not be executed None of the above

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

Both A.B.C and X.Y.Z
must be present for
the JCL to run without
error
1,2,4

1

1

//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,
only if that is a step
in the job, not in the
proc

Job should
execute from the
step J10, which
may be either in
the job or the
proc
None of the above

1,2

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

A and B are both A and B are both
correct and mean correct but mean
B is correct, A is not the same thing
different things

Region

Restart

None of the above

JCLLIB

INCLIB

/*LIB

4

1,2

2

// SET
PGMA='MYPROG1'
…………………..
…………………..
//STEP1 EXEC
PGM=&PGMA
Which of the
following is/are
true ?

STEP1 will
execute a
program load
module &PGMA

STEP1 will execute
a program load
module MYPROG1

STEP1 will return
a JCL error,
because & is not None of the above is
allowed in PGM= true

2

//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

2

Job should
execute from
jobstep J10 and
procstep P10,
error if the step
does not exist

Job should execute
from jobstep J10
and procstep P10, or
the next higher step
if the step J10.P10
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

1

A is correct, B is
not

A and B are both A and B are both
correct and mean correct but mean
B is correct, A is not the same thing
different things

RESTART=J10.P10
on the jobcard
means
A. //J01 EXEC
PROC=PROC1
B. //J01 EXEC
PROC1

3

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

When the JCL is
submitted, the
steps actually do
not run

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

The job will return
a JCL error when
executed because
the same
stepname cannot
be used twice in
the same job

The job will execute
successfully and
both steps will
execute

The job will
execute
successfully and
only one of the
None of the above is
steps will execute true

2

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

STEPX will execute
only if the condition
code of any of the
previous steps is
greater than 4

If statement is
not allowed in a
JCL, so it will
None of the above is
return a JCL error true

2

Which
statement(s) is/are
true if you use
TIME=1440 on the
jobcard

All steps within
the job will have
unlimited
processor time
(upto the max for
the installation)

Total processor time It means the
for the job is 1440
same as
seconds
TIME=NOLIMIT

// 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

None of the above

STEPX will return
an S806
because it will try
to execute the
program
IE&UTILID load
module
None of the above

1,3

2

The following are
examples of the
PROC and INCLUDE
statements in a JCL
A. //J01 EXEC
PROC=PROC1
B. //J01 INCLUDE
MEMBER=PROC1
Which of the
following
statements are
true ?
a. //FILEIN DD
DUMMY
b. //FILEIN DD
DSN=NULLFILE
a. //FILEIN DD
DSN=DUMMY
b. //FILEIN DD
DSN=NULLFILE
a. //FILEIN DD
DUMMY
b. //FILEIN DD
NULLFILE
A.B.C is a GDG
base, inspect the
following JCL
statements //STEPDEL EXEC
PGM=IEFBR14
//DD01 DD
DSN=A.B.C,DISP=(
MOD,DELETE,DELE
TE),SPACE=(TRK(1,
1))

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 and B are both A and B are both
correct and mean correct but mean
B is correct, A is not the same thing
different things

3

A is correct, B is
not

A and B are both A and B are both
correct and mean correct but mean
B is correct, A is not the same thing
different things

2

A is correct, B is
not

A and B are both A and B are both
correct and mean correct but mean
B is correct, A is not the same thing
different things

1

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

2

In both A and B,
PROC1 will be
expanded from
the JCLLIB order
specified in the
JCL first
None of the above

Only GDG base
A.B.C will be
deleted not the
generations

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 ?

Syntax for file2 is
Wrong because
DISP=SHR
File1 & File2 refer
cannot be used
to the same
File1 creates a new for a (+1)
dataset
generation of A.B.C generation
None of the above

A.B.C is a GDG base
//FILE1 DD
A JCL error for
DSN=A.B.C,DISP=(N New generation of duplicate dataset
EW,CATLG,DELETE) A.B.C is created exists in catalog

A job has 285
steps, and all steps
are syntactically
and logically
correct. What will
happen when the
job executes ?
Which
statement(s) is/are
true if you use
REGION=0K on the
jobcard
Which utility do you
use to trigger the
next job automatically
using an IBM utility?

1,2

A file A.B.C will
be created, not a
gdg generation
None of the above

2

It will give a JCL
error for "job has too
many steps" and not
execute at all

It will give a JCL
error for "job has
too many steps"
after executing
None of the above is
255 steps
true

3

Gives the job all
the storage
available below
and above 16
megabytes

It has the same
implication as
REGION=0M

It means the
installation
default value of
region is
requested

None of the above

IEBGENER

IEBCOPY

IDCAMS

DFSORT

It will run
successfully

1,2

1

What does the
following piece of
code do
//PRINT JOB
...
//STEP1 EXEC
PGM=IEBGENER
//SYSPRINT DD
SYSOUT=A
//SYSIN DD
DUMMY
//SYSUT1 DD
DSNAME=D80.DAT
The Output is
A,DISP=SHR
//SYSUT2 DD written on the
system output The Output is
SYSOUT=A
device
written to the
(Printer)
Spool
The Valid values

The Output is
written to the
dataset

The Output is
dummied out

X = 3, Y = 8

X=4, Y=9

1

for ‘X’ & ‘Y’ in the
JCL given below are
//STEP1 EXEC
PGM=IEBGENER
//SYSUT1 DD
DSN= Input Dataset
name, DISP=SHR,
//SYSUT2 DD
DSN= Output
Dataset name,
DISP=SHR,
//SYSIN DD *
GENERATE
MAXFLDS=X,
MAXLITS=Y
RECORD FIELD=
(9,1,,1),
FIELD=(8,’ABCDEFG
H‘,,10),FIELD=(483,
17,,18)
//SYSPRINT DD
SYSOUT=*
//SYSDUMP DD
X=3, Y=7
SYSOUT=*

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

3

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

4

A Character set
in which each
character is
represented by a
16 Byte Code
3

8

2

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

What are the
dispositions for the
dataset, which can
be used if we want
to delete the
already existing
dataset using
IEFBR14?
(MOD, DELETE) (SHR, DELETE)
The result of using
the IEBCOPY utility
to compress a
dataset, the
condition to be
fulfilled is
Dataset is
copied to its
own volume
changing the
name

CPU memory is the
constraint as
Time is a
multiple USERs use
constraint as
IEFBR14 across the
IEFBR14
system. This
consumes huge increases the CPU
resources
time.

(OLD, DELETE) (NEW, DELETE)

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

2

1&3

2

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

1

IEBGENER,
IEBGENER,
IEBCOPY,
DFSORT, IEFBR14 IEFBR14

All of the above

1

IDCAMS

IEBGENER

4

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

3

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

4

1

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

Defines the Space
allocation for
Output Dataset
DATASET2

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

1

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

None of the options
given

2

SYSUT4 should be
PDS and SYSUT3
should be the
Sequential dataset

1

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.

1

3

It can only be used
with datasets
containing fixed
length record of no
more than 80 bytes
4

All the options are
true

4

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

The first record
of each
member is
The ADD function assigned
will take place if a sequence
member named number 10; the
MEM1 already
next record is
exists in the new assigned the
All the above
Master Dataset
sequence
three
options are
referenced by
number 20 and
true
SYSUT2
so on.

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

Listing the addition
of the statement
‘THIS IS THE FIRST
STATEMENT’ to the
three members in
the SYSOUT

3

What would be the
SYSIN DD
statements for the
operation
described below
using IEBUPDTE
A member MEM1
is to be updated in
place where the
data statements
replacing the
existing logical
record have a
sequence numbers
of 20. The entire
member is to be
renumbered and
specifies that the
first sequence
number of 10 is to
be assigned and
incremented by 10
for successive
sequence numbers.

./ 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

3

what would be the
SYSIN DD
Statement if a new
Sequential dataset
is to be created
from a partitioned
dataset member,
MEMB1 using
IEBUPDTE where I
do not want to
have records with
SEQ number 10
and 20 in the
sequential dataset.
The records with
Partitioned dataset
member has
recorsd with SEQ
number 10 & 20

./ 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

The Sort Control
statement for
sorting a variable
Block file on a key
which is from
Column 1-9 and
SORT
SORT
has Character data FIELDS=(1,9,CH, SORT
FIELDS=(5,9,ZD,
in a descending
D)
FIELDS=(1,9,ZD,D) D)
SORT
order would be
FIELDS=(5,9,CH,D)

1

4

The Input File has
three records
starting Column
position 1 in Input
File
KEY1DATA1
KEY1DATA2
KEY1DATA3
when a SORT With
the Following
statement is
applied,
SORT
FIELDS=(1,4,CH,A)
the Output appears
as
KEY1DATA2
KEY1DATA1
KEY1DATA3
If the Output is to
be the same as
Input,
The Sort Control
Card would be
changed to

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

All the options are
wrong

1

The Files should be
concatanated in the
descending order of
Blocksize

4

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

2

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)

3

The Input File
needs to be
reformatted such
that the Field in
range of
Column 101 - 150
would be
reformatted to
Column 1 - 50 in
Output and that in
1-50 input would
be placed in
Column 51-100.
This can be achived
by
DFSORT

1

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

2

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)

4

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

3

1

The Input File has
numeric Fields of
length 6 starting
Column 32.
We need to include
only those records
which are in the
range of
400000 and
500000, both the
limits exclusive.
This can be achived
by coding the
following Include
condition

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

Coding the Sort
Control
Statements in
The Procedure is
the Procedure
getting called from Instream using
a STEP in JCL. The SYSIN DD *
Procedure needs to SORT
have a SORT step FIELDS=(Pos,len
inseretd. This can ,type,order)
be achived by
/*

It is not possible
to Code the Sort
Control
statements
instream in the
Procedure

Code the SORT
control
statements in a
member of PDS
and refer this
member in the
SYSIN DD
statement

SORT can only be
coded in the JCL
and not a
procedure

3

The Input File has
numeric Fields of
length 6 starting
Column 32.
We need to include
only those records
which are in the
range of
400000 and
500000, both the
limits exclusive.
This can be achived
by coding the
following omit
condition

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

This can be achived
This cannot be using DFSORT only
achived using with a COBOL
DFSORT
program

1

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

3

3

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

3

The Sort Work File
would be used in
the Following
The File to be
Condition
sorted is Small

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

The File needs to
be sorted and only
certain records are
to be
included in the
output File. Which
of the Following is
correct

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

None of the options

4

4

IRLM is a component System services
of

Locking Services

Database
services

DDF

2

If an application
Segmented
does a lot of 'mass
delete' what kind
of tablespace
would help

Simple

Partitioned

All the three

1

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

3

Statement will
execute fine

Statement will DB2 will shut down
execute
without
returning
results for the
column
function

1

It will be
successful with
value spaces for
the column that
was omitted

A statement uses a Statement will
column function
fail
and uses a GROUP
BY clause but
includes only 2 of 4
columns that are in
the SELECT clause.
What will be result
of the execution.

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

Left Outer Join Right Outer 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

2

Maybe, if a DBA Yes
proposes.

No

Option 1 and 2

3

DYNAMIC SQLS STATIC

Advance SQLs

Embedded SQLs

1

Same

By using the
HAVING cluase

3

1, 3 and 4

How do I keep my LOCKSIZE PAGE LOCKSIZE PAGE
LOCKSIZE PAGE LOCKSIZE PAGE
tables locksize to LOCKMAX 0
LOCKMAX SYSTEM LOCKMAX
LOCKESCL NONE
page and disable
NONE
lock escalation in
the TABLESPACE
definition

1

How do I ensure
that I have only
one row per page
im my tablespace
definition

3

PAGESIZE=ROW PAGESIZE=RECLEN MAXROWS 1
SIZE
GTH

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

PIC S9(9) COMP- PIC INT
3

3

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

4

DECLARE CURSOR FETCH CURSOR CLOSE CURSOR

2

SQLCODE 100

1,2,3 and 4

4

WHERE CURRENT FETCH CURSOR SELECT
OF <cursor-name>
is applicable in a
COBOL probram
for these
statements

UPDATE

DELETE

DSNHPC is program COMPILER
for
Which process
COMPILE
establishes a
relationship
between the LOAD
module and DBRM
by creating and
marking them with
a common
timestamp

PRECOMPILER

LKED

BIND

2

PRECOMPILE

LKED

BIND

2

Which of this is not PLAN
executable and
cannot be specified
when a DB2 COBOL
program is run.

PACKAGE

LOAD MODULE NONE of the three
NAME

2

Which of the
ISOLATION LEVEL
would you specify
for the best
concurrent access
with a fair degree
of data integrity

RR

UR

RS

1

Which VALIDATION RUN
option in the BIND
statement would
degrade
performance

BIND

CHECK

AUDIT

1

What's the utility RUNSTATS
that's
recommended
after a REORG with
LOG NO option

COPY

QUIESCE

REPAIR

2

CS

2 and 3

Discover a table is BIND
badly organised
and did a REORG
followed by
RUNSTATS,
however the
application
accessing the table
is still performing
poorly. What did I
miss.

REBIND

RUNNING the
APPLICATION
during a quiet
time

01 level can have 01 level can have 01 level can have
What is the difference sublevels of 02 to sublevels of 02 to 49 sublevels of 02 to
51 but 77 level
but 77 level can
49 but 77 level
between a 01 level
can't have any have sublevels from can't have any
and 77 level?
sublevels.
52 to 76
sublevels.

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

When the data is
passed between
programs, the
subprogram refers
to and processes
the data items in
the calling
program's storage

When the data is
passed between
programs, the
subprogram refers to
and processes a
copy of the data
items in the calling
program's storage

NONE of the three

2

None of the above

3

COMPUTE is
always preferred

None of the above

1

Identification
Division.

None of the above

2

Not applicable

Not Applicable

1

What is
difference
between next
sentence and
continue ?

How many number
of bytes and digits
are involved in
S9(10) COMP?
Which picture
clause will you use
to define a
hexadecimal item
in a VALUE clause?
How many
dimensions are
allowed for a table
?

What would be the
output, when the
following code is
executed?
01 WS-TABLE.
03 WS-TABLE-EL
OCCURS 5 TIMES
PIC X(1) VALUE 'A'.
:::
DISPLAY WS-TABLE.

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.

None of the above

2

16 bytes and 20
digits.

4 bytes and 10
digits.

8 bytes and 10
digits.

4 bytes and 20 digits.

3

Numeric
unsigned.

Alphaneumeric

Numeric comp-3

Numeric comp.

2

6

5

4

7

4

Compilation error.

'AAAAA'

Runtime error

None of the above

2

What are the
different rules
applicable to
perform a serial
SEARCH?
A table has two
indexes defined.
Which one will be
used by the
SEARCH verb?

What are the
different rules
applicable to
execute SEARCH
ALL

The SEARCH can The SEARCH can Before the use of
be applied to only be applied to only a the SEARCH the
a table which has table which has the index must have
the OCCURS
OCCURS clause
some initial
clause and
and INDEXED BY
value.
INDEXED BY
phrase
phrase and before
the use of the
SEARCH the
index must have
some initial value.

None of the above

1

Both

Only first one

Only second one.

Program will get a
runtime error.

2

The table must be
sorted in
ascending or
descending order
before the
beginning of the
SEARCH. Use
OCCURS clause
with ASC/DESC
KEY IS
dataname1 option

The table must be
sorted in ascending
or descending order
before the beginning
of the SEARCH.

The table must
be indexed.
There is no need
to initialize index
value.

Not Applicable

1

The table may
not be sorted at
all.

The table must be
indexed. There is
no need to
initialize index
value.

Yes

No

Low Values

Spaces

1

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.

None of the above

2

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=4. Data2 unchanged.

Counter=3. Data-2
unchanged.

Counter=2. Data- Counter=4. Data-2 =
2 = ALABAMA
ALABAMA

1

a/five/ABCD?six

a/FIVE/ABCD?six

a/FIVE/abcd?six

Data unchanged

2

Not Applicable

2

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

When will you
open a file in the
EXTEND mode?

When the space When an existing file To extend the
allocated to a file
need to be
capability of a
need to be
appended by adding
file, I.e. a file
increased within
new records at its
opened in
the program.
end.
EXTEND mode
can be used as a
sequential file as
well as an
indexed file.
Input

Output

Extend

I-O

4

ON SIZE ERROR

INVALID KEY

AT END

None of the above

3

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?

What does scope
terminators do ?

How is sign stored
in a comp-3 field ?

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.

No sorted order is It can be either
required.
ASCENDING or
DESCENDING.

The table must
be in
ASCENDING
order only.
Use DDNAMES
Use DDNAMES
Sort file cannot
SD1,SD2,SD3,etc SORTD1,SORTD2,S be defined in JCL
in the step.
ORTD3,etc in the
which executes
step.
the COBOL
program.

1

The table must be in
DESCENDING order
only.

2

Use DDNAMES
SORTWK01,SORTW
K02,SORTWK03,etc
in the step.

4

Scope terminators Scope terminators
Scope
are used to mark are used to mark the terminators are
the end of the
end of a verb.
used to mark the
program.
end of any line.

None of the above

2

Sign is stored in Sign is stored in the Sign is stored in
the last byte of the last nibble (half-byte)
the
comp-3 field.
of the comp-3 field.
first(rightmost)
nibble (half-byte)
of the comp-3
field.

A comp-3 field can't
hold sign.

2

7

8

6

4

4

4

5

2

None of the above

2

How many bytes
does a S9(7) COMP3 field occupy ?
How many bytes
will a variable
occupy which has a
picture clause of
"PIC 9999+" ?

Yes

No

2

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.

4

10

5

50

None of the above

2

Make sure that
link option is
AMODE=ANY
and
RMODE=ANY.

Cannot force any
program to run above
16meg line

1

No,only in
Numeric and
Alphaneumeric
data types.

No,only in
Alphaneumeric data
types.

2

Will your COBOL
program which was
compiled with
NOSSRANGE
option, be flagged
with a runtime
error if any of the
Subscripts or
Indexes used in the
program goes out
of permissible
limits ?
What will happen if
you code GO BACK
instead of STOP
RUN in a stand
alone COBOL
program i.e.
a program which is
not calling any
other program ?
Read the following
code.
01 ws-n pic 9(2)
value zero.
a-para.
move 5 to ws-n.
perform b-para wsn times.
b-para.
move 10 to ws-n.

How many times
will b-para be
executed ?
What care has to
be taken to force
program to
execute above 16
Meg line?
Can JUSTIFIED be
used for all the
data types?

Make sure that
Make sure that link
link option is
option is AMODE=24
AMODE=31 and and RMODE=ANY.
RMODE=ANY.

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

3

S0C1

S0C4

S0C7

S913

3

What will be the
ABEND code if you
do a non-numeric
operation on a
numeric data ?
What are 88 level
variables used for ?
What are 77 levels
used for?
What are 66 levels
used for?

For Renames
clause

For Condition names For Elementary
data items

For Group level data
items.

2

For Renames
clause

For Condition names For Elementary
data items

For Group level data
items.

3

For Renames
clause

For Condition names For Elementary
data items

For Group level data
items.

1

Yes

No

2

Can Occurs clause
be defined at 01
level ?
Passing by Value Passing by Content

Passing by
Reference

None of the above

3

Linkage Section

Working storage
section

File Section

Input-Output section

1

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.

What is the default
method of passing
parameters from a
calling program to
a called program ?

Where do you
define your data in
a program if the
data is passed to
the program from
a Caller program?

What does a CLOSE
WITH LOCK
statement do?

The statement
None of the above
closes an opened
file and it
prevents the file
from further being
opened by the
same program.

3

What are the
access mode
requirements of
START statement?

Access mode
must be
RANDOM.

Access mode must
be SEQUENTIAL or
DYNAMIC.

Access mode
must be
DYNAMIC.

Access mode must be
SEQUENTIAL.

2

4

7

8

6

3

Run time error
with S0C4 abend
code.

Run time error with
S0C7 abend code.

Compilation
error.

Run time error with
S0C1 abend code.

2

Run time error
with S0C4 abend
code.

Run time error with
S0C7 abend code.

Compilation
error.

Run time error with
S0C1 abend code.

1

38

44

14

32

1

How many bytes
does a S9(7) SIGN
trailing separate
field occupy ?

What will happen if
you compare a
numeric data item
with a non-numeric
data item ?
What will happen if
you try to write to
an unopened file ?
Determine the
total no of bytes in
the following
01 rec1 .
02 a pic x(6).
02 b redefines a.
03 c occurs 6
times pic 9.
02 d occurs 4
times.
03 e pic x(5).
03 f pic 999.

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

2

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.

2

ADD

MOVE

SUBTRACT

SET

4

Too many GO TO
stmts make a
program difficult to
understand

2

Which of the
following is not
true ?

GO TO stmt is not The target of the GO Indiscriminate
essential in the
TO stmt being a
use of GO TO
sense that it is
procedure name
stmt can make
possible to write
avoiding GO TO
the control
programs without result in a program structure program
using GO TO
with no procedure
substantially
name
complex

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.

What’ll be the
value after
execution of
display stmt ?

35

40

30

25

3

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close