Vous êtes sur la page 1sur 38

1. You need to allocate with primary 100 blocks. a.

Stmt 1 and 2 are true


Extension of 20 blocks and the block size being 80 b. Stmt 1 is true and 2 is false
bytes. c. Stmt 1 and 2 are false
Which of the following SPACE parameter will you d. Stmt 1 is false and 2 is true
include in the above JCL?
a. SPACE = (100,(80,20)) 7. Which of the following are related to JES2
b. SPACE = (TRK,(100,20)) (JOBPARM)(choose 3)
c. SPACE = (20,(100,80)) a. PURGE=NONE
d. SPACE = (80,(100,20)) b. ROOM=500
c. LINECT=5
2. Which of the following are valid with respect to SORT d. SYSPRINT = X
in File-aid? (choose 2) e. COPIES = 50
a. We can sort records with only one field.
b. For RRDS and BDAM files the SORT 8. What does TYPRUN = SCAN in a JCL do?
command sorts records in relative a. It makes the JCL run fast
record number (RRN or RBA) order. b. It checks only for syntax of JCL and
c. We cannot sort a keyed file on a field submit the Job
other than the key field. c. It doesn’t check the syntax of JCL while
d. The default parameter for SORT is submitting
KEYS for a keyed file. Thus the d. It checks only for syntax of JCL and
commands SORT and SORT KEYS are not submit the job
the same.
9. What does UPDATE parameter in DEFINE PATH
3. //OUTPUT ABCD COPIES=5,COPYG=(1,2,3) indicate?
How will you modify the above statement such that a. When path is opened for processing
the output is directed to the target node RMT237 both base and aix is updated for
a. //OUTPUT ABCD processing
COPIES=5,COPYG=(1,2,3),TARGET=R b. To update BLDINDEX
MT237 c. To update Base cluster
b. //OUTPUT ABCD d. To update PATH
COPIES=5,COPYG=(1,2,3),NODE=RMT e. To update Alternate Index
237
c. //OUTPUT ABCD 10. COBOL program is written with ALTERNATE KEY
COPIES=5,COPYG=(1,2,3) IS option. Which of the following names in DD is used
,DEST=RMT237 to access.
d. //OUTPUT ABCD a. Provide only data component name
COPIES=5,COPYG=(1,2,3),SYSTEM=R b. Provide base cluster and AIX data
MT237 component
e. //OUTPUT ABCD c. Provide Base cluster name
COPIES=5,COPYG=(1,2,3),LOC=RMT2 d. Provide Base cluster and AIX Cluster
37 name
e. Provide base cluster name and path
4. What are the valid statements regarding Referback and name
override parameter.
a. override option can override the 11. Which of the following is TRUE with respect to
defined dataset parameters in JCL?
b. Referback option is a reference to a a. Positional parameters can be coded in any
earlier DD statement order after any keyword parameter
c. Overrides are not applicable in b. Keyword parameters can be coded in
INSTREAM PROC any order after any positional
d. Refer back and overrides cannot be parameter
applied to….. c. Both Positional and Keyword parameter
e. Referback can be used only in ... can be coded in any order
f. specific jobs. d. Both parameters are mutually exclusive

5. Which of the following command is used when a 12. Which of the following is special DD Name (choose 2)
system error occurs while closing a VSAM file and it a. SYSPOUT
is subsequently unavailable? b. SYSuDUMP
a. VERIFY c. STEPCAT
b. EXAMINE d. ABENDPOL
c. EXPORT e. JOBLIB
d. IMPORT
6. Stmt 1: REPRO can be used in case VSAM KSDS 13. The CI is 4096 bytes and it currently has 4 records.
dataset becomes unusable Record 1 is 1000 bytes, record 2, 3 and 4 are 1200,
Stmt 2: EXAMINE is used to inspect and report 1000, 800 bytes respectively.
structural errors with VSAM
What will happen if another record of 1000 bytes is c. XX/
added. d. XX*
a. None of the listed options. e. X/
b. Both CA and CI split happen 21. If both the JOBCAT and STEPCAT statements are
c. Only CA split happen coded in a step, which will take precedence?
d. Only CI split happen a. JOBCAT
b. Both the statements will be executed in a
14. Which of the following would be the disposition of sequence
abnormal termination by a DD statement of DISP = c. STEPCAT
(OLD, CATLG)? d. The one coded first in the JCL stream
a. UNCATLG 22. Which command is used to check the status of a
b. DELETE VSAM dataset if a job is terminated and the VSAM
c. CATLG dataset is not properly closed?
d. PASS a. CHECK
e. KEEP b. VERIFY
15. //STEP1 EXEC PGM=PGM1 c. REPRO
//FILEIN DD DSN=FILE1.TEST.DATA, d. STATUS
DISP=SHR 23. In the following Export command, what does the
//FILEOUT DD TEMPORARY command do?
DSN=FILE2.TEST.DATA,DISP=(NEW,DELETE //SYSIN DD *
) EXPORT MVS002.HRTITLE.TABLE –
//AVGREC=U,SPACE=(80,(100,20)) OUTFILE(BACKUP)-
What should be coded to run this pgm TEMPROARY
a. SPACE=(80,(50,10)) a. It indicates the source cluster will not
b. DISP=MOD remain after the portable copy is created.
b. It indicates the source cluster remains
16. What IBM utility will be used to print or punch all or after the portable copy is created.
selected positions of a sequential or partitioned dataset c. It indicates after copying the source
or PDSE? cluster will remain for temporary only.
a. IEBPTPCH d. It indicates the temporary copy of source
b. IEBPRINT cluster.
c. IEBPUNCH 24. Consider the JCL statement
d. IEBSCAN //CHECKIT IF ((RC LT 3 & RC LT 10) | RC = 15)
e. IEBPCHPRINT THEN
Which of the following sets of return codes cause
17. What dataset name you will give to browse a VSAM the relational expression above JCL to be evaluated
KSDS dataset? true.
a. Index component name a. 0,1,2,3, or 16
b. Cluster name b. 0,1,2,3 or 15
c. Cluster and data component name c. 1,2,3 or 14
d. Data component name d. 0,1,2 or 15
18. What is the IBM utility used to provide a pattern of e. 1,2,3 or 16
test data that can be used as a debugging aid. 25. Stmt 1: For Deleting in KSDS and RRDS the File
a. IEBEDIT should be opened in I-O mode in Cobol
b. IEBDBG Stmt 2: ESDS record can be deleted
c. IEBCOPY a. Stmt 1 is true and 2 is false
d. IEBGENER b. Stmt 2 is true and 1 is false
e. IEFBR14 c. Stmt 1 and 2 are false
19. An employee master file has to be designed for an d. Stmt 1 and 2 are true
organization. Customer says that 96% of the records of 26. A KSDS can be created without primary key value.
the master file will be accessed in one single cycle of True/False
processing through a COBOL program. Which of the 27. Consider the following :
following file organization you will recommend for //Jobcard
the master file? //PROC1 PROC …..
a. VSAM KSDS //
b. VSAM RRDS //PROC1 PEND
c. VSAM ESDS //STEP1 EXEC PROC=PROC1 ….
d. None of the above What kind of procedure is this.
20. You run a job executing a cataloged procedure and a. Symbolic Procedure
you need to determine whether or not a statement was b. Instream procedure
overridden. c. Cataloged Procedure
Which of the following symbols appear in column d. System Procedure
1 through 3 of the output listing if such a statement is 28. Compiler option to view the source code of cobol
overridden? program
a. X/X a. LIST
b. XX b. XREF
c. SOURCE How will you modify the above
d. FLAG statement such that the output is
directed to the target node RMT237
JCL-VSAM TEST 18/03/09 a. //OUTPUT ABCD
(Each question carries 1 mark till Q-No 30, COPIES=5,COPYG=(1,2,3),TARG
Q-31 carries 3 Marks and Q-32 carries 7 ET=RMT237
Marks) b. //OUTPUT ABCD
COPIES=5,COPYG=(1,2,3),NODE
1. Purpose of Export? =RMT237
c. //OUTPUT ABCD
a. a)copy the VSAM ds to COPIES=5,COPYG=(1,2,3)
another VSAM ds. ,DEST=RMT237
d. //OUTPUT ABCD
b. b)VSAM to Seq. COPIES=5,COPYG=(1,2,3),SYSTE
M=RMT237
c. c)VSAM to RRDS e. //OUTPUT ABCD
COPIES=5,COPYG=(1,2,3),LOC=
d. d)VSAM to ESDS RMT237

5. Which of the following command is used


when a system error occurs while closing
2. What are the possible parameters while a VSAM file and it is subsequently
doing a BLDINDX? (Choose 2) unavailable?
a. VERIFY
a. //sysin dd * b. EXAMINE
c. EXPORT
Bldindex Ifile(dd1) d. IMPORT
ofile(dd2) sortml(all)
6. Stmt 1: REPRO can be used in case
b. //sysin dd * VSAM KSDS dataset becomes unusable
Stmt 2: EXAMINE is used to inspect and
Bldindex report structural errors with VSAM
IDS(tchn08.mff004.esds) a. Stmt 1 and 2 are true
b. Stmt 1 is true and 2 is false
ofile(tchn08.mff004.esds.aix)
c. Stmt 1 and 2 are false
sortmessagelevel(all)
d. Stmt 1 is false and 2 is true
c. //Sysin dd *
7. Which of the following are related to
JES2 (JOBPARM)(choose 3)
Buildindex infl(dd1) outfl(dd2)
a. PURGE=NONE
b. ROOM=500
d. None
c. LINECT=5
d. SYSPRINT = X
3. Which of the following are valid with
e. COPIES = 50
respect to SORT in File-aid? (choose 2)
a. We can sort records with only
8. What does TYPRUN = SCAN in a JCL do?
one field.
a. It makes the JCL run fast
b. For RRDS and BDAM files the
b. It checks only for syntax of JCL
SORT command sorts records in
and submit the Job
relative record number (RRN or
c. It doesn’t check the syntax of JCL
RBA) order.
while submitting
c. We cannot sort a keyed file on
d. It checks only for syntax of
a field other than the key
JCL and not submit the job
field.
d. The default parameter for
9. What does UPDATE parameter in DEFINE
SORT is KEYS for a keyed file.
PATH indicate?
Thus the commands SORT and
a. When path is opened for
SORT KEYS are the same.
processing both base and aix
is updated for processing
4. //OUTPUT ABCD
b. To update BLDINDEX
COPIES=5,COPYG=(1,2,3)
c. To update Base cluster
d. To update PATH
e. To update Alternate Index
d. IEBSCAN
10. COBOL program is written with e. IEBPCHPRINT
ALTERNATE KEY IS option. Which of the
following names in DD is used to access. 16. What dataset name you will give to
a. Provide only data component browse a VSAM KSDS dataset?
name a. Index component name
b. Provide base cluster and AIX data b. Cluster name
component c. Cluster and data component
c. Provide Base cluster name name
d. Provide Base cluster and AIX d. Data component name
Cluster name
e. Provide base cluster name 17. What is the IBM utility used to provide a
and path name pattern of test data that can be used as
a debugging aid.
11. Which of the following is TRUE with a. IEBEDIT
respect to parameters in JCL? b. IEBDBG
a. Positional parameters can be c. IEBCOPY
coded in any order after any d. IEBGENER
keyword parameter e. IEFBR14
b. Keyword parameters can be
coded in any order after any 18. An employee master file has to be
positional parameter designed for an organization. Customer
c. Both Positional and Keyword says that 96% of the records of the
parameter can be coded in any master file will be accessed in one single
order cycle of processing through a COBOL
d. Both parameters are mutually program. Which of the following file
exclusive organization you will recommend for the
master file?
12. Which of the following is special DD a. VSAM KSDS
Name (choose 2) b. VSAM RRDS
a. SYSPOUT c. VSAM ESDS
b. SYSPDUMP d. None of the above
c. STEPCAT
d. ABENDPOL 19. You run a job executing a cataloged
e. JOBLIB procedure and you need to determine
whether or not a statement was
13. The CI is 4096 bytes and it currently has overridden.
4 records. Record 1 is 1000 bytes, Which of the following symbols
record 2, 3 and 4 are 1200, 1000, 800 appear in column 1 through 3 of the output
bytes respectively. listing if such a statement is overridden?
What will happen if another record of a. X/X
1000 bytes is added. b. XX
a. None of the listed options. c. XX/
b. Both CA and CI split happen d. XX*
c. Only CA split happen e. X/
d. Only CI split happen
20. If both the JOBCAT and STEPCAT
14. Which of the following would be the statements are coded in a step, which
disposition of abnormal termination by a will take precedence?
DD statement of DISP = (OLD, CATLG)? a. JOBCAT
a. UNCATLG b. Both the statements will be
b. DELETE executed in a sequence
c. CATLG c. STEPCAT
d. PASS d. The one coded first in the JCL
e. KEEP stream

15. What IBM utility will be used to print or 21. Which command is used to check the
punch all or selected positions of a status of a VSAM dataset if a job is
sequential or partitioned dataset or terminated and the VSAM dataset is not
PDSE? properly closed?
a. IEBPTPCH a. CHECK
b. IEBPRINT b. VERIFY
c. IEBPUNCH c. REPRO
d. STATUS d. FLAG

22. In the following Export command, what 28. Which of the following are valid with
does the TEMPORARY command do? respect to SORT in File-aid? (choose 2)
//SYSIN DD * a. We can sort records with only
EXPORT MVS002.HRTITLE.TABLE – one field.
OUTFILE(BACKUP)- b. For RRDS and BDAM files the
TEMPROARY SORT command sorts records in
e. It indicates the source cluster will relative record number (RRN or
not remain after the portable RBA) order.
copy is created. c. We cannot sort a keyed file on
f. It indicates the source cluster a field other than the key
remains after the portable field.
copy is created. d. The default parameter for
g. It indicates after copying the SORT is KEYS for a keyed file.
source cluster will remain for Thus the commands SORT and
temporary only. SORT KEYS are the same.
h. It indicates the temporary copy
of source cluster. 29. Write the syntax for overriding a DD
statement of a Procedure.
23. Consider the JCL statement
//CHECKIT IF ((RC LT 3 & RC LT 10) |
RC = 15) THEN
Which of the following sets of return 30. What is the terminal control program we
codes cause the relational expression use to execute TSO commands in JCL?
above JCL to be evaluated true.
f. 0,1,2,3, or 16 a. IDCAMS
g. 0,1,2,3 or 15
h. 1,2,3 or 14 b. IEFBR14
i. 0,1,2 or 15
j. 1,2,3 or 16 c. IEBPTPCH

24. Stmt 1: For Deleting in KSDS and RRDS d. IEBGENER


the File should be opened in I-O mode in
Cobol e. IKJEFT01
Stmt 2: ESDS record can be deleted
a. Stmt 1 is true and 2 is 31. Write a Job card that executes only the
false 5th step in a stream of job steps.
b. Stmt 2 is true and 1 is
false
c. Stmt 1 and 2 are false
d. Stmt 1 and 2 are true 32. Write a single JCL that creates a KSDS
file, copies data from a PS file, and it
25. A KSDS can be created without primary
also creates its AIX and its path.
key value. True/False

26. Consider the following :


//Jobcard
//PROC1 PROC …..
// 1. Many JCL statements contain specific
//PROC1 PEND
//STEP1 EXEC PROC=PROC1 …. values designed to direct & control the
What kind of procedure is this. execution of the statement. What are
e. Symbolic Procedure
these fields called ?
f. Instream procedure
g. Cataloged Procedure (1) Linkage Variables
h. System Procedure (2) Parameters
(3) Control Libraries
27. Compiler option to view the source code
of cobol program (4) Includes
a. LIST
b. XREF 2. Purpose of Export?
c. SOURCE
a)copy the VSAM to another VSAM - all the dataset will be uncatalogged
when it exceeds the limit.
b)copy VSAM to Seq.
- DSCB is not to be removed from the
c) copy VSAM to RRDS catalog.

d)copy VSAM to ESDS a).//GDGCREAT JOB NOTIFY=&SYSUID

3. IDCAMS step have THREE COMMANDS: //STEP1 EXEC PGM=IDCAMS


DELETE,DEFINE CLUSTER,REPRO...
//SYSPRINT DD SYSOUT=(A)
DELETE RC is 0
//SYSIN DD *
DEFINE CLUSTER Rc is 8
DEFINE GDG -
REPRO RC is 4
( -
AFTER THE EXECUTION OF THE STEP
WHICH RETURN CODE YOU WILL GET. NAME (TCHNZZZ.GDG.BASE) -

a)0 LIMIT(255) -

b)12 NOSCRATCH -

c)8 EMPTY -

d)4 )

4. WHICH JES2 STATEMENT is used to ASSIGN /*


a PRIORITY
//
a)./*priority
b). ).//GDGCREAT JOB NOTIFY=&SYSUID
b)./*signon c)./*jobpar d)./*setup
//STEP1 EXEC PGM=IDCAMS
5. // IF RC=4 THEN /*COMMENT*/
//SYSPRINT DD SYSOUT=(A)
CONTINUE
//MODEL1 DD
// ELSE /*COMMENT*/ DSN=TCHNZZZ.GDG.BASE,DISP=(,KEEP)
,
//STEP1
// SPACE=(TRK,
// ENDIF /*COMMENT*/ (1,10),RLSE),DCB=(RECFM=FB,LRECL=8
0,BLKSIZE=800)

//SYSIN DD *
Find The Errors in the Above Code..
DEFINE GDG -
a). Comment cannot be coded after the
statements ( -

b).CONTINUE is not a jcl statement NAME (TCHNZZZ.GDG.BASE) -

c).no errors LIMIT(255) -

d).you cannot leave a space between // NOSCRATCH -


and IF.
EMPTY -
6. Which of the following will satisfy the
below listed criterias, in GDG creation. )

Criterias: /*

- limit is 255. //
NOSCRATCH -

c). ).//GDGCREAT JOB NOEMPTY -


NOTIFY=&SYSUID
)
//STEP1 EXEC PGM=IDCAMS
/*
//SYSPRINT DD SYSOUT=(A)
//
//MODEL1 DD
DSN=TCHNZZZ.GDG.BASE,DISP=(,K 7. Which of the following jcl is correct for
EEP), bulding a BLDINDX?(CHOOSE 2)

// SPACE=(TRK, A).
(1,10),RLSE),DCB=(RECFM=FB,LREC
//BIX1 EXEC PGM=IDCAMS
L=80,BLKSIZE=800)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
//SYSOUT DD SYSOUT=*
DEFINE GDG -
//SORTWK01 DD SPACE=(CYL,(50,50))
( -
//SORTWK02 DD SPACE=(CYL,(50,50))
NAME (TCHNZZZ.GDG.BASE)
- //SYSIN DD *

LIMIT(255) - BLDINDEX IDS(VSAMAIX.BIX.ESDS)


ODS(VSAMAIX.BIX.AIX)
SCRATCH -
SORTMESSAGELEVEL(ALL)
NOEMPTY -
/*
)
B).
/*
//BUFSP EXEC PGM=IDCAMS
//
//ESDS DD
DSN=VSAMAIX.BIX.ESDS,DISP=SHR,AMP
d). ).//GDGCREAT JOB NOTIFY=&SYSUID ='BUFSP=500000'

//STEP1 EXEC PGM=IDCAMS //AIX DD


DSN=VSAMAIX.BIX.AIX,DISP=SHR,AMP='
//SYSPRINT DD SYSOUT=(A) BUFSP=500000'

//MODEL1 DD //SYSPRINT DD SYSOUT=*


DSN=TCHNZZZ.GDG.BASE,DISP=(,KEEP)
, //SYSOUT DD SYSOUT=*

// SPACE=(TRK, //SORTWK01 DD SPACE=(CYL,(50,50))


(1,10),RLSE),DCB=(RECFM=FB,LRECL=8
//SORTWK02 DD SPACE=(CYL,(50,50))
0,BLKSIZE=800)
//SYSIN DD *
//SYSIN DD *
BLDINDEX IFILE(ESDS) OFILE(AIX)
DEFINE GDG -
SORTML(ALL)
( -
/*
NAME (TCHNZZZ.GDG.BASE) -

LIMIT(255) -
C). C).Room=3456

//BUFSP EXEC PGM=IDCAMS 9. Which of the following statement corrects


the error in the given code:
//ESDS DD
DSN=VSAMAIX.BIX.ESDS,DISP=SHR,AMP //STEP1 EXEC PGM=IEFBR14
='BUFSP=500000'
//DD1 DD
//AIX DD DSN=TCHN94.MF005.ABC,DISP=(N
DSN=VSAMAIX.BIX.AIX,DISP=SHR,AMP=' EW,CATLG,DELETE),
BUFSP=500000'
//
//SYSPRINT DD SYSOUT=*
DCB=(LRECL=100,BLKSIZE=800,RE
//SYSOUT DD SYSOUT=* CFM=FB),UNIT=1093,

//SORTWK01 DD SPACE=(CYL,(50,50)) //
SPACE=((1,1),RLSE,CYL)
//SORTWK02 DD SPACE=(CYL,(50,50))

//SYSIN DD *
A).DISP= (NEW,CATLG,DLT)
BLDINDEX IDS(ESDS) ODS(AIX)
SORTML(ALL) B).SPACE=(CYL,(1,1),RLSE)
/* C).UNIT=SYSDA
D). D).PGM=IEBFBR14
//BUFSP EXEC PGM=IDCAMS

//ESDS DD
DSN=VSAMAIX.BIX.ESDS,DISP=SHR,AMP
='BUFSP=500000'

//AIX DD 10. WHICH OF THE FOLLOWING OPTION IS


DSN=VSAMAIX.BIX.AIX,DISP=SHR,AMP=' USED IN DFSORT TO RETRIEVE ONLY THE
BUFSP=500000' UNIQUE RECORDS.
//SYSPRINT DD SYSOUT=* A).SUM FIELDS=NULL
//SYSOUT DD SYSOUT=* B)SUM FIELDS=UNIQUE
//SORTWK01 DD SPACE=(CYL,(50,50)) C)SUM FIELDS=NONE
//SORTWK02 DD SPACE=(CYL,(50,50)) D)SORT FIELDS=NONE
//SYSIN DD * 11. What will be added in the SDSF JESJCL
columns 1 to 3, when a catalog proc is
BLDINDEX IFILE(ESDS) OFILE(AIX)
submitted,
SORTMESSAGELEVEL(ALL)
A).XX
/*
B).XX/
8. Choose the valid JES2 parameter in
/*jobparm(CHOOSE 3) C).XX*
A). Purge=none D).X/X
B).Sysprint=x 12. COND= (code,le) When will the satement
execute.
C).Copies=59
a) If RC < CODE
D).Linect=5
b) If RC > CODE 17. Input file column
Output file column
c) If RC = CODE
1-4 -------transfered to--
d) If RC>= CODE
10-12
13. Which parameter is used to select a
4-11 -------transfered to-- 20-
INITIATOR D?
27
A).INIT =D
12-15 -------transfered to-- 16-
B).CLASS=D 19

C).SYSINIT=D 16-17 -------transfered to--


Zeroes
D).INITIATOR=D
18 -------transfered to-- 5
14. To solve a VSAM space
problem wat are the steps involved? 19-22 -------transfered to--
‘Sum’
Step1 : Delete/Rename the old DS.
Using DFSORT reformat the input file
Step 2: Create a new VSAM DS with a with the above conditions.
large space.
A).OUTREC fields=
Step 3 : Rename the new DS with the (10,3,20,8,16,4,2z,5,1,c’sum)
Old DS.
B).INREC fields=
Step 4 : Copy the old DS to New DS. (10,3,20,8,16,4,2z,5,1,c’sum)

The order of steps C).INCLUDE fields=


(10,3,20,8,16,4,2z,5,1,c’sum)
A)2,4,1,3
D).FORMAT fields=
B).1,3,2,4
(10,3,20,8,16,4,2z,5,1,c’sum)
C).3,4,1,2
18. PROC:
D).1,2,3,4
// dd1 dd
15. In ISPF TS-> f -> f->1-> AIX. Wat will be DSN=henko.&country.n.&data..data(&
month)
displayed?

A).ALTERNATE KEY andPRIMARY KEY Main JCL:

// step1 exec proc


B).ALTERNATE KEY
country=india,data=sales,month=jan
C).PRIMARY KEY and ALTERNATE KEY and
What value will be assigned to the DSN
all CONTENT from base
in the above PROC?
D).ONLY POINTERS to base A)DSN=henko.indian.sales.data(jan)

16. Use of Dfsort (choose 2) B)


DSN=henko.country.sales.data(month)
A). merge two or more files into one
single file. C) DSN=henko.indian.salesdata(=jan)
B). select a subset of records from the
input file. D) DSN=henko.india.sales.data(jan)
C). sort the records ascending or 19. In RRDS, where we ll code the freespace?
descending within a dataset.
D). sort the member of PDS. A) data

B) Cluster
c) Index A).access mode is dynamic

d) Freespace is not applicable for B).move 02 to first 2 bytes,move LOW

RRDS VALUES to last 2 bytes

20. Purpose of rewrite and write C).start command with greater than the
key
A).REWRITE and WRITE is used to
override the existing record D).Access mode is RANDOM, READ WITH
INVALID KEY
B).WRITE is used to write a new record in
the file,REWRITE is used for override the 25. In a generic key process, there is no key in
new record. the KSDS file, then which file status you
will get?
C). WRITE is used to write a new record in
the file,REWRITE is used for override the A).10
old record.
B).23
D). WRITE is used delete the old
record,REWRITE is used for append the C).02
record
D).00

26. Key(8,24) wat is the lenght of the key?


21. Choose the compiler directives statements
A).32
a) copy
B).24
b) skip
C).8
c) control
D).64
d) adata
27. What is the purpose of //*XMIT <jobname>
e) ssrange
A).To transfer the data from one node to
22. In COBOL 85 we can access only Index and a remote node.
Relative files? True/ false
B). To set a priority from one node to a
remote node.

23. . Use of IEBGENER(CHOOSE 3) C). To signon from one node to a remote


node.
a) to create a backup of seq ps, member
of a pds, hfs, pdse. D). To signoff from one node to a remote
node.
b) print the seq ps, member of a pds, hfs,
pdse. 28. Order of Job Execution is determined by

c) Expand the existing member of a pds A). JESMSGCLASS and DPRTY


to create a new member.
B).JOBCLASS and PRTY
d) Entire job and JES2 statements are
C).TIME and REGION
selected by IEBGENER
D).JOBNAME and JOB Keyword
e) Used to select the job or job step in the
member.

24. In a VSAM KSDS file the key length is 4. 29. DD in the PROC can be overwritten in the
First 2 bytes contains class number, next 2 main JCL is done by,
bytes contains student number. To fetch
the class starting from 02, what are the A).//DDNAME.PARAMETER
steps involved?
B). //PROCStepname.ddname dd dsn= \.

C).//STEPNAME.PROC C).Future insertion

D).//STEPNAME.PGM D). For CIDF and RDF

30. IF/THEN/ELSE/ENDIF CAN BE nested upto 35. To list the source program in the
compilation listing, which option is used at
A).255 the time of compilation.

B).3273 A). SOURCE

C).15 B).LIST

D).IF STATEMENT CANNOT BE NESTED C).MAP

31. Records will be appended when i am using, D).COMPILE

A).RRDS

B).LDS 36. //dd1 dd disp= (mod,del,del)

C).KSDS // spaces=(trk...)

D).ESDS Wat will happen?

32. For changing the existing name of the A).File is created and deleted at the end
cluster, which command is used. of the job

A).ALTER B).File is created and jcl places the cursor


at the end of file (EOF)
B).CHANGE
C). file is created and deleted at the end
C).MODIFY
of this step.
D). ALIAS
37. Cisize is 4096, rec1- 1000bytes,rec2 -1200
33. . /*jobparm lines=60, bytes, rec3 -1000bytes, rec4- 800 bytes.
room=4222,time=50,proclib=proc03,copie Now inserting 1000 bytes rec. Wat will
s=5 happen?

What is the equivalent for the above A)CI Splits will occurs
stmt.
B)CA splits will occurs
A). /*jobparm li=60,
C)CI and CA Splits will occurs
ro=4222,ti=50,pr=proc03,co=5
D)records will not inserted
B). /*jobparm lin=60,
rom=4222,tim=50,pro=proc03,cs=5 38. //STEP1 EXEC
PROC=SUBMIT,TAPE=2400,NAME=SY
C). /*jobparm l=60,
S1
r=4222,t=50,p=proc03,n=5
//DD1 DD
DSN=&NAME..P,UNIT=&TAPE-2
D). /*jobparm le=60,
rm=4222,tm=50,pr=proc03,c=5 Wat is the value of the dsn,unit?
34. What is the purpose of the freespace is in A).DSN=SYS1.P,UNIT=2400
KSDS
B).DSN=SYS1P,UNIT=2402
A).For ALTERNATE KEY
C).DSN=SYS1.P,UNIT=2400-2
B).For INDEXED Keys
D).DSN=SYS1..P,UNIT=2398
39. Which column the name can be coded in A).Used to EDIT and BROWSE the VSAM
JCL and what are all the national FILE
characters allowed?
B).KEY commpand is ONLY VALID for
A).3 to 10 and %,*,- KSDS FILES

B).3 to 10 and $,@,- C).WE can scroll and FETCH the records

C).3 to 11 and $,@,# D). NEXT Keyword is optional

D). 3 to 10 and $,@,# E).Wecannot edit the PDS file

40. A: If a update set is used, and 44. The procdure with in the JOB IS called
modifications used will affect the AIX.
A).instream data
B: If AIX is opened, the base cluster will
also be opened automatically. B).instream procedure

A) A TRUE ,B TRUE B)A FALSE,B TRUE C).instream program


C)A TRUE,B FALSE
D). Catalog procedure
D)A FALSE ,B FALSE
45. At the end of this GDG Generation creation
41. IEBCOMPR is the utility used to. step

A).Used to compare flat file to ps file. //STEP1 EXEC PGM=IDCAMS

B).Used to compare partioned dataset to //DD1 DD


PDS DSN=TCHNZZZ.GDGBSAE(+1),DISP=(,CA
TLG),
C).Used to compare flat file to hierarical
file system //
DCB=(LRECL=80,RECFM=FB,BLKSIZE=80
D).Used to compress the PDS file. 0)

//SYSPRINT DD SYSOUT=*

42. With Respecte to REFER BACK and //SYSIN DD DUMMY


OVERRIDING which one is correct
A).New generation will be created
A).REFER BACK is used to reffer the DD
in following step, and OVERRIDING is B).JCL ERROR
used to ADD or OMIT the DDs and
C).ABEND S822
PARAMETERS in the previous STEP
D). Exiting version will be modified
B). REFER BACK is used to reffer the DD
in only previous step, and OVERRIDING is 46. With respect to FREESPACE Which one is
used to ADD or OMIT the DDs and correct
PARAMETERS in the previous STEP
A).FSPC(0 0) will not give any freespace
C). REFER BACK is used to reffer the DD
in previous and same step, and B).FSPC(100 100) will give only one CI in
OVERRIDING is used to ADD or OMIT the one CA
DDs and PARAMETERS in the PROC
C).FSPC(10) will produce only 10 %
D). REFER BACK is used to reffer the DD of free space in CI not in CA
in NEXT step, and OVERRIDING is used to
ADD D). FREESPACE(4096) will produce
or OMIT the DDs and PARAMETERS in the maximum availabe space to CI and CA
PROC
47. Use of IMBED and REPLICATE
43. Use of FILE-AID(CHOOSE 3)
A).IMBED is used to dulicate the index set A).cluster contains KEYRANGES
and sequence set in the first track parameter

REPLICATE is used to dulicate the B).ALTERNATE INDEX built for it


sequence set of each CI and replicated as
many as possible in separate track. C).Cluster is ESDS

B). IMBED is used to dulicate the only D).Cluster is KSDS


index set in the first track

REPLICATE is used to dulicate the JCL MODULE TEST


sequence set of each CI and replicated as
many as possible in separate track
1) A KSDS has an alternate index but the
C). IMBED is used to dulicate the buildindex was not done for the alternate index
sequence set in the first track to reduse cluster.
the seek time.
When I start accessing the KSDS cluster via
REPLICATE is used to for the index set alternate index(by specifying path in run jcl) what
happened ?
of each CI and replicated as many as Ans, no records are processed, (Records not
possible in separate track Processed) MAXCC=0
OPEN STATUS = 90, READ STATUS = 47,
D). IMBED is used to dulicate the CLOSE STATUS = 42
sequence set in the first track to reduse 2) S913 - You are trying to access a
the seek time. dataset which you are not authorized
to use.
REPLICATE is used to for the index set (and if you need access to a
of each CA and replicated as many as dataset you have to obtain from RACF
possible in separate track authority)
-------------------------------------------------------------------
-------------------------------------------------------------------
----------
48. DEFAULT KEY size for KSDS
VALID COMMANDS FOR
A).KEY is mandatory field in ksds ,so you FORMATTED SELECTION IN FILE-AID
need to specify,no default
CAPS Use CAPS OFF to establish exact case
testing for character fields.
B).default KEY size is start from the first
Default CAPS ON provides tests for any case
column end with 63th column and translates entered
lowercase characters to uppercase.
C).default KEY size is start from the first DISPLAY Control fields displayed and format of
column end with 64th column fields.
END Return to the Selection Criteria Menu
D) KEY(64 1) screen.
SHOW Control information displayed in center
49. With respect to VSAM which one is not column (OFFSET, FORMAT,
correct PICTURE).
OFFSET Control format of offset shown
A).VSAM is device independent (COLUMNS, RELATIVE, HEX).
OPTIONS Jump to Selection Criteria Options
B).VSAM is used to store the db2 tables screen.
UNFMT Jump to Unformatted Selection Criteria
C).VSAM is used to access the records screen.
fassly,because of efficiently organized ZERO Control zero suppress for numeric fields.
INDEX

D).VSAM dataset are more security SHO


compared to DB2 ,because it’s stored in W COMMAND
SHOW Control information displayed in center
DASD
column (OFFSET, FORMAT,
PICTURE).
50. A cluster cannot be REUSED if
COMMAND SHOW
MODEFMT, VFMT 5) While working with the catalog you may
LANGUAGECOBOL, PL/I get different kind of error message they
CONTROL COMMANDS FOR SHOW LEVEL, are:
NUMBER, FORMAT, OFFSET, PICTURE
information 1. Consider that the dataset already exist
in a catalog and the normal
SHOW PICTURE Change center column disp=(,catlg)
heading to PICTURE and information Then you will receive the ERROR MESSAGE as “THE
for each field to show the data declaration DATASET WAS NOT RECATALOGED”
Abbrev: S P. 2. IF “NO CATALOG” entry exists for the dataset
name (ie the dataset is not cataloged) and if you
SHOW FORMAT Change center column provide Unit, Volume, Recording mode or
heading to FORMAT and shows the Density then the data set will be cataloged
length and format of each field Abbrev: S F. 3. Consider the catalog entry exist for a dataset (ie the
dataset is already cataloged) on normal
SHOW OFFSET Change center column heading disp=(,uncatlg)
to COLUMNS and show the The system will uncatalog the dataset.
offset of each field relative to byte 1 Abbrev: S 4. When “NO CATALOG” entry exist for a
O. dataset(ie the dataset is not cataloged) and on
normal disp=(,uncatlg) is given then you will
SHOW LEVEL Change left column heading to receive the ERROR MESSAGE stating that
FIELD LEVEL/NAME and show “THE DATA SET WAS NOT
the hierarchical level number Abbrev: S L. UNCATALOGED”

SHOW NUMBER Change left column heading


to FIELD NUMBER/NAME and
show the system-assigned field number Use of Deadline Scheduling
Abbrev: S N. The purpose of deadline scheduling is to help JES3
use available resources best.
For example, if you work first shift and submit a job at
3) Select the correct option when ‘SHOW’ the end of the day, you do
was given in file-aid.(the above not need output until the next morning. Specify 7 a.m.
mentioned are the correct option) of the next day in the
DEADLINE parameter and assign the job a low
ANS,= PICTURE, FORMAT, OFFSET, LEVEL AND
priority. JES3 can schedule the job
NUMBER
any time during the night when the resources are
available. But, if the job has not
Reversing Changes (UNDO)
been scheduled by several hours before 7 a.m., JES3
You can use the UNDO primary command to
increases its priority. JES3
reverse the last change you made to your
records. All changes are reversible, including: will increase the job’s priority periodically until it is
• Typing over data and pressing <Enter> selected for execution by 7 a.m.
• CHANGE command Examples
• DELETE command To execute a job by 7 a.m. on January 20, 1986,
• COPY and MERGE commands code:
• C, D, R, and M line commands //*MAIN DEADLINE=(0700,B,012086)
• ( shift left The syntax changes slightly if you specify a date on or
• ) shift right. after the year 2000.
To execute a job by 7 a.m. on January 20, 2000,
More About the UNDO Command code:
• The SETUNDO OFF command can be issued to //*MAIN DEADLINE=(0700,B,01/20/2000)
disable UNDO processing. This might Use of Periodic Scheduling
be used to improve performance when The purpose of periodic scheduling is to run certain
performing large changes (CHANGE ALL, weekly, monthly, or yearly
DELETE, COPY etc.). programs automatically.
Examples
4) For which of the following UNDO To execute a job by 2 p.m. every Friday, code:
command works?(works for above //*MAIN DEADLINE=(1400,A,6,WEEKLY)
mentioned list)
Ans, typing over data and press
enter,CHANGE,DELETE, COPY & MERGE, line 6) Choose the invalid job names
command such as C, D, R & M, Ans, //^F&I(RST JOB ‘SAMPLE JOB’
(shift left, ) shift right.
(the only special character allowed is ($, #, @) )
// PEND
7) Where does the nume field in the jcl starts
Ans, 3rd column //A PROC
//AS1 EXEC PROC=B
8) Which of the following is a JES3 operator in //AS2 EXEC PGM=IEFBR14
job stream //DD3 DD
A. //* DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD
B. COMMAND // PEND
C. CONSOLE STATEMANT
D. OPERATOR------------------------------------- //STEPP1 EXEC PROC=A

9) What are the parts of index components If the JOB abend at BS2 then it can be
Ans, Sequence set and index set restarted by specifying
Ans, RESTART=AS1.BS2 in the JOB card
10) Temporary Datasets are represented as
Ans, && (as the prefix in DSNAME ) Defining a Path
The DEFINE PATH command is used to establish the
11) What are the features or functions of IEBEDIT? relationship, the path,
Ans, Copy pds,pdse and Create pds, pdse, sequential between an alternate index and its base cluster. A path
optput dataset and Edit and copy a job stream, does not occupy any data
a sequential data set space; it is a catalog entry only. The base cluster and
its alternate index must
12) If VSAM file terminates abnormally and it did already be defined when you define the path that
not close properly, what do you do ? relates them.
Ans, Run VERIFY command using idcams utility When your program opens a path for processing, both
the alternate index and its
13) 1. If you have high freespace we have more base cluster are opened. When data in the base
I/O cluster is read or written using the
2. If you have low freespace we have more path's alternate index, keyed processing is used; RBA
CI Split processing is not allowed.
Ans, Both statements are TRUE You can also establish a path directly over a base
cluster, without an intermediary
14) Which of the following is true alternate index and with its own protection attributes. A
A. ESDS maintains CI while LDS does path so defined provides
not--------------------------- access for a file under another name. You can specify
B. ESDS process record sequentially while NOUPDATE access for the
LDS is process by DB2 for base cluster, which bypasses allocation of the base
tablespace----------- cluster's upgrade set and thus
C. ESDS can delete records while LDS cannot does not cause upgrading.
D. ESDS has no index while LDS also the same

15) Which of the following are compiler options.


A. DSORG BUILD INDEX
B. ADATA------------------- Build the alternate index either yourself or by means of
C. OPTCD the BLDINDEX
D. SSRANGE------------- command. The IDCAMS routines then perform the
E. KEYLEN following operations:
F. OPT--------------- a. Extract the alternate key and the prime key or RBA
G. NOOPT-------------- from every record of
the base cluster during a sequential scan through the
16) base cluster.
//AMC0U08A JOB b. Order the extracted alternate keys, together with the
'A123',NOTIFY=&SYSUID,RESTART=AS1.BS associated pointers,
2 by the alternate keys.
c. Build the alternate-index records from the ordered
//C PROC key and associated
//CS1 EXEC PGM=IEFBR14 pointers. (Records with the same alternate key are
//DD1 DD merged into a single
DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD alternate-index record.)
// PEND d. Build the alternate index from the individual
alternate-index records as a
//B PROC key-sequenced file.
//BS1 EXEC PROC=C
//BS2 EXEC PGM=IEFBR14
//DD2 DD
DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD 17) What do SCRATCH do ?
Ans, SCRATCH is the sub parameter of DELETE it can be done only for the program
command in IDCAMS utility
It is used to remove the entry for nonVsam 24) In a KSDS the record length is 128 Which of
dataset from the Catalogue the following cab be the size of CI (choose 3)
As well as its label form the VTOC(ie both the A. 8192--------- B. 4096---------------- C.
catlg entry ane the file is deleted). 512------- D. which is not multiple of 512

18) 25) Choose the valid file status (check option)


A. 10 B. 00 C. 93 D. 90
//AMC0U08A NJOB 'A123',NOTIFY=&SYSUID ALL ABOVE ARE VALID FILE STATUS
//CS1 EXEC PGM=IEFBR14
//DATA1 DD 26) Without regard of previous step whether it
DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD executes successful or not, I want to execute
//DATASET01 DD all the steps in JOB which of the following are
DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD valid?
A. COND=(4096,GE)
B. COND=(0,NE)
What is the error in above code ? C. COND=(0,GE)
D. COND=(4089,LE)
Ans, 1. In JOB CARD the character ‘N’ is used E. COND=(4095,LT)---------------
2. label name exceeds 8 characters in 3rd line (the condition code will be evaluated as ‘4095 < RC’ if
the return code of the previous step is any value of 0
thru 4095 the condition will become false and the step
will execute – the mainframe will not produce the
19) Consider the job is running the producing output in condition code greater than 4095)
number of lines if you want to get the output till
before the job had completed ? 27) When you specify COND=EVEN
Ans, You have to use OUTPUT statement Irrespective of whether the previous step terminates
As //OUTDS3 OUTPUT normally or abend
CKPTLINE=24,CKPTPAGE=1 The ob step will execute

20) What is the syntax of jcl statement? And


//<namefield> <operation field> <operand field>
<comment-field 73-80> If I have multiple condition like this COND=((4,LT),
(12,GE),(0,NE))
21) Consider the statements below Like vise I can code up to 8 condition here if any one
1. It is possible to browse RRDS by using TSO of the condition is satisfied the step will bypass
commands
2. It is possible to Edit RRDS by 28) You need to allocate with primary 100 blocks
Ans, Both the above mentioned statements are extension of 20 blocks and block size being 80
FALSE bytes
Which of the following space parameter will you
22) Using IEBGENER it is possible to copy data include in the above JCL?
from TAPE to VSAM? FALSE
Ans, When you use VSAM dataset in IEBGENER the A. SPACE=(100,(80,20))
dataset is not recogonized B. SPACE=(TRK,(100,20))
C. SPACE=(20,(100,80))
//PROCB PROC D. SPACE=(80,(100,20))-----------------------
//BSTEP1 EXEC PROC=PROCC (because the first parameter is 80 bytes blocks)
//CSTEP1.CSTEPID1 DD
DSN=ALPHA.BETA.DELTA,DISP=OLD 29)
//CSTEP1.CSTEPID2 DD SYSOUT=A a. Define is used to create Alternate index
// PEND b. Buildindex is used to fetch keys into AIX
c. Define is used to build path.
//PROCA PROC
//ASTEP1 EXEC PROC=PROCB Ans, a,b are TRUE c is FALSE
//BSTEP1.BSTEPID3 DD
DSN=GEORGE,DISP=OLD
// PEND 30) SYSOUT is used to process output dataset ----
TRUE
23) From the above code, What does (An external writer is a started task used to process
output. //MYOUTPUT DD SYSOUT=(A,XTWTR))
BSTEP1.BSTEPID3 MEAN ?
Ans, It is an invalid statement at this context
it means “invalid addition to procedute PROCB” 31) IDCAMS is used to create both VSAM AND
because you are trying to add a dataset to the exec NON-VSAM FILES. TRUE
statement which calls a procedure
32) Which utility is used to print and punch A. OUTFIL
Sequential and Partioned dataset ? FNAMES=(A,B)--------------------------------
IEBPTPCH B. OUTFIL DATASET=(A,B)

40) The Utility used to produce a test pattern ( ie


33) In order to open file-aid or file manager from debugging aid tool) -- IEBDG
the ISPF/PDF menu you will be using the (IEBDG Create a test data set consisting of patterned
option. data)
TS F F
(TS F  F  1 This option is used to 41) A KSDS file is having primary key as 9 bytes
browse a VSAM dataset) length , Alternate key length is 4 bytes and the
alternate index is going to contain 200
34) Consider initially there was a KSDS for that you duplicate. Then what is the minimum and
are created AIX and you are building it by maximum record size ?
using BLDINDEX command after doing all Ans, 18 minimum 1809 is maximum
these you are deleting the KSDS cluster then ( formula for duplicate aix is (5+length of aix key + (n *
when you try to read a record what happened? length of primary key)) where ‘n’ is number of
Ans, FILE NOT FOUND ( FILE STATUS 35) duplicates)

(NOTE : Consider KSDS has AIX and PATH 42) AMS can be coded inside member of PDS –
TRUE.
When you delete PATH then PATH alone gets deleted ( AMS means Access method service for IDCAMS it
When you delete AIX then along with AIX, PATH will can be coded and executed inside the member)
also gets deleted
When you delete KSDS then along with KSDS, AIX 43) Which VSAM file does not support AIX? --
and PATH will also gets deleted) RRDS

35) S804 or S80A - if the requested REGION is 44) Freespace of the dataset will be displayed
not enough using.
S822 - If requested REGION is not available on your A. VERIFY B. LISTCAT-----------------
system
( using idcams utility when you specify
36) How can we restrict a job time as CPU time
LISTCAT ALL it will display the amount of
5’30’’
A. LIMIT(5,30) freespace in bytes for vsam dataset)
B. CPUTIME(5,30)
C. TIME(5,30)----------------------------- 45) Stmt1: REPRO is used in case of unusable
VSAM dataset ------ TRUE
37) There is a file of 1000 records whose LRECL = Stmt 3: EXAMINE is used to inspect VSAM
46. How it is specified? dataset structure. ---------- FALSE
A. MEMORY=(60,(46,100))
B. SPACE=(46,(100,60))--------------------------- (there is no such keyword call examine and repro
C. SPACE=(100,(46,60)) can be used for any dataset)
( because the logical record length is 46 each record
will take 46 bytes – so we have to specify block size as 46) The command used to print output at remote
46 bytes as the first parameter –and inorder to have location at DETROIT?
100 records it can be achieved by the extension of Ans, //REMOT1 OUTPUT
primary and secondary) DEST=DETROIT

38) A file on which input and output operation can


be restricted, is specified as 47) Consider a procedure is called like this
A. //FILEOUT DD //STEP1 EXEC
DUMMY------------------------ PROC1,SYSTEM=MANDIR,STD=VIJAY,STU
B. //FILEOUT DD SUSPEND D=MATHS
C. //SYSOUT DD HALT And a dd name inside the procedure is given
(there is no suspend and halt on the dd statement.— like
the dummy can be also specified as dsn=nullfile //DD1 DD
--- in dd statement *,data,dummy and dynam are the DSN=BALA.VIDYA.&SYSTEM..&STUD(&STD
positional parameters )
When you pass symbolic parameter to this
39) After doing the sorting operation if you want procedure it becomes
the output to be transferred to two different files
which is specified In the JCL as this Ans, BALA.VIDYA.MANDIR.MATHS(VIJAY)
//A DD DSN=OUTFILE1,DISP=OLD
//B DD DSN=OUTFILE2,DISP=OLD 48) The Record out of sequence file status is – 21
Then in the control card you will specify as
(this happens when you try to write records d. CNTL=ALPHA
sequentially for KSDS cluster by supplying
unordered key value) e. CNTL=*.ALPHA

49) JOB execution flow is “ INPUT 


EXECUTION  OUTPUT  PRINT “ ---------
FALSE 55) Consider the following code which uses
(execution flow is ‘input conversion  both IEBGENER & IEBCOMPR
execution  output  print or purge’)
//JOB1 JOB
50) JOB is the execution of one or more related
programs in sequence ---------- TRUE //STEP1 EXEC PGM=IEBGENER

51) When a new generation is created in one step1 //SYSUT1 DD


and if you want to refer the same generation in DSN=ABC,DISP=(OLD,PASS)
the next step then it can be refered as .?
Ans, (+1) as a relative reference //SYSUT2 DD
DSN=XYZ,DISP=(,PASS,DELETE)
52) Condition code for the step to be executed
always irrespective of the previous step? // SYSIN DD DUMMY
Choose- 3
Ans, COND=(4095,LT) , //STEP1 EXEC PGM=IEBCOMPR
COND=(0,GT) AND COND=EVEN
(all 3 are write answers) //SYSUT1 DD
DSN=*.STEP1.SYSUT1,DISP=SHR
53) Consider the following
//JOB1 JOB NOTIFY=&SYSUID
//* //SYSUT2 DD
//ABC PROC SYSTEM=ABC,UN=SYSDA DSN=*.STEP1.SYSUT2,DISP=SHR
//*
//STEP1 EXEC PGM=IEFBR14 //SYSIN DD DUMMY
//DD1 DD DSN=&SYSTEM,UNIT=&UN
//* //
//ABC PEND
//STEP1 EXEC PROC=ABC Choose 3 option
//
A. SYSUT1 & SYSUT2 ARE OTUPUT
What type of procedure is the mentioned DATASET IN STEP2 -----------
above? FALSE(sysut1 and sysut2 are
Ans, INSTREAM PROCEDURE comparison input)
54) Given the JCL stmts B. SYSUT1 & SYSUT2 ARE INPUT
DATASET IN STEP2 --------------TRUE
//STEP1 EXEC PGM=PRINT
C. SYSUT1 IS INPUT AND SYSUT2 IS
//ALPHA CNTL * PROGRAM CONTROL
OUTPUT IN STEP1 ---------------TRUE (it
STMT FOLLOW
copies sequential file form source to
//PRGCNTL PRINTDEV BUFNO=20,PIM dest)
SG=YES,DATAACK=BLOCK
D. IN IEBCOMPR “ COMPARE TYPE
//OMEGA ENDCNTL ORG=PS/PO” IS NOT GIVEN IT WILL
NOT THROW ANY ERROR IT WILL
//AGAR DD UNIT=AKP1, _____________ COMPARE NORMALLY ------------- TRUE

What parameter you need to add to the E. IN STEP2 BACKWARD REFERENCE IS


last stmt to set AGAR Dataset with DOEN FOR BOTH DATASETS -----------
ALPHA control stmt? TRUE

a. CNTL=SET=*.ALPHA F. BOTH THE UTILITY REQUIRES


“//SYSPRINT DD SYSOUT=*” OTHER
b. SET=CNTL=ALPHA WIES THE OUTPUT WILL NOT BE
PRODUCED BY BOTH THE UTILITIES
c. CNTL=SET=ALPHA
56) CONTIG in space parameter member 22222222 for the second
member and the remaining records will
A. Primary space in contiguous records, be inserted in the third member)
blocks and tracks------------------TRUE

B. Request primary space allocated only


on contiguous tracks and cylinder 59) //SYSIN DD *
---------------------TRUE
DEFINE
(contig allocation is for primary quantity CLUSTER(NAME(TEST.KSDS)) -
irrespective or blocks, bytes, tracks or
cylinder) :

57) //JOB1 JOB :

//STEP1 EXEC PGM=ABC,COND=(8,LT) KEYS(8,54)

//STEP2 EXEC PGM=DEF,COND=(8,LT) /*

//STEP3 EXEC //
PGM=XYZ,COND=((4,LE),(12,EQ))
What is the length of the key?
//STEP4 EXEC
Ans, 8
PGM=PQR,COND=((8,LE),(16,EQ))
( the syntax for key is
keys(length,offset) --- the default
If step1 return code is 4 and other return keys(64,0) -----offset is the position just
codes are 0 before the starting location of the key)

Ans, then STEP2,STEP3,STEP4 will


execute
1) Invalid JCL statements [Choose]

//XMIT //CNTRB
58) Which one is IEBGENER SYSIN CARD for
creating 3 members from input ps file //SET //CNTRL
Ans, //EXCLUDE
//SYSIN DD *

GENERATE 2) Which of the following are valid with


MAXNAME=3,MAXGPS=2 respect to sort in file-aid (choose
2)-------------
MEMBER NAME=MEMB1
a) RRDS & BDAM files the SORT
RECORD IDENT=(8,’11111111’,1)
command sorts records (RRN
MEMBER NAME=MEMB2 or RBA) order

RECORD IDENT=(8,’22222222’,1) b) We cannot sort a keyed file


other than the key field
MEMBER NAME=MEMB3
c) Default parameter for SORT is
/* keys for a KEYED file. Thus
the command SORT & SORT
// KEYS are the same
(this ctrl statement will create 3
members in the output pds and it will
extract 2 groups from the input until it 3) // output ABCD copies=5,
reaches the condition 11111111 for first copyg=(1,2,3)------------
How will you modify the alone statement Ans : Build index
such that the o/p is directed to the
target mode RMT37
14) Append can be done in EXTEND mode in
Ans : //output ABCD copied=5,
Ans : ESDS
copyg=(1,2,3),DEST=RMT237

15) PROCEDURE C
4) Compiler option to view the source code
of COBOL programs // C PROC
Ans : SOURCE //CSI EXEC PGM=GHI

//PEND
5) Rename a Dataset

Ans : IEHPROGM PROCEDURE B

//BPROC
6) How can a job send a status message to //BS1 EXEC PROC C
a TSO user at the completion of a job?
//BS2 EXEC PGM=DOF
Ans : NOTIFY
//PEND

7) Temporary file indicator - &&


If abend occurs in BS2 where it will start
from ?
8) On question was like how will SEEERROR Ans : BS1
be set or related or for routine

16) Which satisfy the below listed criterions


9) Default print format for PRINT command in GDG creation?
Ans : DUMP //sysin DD * define GDG(limit (255) no
scratch empty)

10) Order of Execution of procedure


17) How can KSDS access?
Ans : 1.Instream Procedure
2. Private library
Dynamic, Sequential, Random
3. System library
11) Erase parameter in define cluster

Ans : It will erase DATA component &


18) If RC=4 THEN /*comment*/
filled with binary zeros
12) a)VSAM KSDS can have only one
Continue
primary index
Else /*Comment*/
b) VSAM KSDS can have only one
alternate index Step1

Ans : a) True b) false Ans : Continue is not valid in JCL

13) To improve performance of JCL 19) Choose compile directives


a. COPY – Compiler directive Ans : //SYSIN dd * define GDG(limit(255)
noscratch empty)
b. SKIP

c. CONTROL
6. //step1 exec pgm=IEFBR14
d. ADATA
//dd1
e. SSRANGE dsn=tchn94.mf004.abc,abc,disp=(new,c
atlg,delete),
22) Some question regarding KEYS.options were
4 pgms.
//
12-length , 6-9 starting position, size-512
bytes
Ans : KEYS(12,69) dcb=(lrecl=100,blksize=800,recfm=fb),
23) DD in the PROC can be overwritten in the unit=1093
main JCL in done by
ANS : //PROC stepname.ddname DD DSN // space=((1,1),rlse,cyl)
24) In uncatalog the GDG DS,Buf don’t want to
delete it? Ans : space =(cyln,(1,1),rlse)
Ans : EMPTY, NOSCRATCH
25) //TELCON IF(RC=8 |RC=12 | RC=14 |
RC=18)
Ans: 8,12,14,18 Utility questions
26) ESDS CAN BE ACCESSED RANDOMLY BY
Ans : RBA 7. –IEBGENER
27) In space parameter CONTIG,MIXG,ALX is
applicable only for the primary quantity -IEBEDIT
And RELSE parameter is applicable for both
primary and secondary -IEBIMAGE (for creating buffers)

1. File status 24 -IEBDBG

2. File status 39

3. What are time abend code (choose 2) 8. What is order of execution?

1.S522 a. System library

2.S0C7 b. Private library

3.S222 c. Instream proc

4.S013 Ans : c,b,a

4. There are 4 records of sizes 1000 bytes, 9. File Status 02


1200 bytes, 1000 bytes and 800 bytes.CI
size is 4096.Now inserting 1000 bytes
record. what will happen? 10. IDCAM command that would list KSDS
attributes
Ans: Only CI split
Ans : LISTCAT

5. Which of the following will satisfy


11. What are valid IDCAM commands ?
-limit is 255
(choose 3)
-all the dataset will be uncatalogged
a.LISTCAT
when it exceeds the limit
b.ALTER
-DSCB is not to be removed from the
catalog
c.DELETE

d.PRINT

e.DITTO 19. i ) TS Option can be used to browse


VSAM dataset

ii ) TS Option can be used to edit VSAM


12. Which parameter id used to select the dataset
initiator D?
state true/false
Ans : CLASS = D

20. Organization is sequential. KSDS file is


13. What are special DD Names? open in I-O Mode. Is it possible to
WRITE?
a.SYSPOUT
PROCEDURE C
b.SYSPDUMP //C PROC
//CS1 EXEC PGM=GHI
c.JOBLIB //PEND
PROCEDURE B
d.SYSTDUMP //B PROC
//BS1 EXEC PROC = C
//BS2 EXEC PGM=DEF
//PEND
14. Consider PROCEDURE A
//A PROC
// CHECKIT IF ((RC LT 3 & RC LT 10) | //AS1 EXEC PROC=B
RC=15) //AS2 EXEC PGM=ABC
//PEND
Then, JOB Stream
//JOB1 JOB
Which return code will make the above //STEP1 EXEC PROC=A
relational exp. evaluate to true. //STEP2 EXEC PGM=JKL
If abend occurs BS2 from where I want to
Ans : 0,1,2 or 15 restart
a. As Proc BS1

b. As Restart=B.BS2
15. Compiler option to view the source code
of cobol program? 2. All IEPUPDTE utility control statement (not
including data statements) must begin with a
Ans : SOURCE ----- in columns
1 & 2 of JCL stmt
a. //*

16. Which JES2 parameter is used to print b. /*


‘DETROIT’ at remote node?
c. //

d. /.
17. Index component parts-
3. CONTIG in SPACE Parameter_______
Ans : a. Index set a. Secondary space allocated in record blocks
and tracks
b. Sequence set b. Primary space in contiguous record blocks
and tracks
c. Sequential space in contiguous records and
track
18. Override d. Requested Primary space allocated only on
contiguous tracks and cylinders
Ans : stepname.DDName 4. Partitioned Dataset can be built using
AMS(Access method service) State True / False
Ans : True 16. One question from SORT in File aid
5. Consider the following a. Only key field is used for KSDS I cant
Select infile assign dd1 use any other key for sort
Organization is INDEXED b. for RRDS only Relative Key is used for
Access Mode is sequential SORT
Record Key is EmpNo c. Using KEYS parameter in SORT
Alternate Key is EmpName 17. I created one KSDS and alternate index for
File status is FS1 that KSDS.I want to restrict the duplicate values
For alternate key if i not mention the DD stmt in can be given only 10. What parameter is used
JCL, What will happen? for restriction.
a. Abend SOC7 a. Keys
b. Update
b. Abend SOC4 c. Upgrade
d. Key Ranges
c. Successfully run e. Unique Keys
18. A Jobs output is not processed in SYSOUT
d. Dataset not found (T/F)
19. //Job card
6. Delete and rewrite can be done ESDS //Step1 EXEC PGM=ABC, COND= (8, LT)
a. Delete is not possible and rewrite is // Step2 EXEC PGM=DEF, COND= (8, LT)
possible …
b. Delete is possible and rewrite is not possible // Step3 EXEC PGM=XYZ, COND=
7. NOT a valid IDCAMS command ( (4,LE),(12,EQ))
a. LISTCAT // Step4 EXEC PGM=PQR, COND=((8,LE),
b. DITTO – File editing tool (16,EQ))
c. DEFINE If step1 return code 4, then what are the
d. ALTER steps get executed
e. REPRO 1. Step2,Step3,Step4
8. Study the XMIT and Route Commands
XMIT – JES2 2. Step4
ROUTE –JE2/3
9. Check for System symbols & JCL symbols in 3. Step2,step4,step1
google
10. How can is suspend the volumes which 4. Step2,step4
available in TAPE.
a. By Using UNIT with defer.
b. Device = (, SUSPEND)
11. JOB Order of execution 20. ERASE parameter in define cluster
a. Priority and JOB class
b. JOB Class and MSG Class Ans: It will erase DATA component
c. MSGCLASS and PRIORITY and filled with zeros
12. //JOBName JOB Lines=60000, Rooms=40ft,
pages=4000, proclib=50 21. Consider the following
Which is invalid parameter?
a. Line 1. VSAM KSDS files can have only one
primary index
b. Page
2. VSAM KSDS files can have only one
c. Proclib
alternative index
d. Rooms
3. Stmt1 is true and stmt2 is false
13. Check the file status 02 in cobol
22. Consider the following
a. dup key
b. No record found
//Job Card
c. Opening the file problem
d. Closing the file problem
//ABC PROC SYSTEM=’ABC’,
14. RESTART parameter particular RD
a. RD=NP UNIT=SYSDA
b. RD=R
c. RD=RNC //Step1 Exec PGM=IEFBR14
15. Difference b/w ESDE & LDS ?
a. Both ESDE & LDS deletion not //DD1 DD DSN=….
possible
b. ESDS used for … and LDS used for //ABC PEND
storing table space
//STEP1 Exec PROC = ABC //DD3 DD
DSNAME=CHANN,DISP(,CATLG,DELETE),
What type of procedure UNIT=3400-b

a. Instream Procedure //LABEL=(,NL),VOLUME=SER=663488,D


CB=*.DD2
b. Catalog Procedure

c. System Procedure
ANS :
d. System Library
DCB=(RECFM=F,LRECL=80,BLKSIZE=80
23. Check the wrong step in the following )
JCL by checking syntax
27. Consider the following
Ans : a.Step1
Three datasets contains members as
b.step1 & step2 follows

c.step3 & step4 Dataset1 contains A,B,F members

Dataset5 contains A and C members

24. What dataset name you will give to Dataset6 contains B,C and D members
browse a VSAM KSDS name
Consider the following use of IEBCOPY
Ans : Cluster Name
25. Given the JCL stmts

//STEP1 EXEC PGM=PRINT //Copy Job

//jobstep exec pgm=iebcopy


//ALPHA CNTL * PROGRAM CONTROL
STMT FOLLOW
//sysprint dd sysout=*
//PRGCNTL PRINTDEV BUFNO=20,PIM //in dd dsname=dataset1,…
SG=YES,DATAACK=BLOCK
//in5 dd dsname=datatset5,…
//OMEGA ENDCNTL
//out2 dd dsname=dataset2, …
//AGAR DD UNIT AKP1,
//in6 dd dsname=dataset6, …
What parameter you need to add to the
last stmt to set AGAR Dataset with //sysin dd *
ALPHA control stmt?
Copyoper copy outdd=out2
f. CNTL=SET=*.ALPHA
Indd=in1
g. SET=CNTL=ALPHA
Indd=in6
h. CNTL=SET=ALPHA
Indd=in5
i. CNTL=ALPHA
/*
j. CNTL=*.ALPHA
a. All members in dataset6 are lost
26. What would be DCB parameter for the when dataset deleted
following code?
b. Member a is found, but is not copied
//DD2 DD DSNAME=BAL,DISP=OLD dataset1 because dataset1 already
has a member named ‘a’ and the
//DCB=(RECFM=F, LRECL=80,
replace option is not specified for
BLKSIZE=80) member A

c. Since replacement not specified B


d. Not copied to dataset2 I created one gdg with 5 members for
that.for example
28. One question uses both IEBGENER &
IEBCOMPR. The following code Tchn350.abc.gdg

//Jobcard And I like to create 6 member then


which will be created
//step1 exec pgm=iebgener
a. tchn350.abc.gdg.g0006v00
//sysut1 dd dsn=____,disp=(old,pass)
b. tchn350.abc.gdg(+1)
//sysut2 dd dsn=____,disp=(,pass,delete)
33. Repro command question
//sysin dd dummy
Repro < >,< >
//step2 exec pgm=iebcompr ________(Empty,delete,replace)

//sysut1 dd dsn=*.step1.sysut1,disp=shr I need empty dataset, which option to


use?
//sysut2 dd
dsn=*.step2.sysut2,disp=(old,keep) 34. When i am using alternate index,how
could I mention in the JCL, in cobol-Jcl
//sysin dd dummy
program

a. Base cluster and Alternate index


a. Sysin dd dummy is coded so not
b. Base cluster and path
valid
c. Base cluster only
29. Another question is iebupdate and check
for update parameter in dd d. Base cluster and data component
statement.some program format
35. What compiler option is used to view the
//job card source code of cobol1 program, by using
through the PARM parameter
//step1 exec pgm=iebupdate
Ans : SOURCE
//dd1 dd dsn=_____,update=yes
36. If I want to improve the performance of
//dd2 dd dsn=____,update=inplace
JCL what I want to do?
//dd3 dd dsn=____,update=inplace
a. Performance cannot improved
30. Go through the definition for free space
b. Reorganize the dataset
parameter
c. Build index
31. Cisz=4096
1. JCL statement not allowed in
Freespace=(10 10)
procedure where are the JCL
Keys=(6 0) statement

JOB, JOBLIB, JOBCAT, /* ,NULL,


DATA &any JES&JES3 stmt
a. Cidf takes 4 bytes and rdf takes 3
bytes 2. Seq file how many extends ps-16

b. Cidf takes 3 bytes and rdf takes 4 3. Vsam 123 ent


bytes
4. Not cat -> already existing or
c. 10 % of freespace in 4096 i.e:401 duplicate catalog entry exist
space will be free
5. SOC7,S04
32. Gdg question
6. SB37,SD37,SE37
7. How to override a condition 23. EIBCURPOS  get cursor position
in CICS
Ans : cond.stepname=value
24. What is the use of upgrade option
8. 0M , 0k – takes available space in
memory Ans : when the data in base
cluster is updated the
9. ++ - instream procedure corresponding AIX data is also
overriding updated
10. Xx – catalog procedure overriding
25. PARM  100 char max length
11. Steplib, joblib
26. What is the use of start command
12. Job overrides step region/time  Dynamic

13. How to change the default proclib 27. IEBHPROGM  Rename the
dataset
Jcllib
order=(me.mylib,sys1,proclib) 28. Restart = *  Restart job from
the first step
14. JCL to execute a job by 7 am on
Jan 20,1986 JCL QUESTIONS (Module Questions)

//step1 exec pgm=pgm1,main 1. Export is used for –


deadline =(0700,B,012086) Ans : Copy one vsam data component to
other vsam data component.
15. RCT
2. Which of the following will satisfy the
16. DB2PM – batch performance below listed criterias, in GDG criterian.
monitor for DB2
Criterias :
17. 32760 – max blocksize for a tape - limit is 255.
- All the dataset will be
18. Job can contiguous execute for uncataloged when it exceeds the
248 days limit.
- DSCB is to be removed from the
19. 1 block=32 kb of formatted catalog.
Ans: //sysin dd * define GDG(limit(255)empty
memory
scratch)
Or
3. Which of the following corrects the error
in given code
42 kb of unformatted memory
//step1 exec pgm = iefbr14
//dd1 dd dsn=tchn94.mf004.mf004.abc,
6 blocks= 1 track
disp=(new, catalog, delete),
// dcb(lrecl=100,
15 tracks=1cylinder
blksize=800,recfm=fb), unit=1093
// space = (1,1)rlse, cyl)
20. Space allocated for PS by OS is
56 KB Ans: Space=(cyln,(1,1), rlse)
21. If you want to concat dd 4. Use of DFSORT
statement 5. To list the source program in the
compilation listing, which option is used
 Dataset, same type(disk or at the time of compilation.
tape) Ans: SOURCE

 LREC,RECFM, large blksize 6. Cisize is 4096, rec1 1000bytes, rec2


1200bytes, rec3 is 1000bytes, rec4 800
22. We can’t edit or browse GDG on bytes.
tape -> True Now I want to insert 1000bytes rec.
What will happen?

Ans: Both CI and CA splits occurs.


7. Which of the following command is used
when a system error occurs while closing 19. Valid jcl symbols:
VSAM file and it is subsequently Ans: //* and /*
unavailable.
Ans: VERIFY 20. Which Symbol is used for IEBUPDATE?
Ans: ./
8. What are the valid statements regarding
Referback and override? 21. There was a question on RRDS related to
Ans: a. override option can override the the DB2.
defined dataset. 22. If we want to assign alternate name,
b. referback option is a reference to what shall be the correct syntax?
earlier dd statement Ans: 1. ./ ALTERNATE name
2. ./ CHANGE name
9. Which command is used to check the 3. ./ ALIAS name
status of the VSAM dataset if a job is 4. ./ OTHER name
terminated and the VSAM dataset is not
closed properly? 1. Where can program checkpoints be
Ans: VERIFY
stored for use in a restart ?
10. Records can be added to end of ESDS in (1) CHCKPOINT DD statement
extend mode. (2) SYSCHK DD statement
Ans: True
(3) CHKOUT DD statement
11. //Jobcard (4) CHECK or DD statemen
//PROC1 PROC…
// 2. What is the function of DD name
//PROC1 PEND
//STEP EXEC PROC=PROC1… parameter with a 2 part structure;
Ans: Instream procedure. Audit.Report ?

12. Time abend code? (1) Override the Audit DD statement in


13. How can job send a status message to a the report
TSO user at the completion of the job?
(2) Override the Report DD
Ans: Notify
statement in the Audit procedure
14. While in a KSDS, we have an alternate (3) Concatenate a dataset onto a DD
index. Build index is missing. What will
happen while searching a record? statement in a called module
Ans: a. Build index will be created while (4) Delete the Audit DD statement in
processing.
the Report
b. Search option will done based on
primary key.
c. It will throw an error due to missing 3. What is the purpose of the ‘DD
build index. KEYLEN’ parameter?
(Probably option b is correct.)
(1) Specify the length of a data set key
15. There are 14 generations in all. How will in bytes
you refer 5th generation? (2) Override the key length of an
Ans: a.(-9)
b.(+5) SMS defined VSAM dataset
c.(+9) (3) Override the key length specified in
d.(-5) the dataset label
(Correct option is -9)
(4) All of the above
16. To rename a dataset which utility is
used? 4. Must tape dataset definitions
Ans: IEHPROGM.
include VOL=SER specifications?
17. (1) Yes
1. KSDS has only 1 primary key.(True) (2) No
2. KSDS has only 1 alternate key.(False)
(3) Only for uncataloged datasets
18. Alternate index key is possible for – (4) Only for cataloged datasets
Ans: ESDS and KSDS
5. In order to continue a job after a (1) As the (0) generation
return code of 12 in step1, what the (2) As the (+1) generation
step2 EXEC statement include? (3) As the (-1) generation
(1) CONTINUE (4) Without the generation number
(2) COND = (12,NE)
11. If a generation data set is
(3) COND = (12,GE)
specified as input without the
(4) COND = (12,EQ)
generation number, what will the input
6. In SMS datasets, what is the to the DD ?
function of the ‘DD MGMTCLAS’ (1) the most recent generation created
keyword?
(1) Specify a management class (2) the earliest generation created
for a new dataset (3) a concatenation of all the
(2) Lookup a storage profile from the cataloged generations
class library 4. a jcl error will be returned to the job
(3) Begin a storage class definition
12. What happens to the NOTIFY
block
message when a user logs off the
(4) Alters the default storage profile for
system
the dataset
before the job is completed?
7. How can the submitting user’s 1)JOB ends with a jcl error.
RACF authority be overridden in a job 2)NOTIFY message is created
stream? 3)Msg saved until the user logs on
(1) Through the USER parameter again.
(2) Through the USER and 4)No messages generated.
PASSWORD parameter
(3) By notifying the console operation
to override the authority 13. How do you Restart a particular
(4) Through the RACF parameter step in a JCL? l
1)Restart=stepname.procstepnam
8. What parameters can be used to
e
limit the number of records written to a
2)Restart=procname.stepname
SYSOUT dataset ?
3)Restart=procname
(1) LIMIT
4)Restart=stepname.procname.ddnam
(2) OUTLIM
e
(3) SIZE
(4) MAX 14. What is the parameter to be
passed in the job card for the unlimited
9. What statement can be used to
send data to another MVS JES3 node ?
time,irrespective of the job class?
(1) LINK
1)TIME=0
(2) CONNECT
2)TIME=1440
(3) XMIT
3)TIME=UNLIMIT
(4) SEND
4)TIME=NONE
10. If a (+1) generation dataset is
15. What is the maximum number of
created in the first step of a job, how
GDG versions we can create?
can it be referenced in later steps of
1)255
the same job for input?
2)105 1)By specifying vol=ser
3)15 2)By specifying *.stepname.ddname
4)99
3)Both
16. If SYMBOLIC PARAMETER is 4)None of the above.
specified on PROC AND EXEC which
one is 22. What is the version number of
executed? gdg that is created in the same step
1)PROC takes preference 1)+1
2)EXEC takes preference 2)0
3)BOTH takes preference 3)-1
4)Nothing 4)none

17. How will you make return code to 23. Which of the following is valid in
Zero in IDCAMS? l a catolog procedure
1)using set command 1)SYSIN DD *
2)using COMPUTE command 2)JCLLIB
3)Using MOVE statement 3)JOBLIB
4) Not possible. 4)EXEC procname

18. How will you submit JCL via 24. What SUM FIELDS = None will do
COBOL program ? in sort
1)Using IMS 1)It will copy dataset without sorting.
2)Use a file with sysout=(*,intrdr) 2)It will sort the records.
3)Not Possible 3)It will eleminate the duplicates.
4)None of the above 4)It will not copy at all.

19. If there are two jobs with class 25. What is the return code if u print
A ,prty=9 and class B with prty=10 l a empty VSAM file?
and if class A has a higer prty which 1)0
one will execute first? 2)118
1)Job with class A and prty=9 3)12
2)class B with prty=10 4)16
3)Both will not be executed.
4)Both will be executed
26. Which of the following is
compulsary for KSDS creation?
simultaneously?
1)Space
5)class has no effect on prty
2)DATA component
20. What will happen if I specify 3)INDEX component.
DISP=MOD for a new file? l 4)CISZ
1)It will change disp as NEW.
2)It will not create.
27. How to set return code of a job to
zero with out making any changes in
3)It will show error.
job steps?
4)None of the above.
1)using SET command
21. How to referback the VOLUME 2)using MOVE command
given in previous step? 3)using IF and SET command
4)not possible
28. How many ways do you know to 2.Not more than 2
pass external data into program? 3.yes
1)2 4. Insufficient information
2)1
34. What are the causes for soc01,
3)3
soc04, soc05 soc07 and socb abends
4)4
1.Data Exception, Operation Exception,
29. In variable record length LRECL Addressing Exception, Protection
value is largest record in the file plus Exception, Divisible by Zero
four byte. Here this four bytes contains 2.Operation Exception, Data Exception,
A. The information saying that it is Addressing Exception, Protection
variable Exception, Divisible by Zero
B. the actual length of each variable 3.Operation Exception, protection
length record in the file Exception, Addressing Exception,
C. Both A and B Data
D. None of the above Exception, Divisible by Zero
4. All the above
30. I have 5 steps in a jcl . I have to
execute step 3 , bypass step 4 and 35. What will happen if you attempt
execute step 5 . How to achieve this to restart a job in the middle of a // IF
1.using cond statement and // ENDIF
2.using restart=stepname 1.It will execute.
3.using iebedit utility 2.It will not execute the step in the
4.both 1 & 3 middle of a // IF and // because of
condition codes.
3.the condition code of the previous
step will be applied in cond parameter
31. What are the changes to be made
and goes for execution
in jcl so as to do testing
1.DD statement with the data used to 36. What is the difference between
test the execution of the program.
the data definition name and data set
2.Instream data is used to test the
name in the DD statement of jcl
data
1. DDname is used in farward
3.Dummy statement is used to
reference while referring the datasets
test the execution of the program\
where dataset name is used to name
4. Can not be tested
the dataset to DD.
2. DDname is used to name the
32. Can I copy a fixed block record
dataset and dataset name is used for
length file to a VB and vice versa
searching the dataset
1.Only from fixed block record
3. DDname is used to refer the dataset
length to VB
and dsname is for creating the dataset
2.Only from VB to fixed block length
4. All the above
file is possible
3.Both 1 & 2
4. Both not possible
37. How do you skip a particular step
33. Can you submit multiple jobs in a in a proc or a job

jcl simultaneously 1.using cond parameter in step

1.No,Only one 2.using restart parameter


3.using cond parameter in job the step executes
statement C. Both the case A & B are possible
4. All of the above D. None of the above

38. If an application program 44. Given an input file with


accesses a base cluster in alternate duplicates how to remove the
key sequence, then DD statements are duplicate records from the file using jcl
needed for which data sets? A.SUM FIELDS=(3,4,ZD)
a) Base cluster B. SUM FIELDS=NONE
b) Alternate index C. using ALLDUPS
c) Path D. Not possible
d) a and b
e) a and c
45. ) Can an individual step be
restricted from using all the job’s
f) a, b and c
allowed CPU time ?
39. Which of the following backs up (1) Yes
data in CI mode? (2) No
(3) Only in Catalogued Procedure
a) REPRO only
(4) Through the STEPTIME parameter
b) EXPORT only
c) Both REPRO and EXPORT 46. How can the disposition of sysout
d) Neither REPRO nor EXPORT datasets be set for an entire jobstream
?
40. What is SOC4 error stands for
(1) SYSOUT parameter
A. Storage Violation error
(2) OUTPUT parameter
B. READING file that is not opened (3) DEFAULT parameter
C. Invalid address reference (4) DEST keyword

D. In all the above case 47. What is the maximum length of a


single line of JCL ?
41. How can unused space allocation
(1) 71 bytes
be returned to the system when a (2) 60 bytes
dataset is closed (3) 55 bytes
(A) RETURN (4 ) 80 bytes
(B) RLSE
(C) CONTIG 48. Many JCL statements contain
(D) CLOSE specific values designed to direct &
control the execution of the statement.
42. What is S322 abend? What are these fields called ?
A. Space not found in PDS (1) Linkage Variables
B. Operator cancelled the job (2) Parameters
C. Time out Abend (3) Control Libraries
D. Secondary request is not coded (4) Includes

43. JES2 allocates the data set 49. How can return codes be tested
A. For all the steps before the job is before execution of a job step?
scheduled (1) Through the RC keyword
B. allocates of data set required (2) Through the CODE keyword
by a step are done only just before
(3) Through the COND keyword 3)Both will be ignored.
(4) Through the RETURNCD keyword 4) JCL ERROR

50. How can values be passed from 56. If both JOBLIB and STEPLIB are
the job stream to an executable coded in a job which one be executed?
program? 1)JOBLIB
(1) Through the PARM keyword 2)STEPLIB
(2) Through the VALUE parameter 3)PROCLIB
(3) Through the PGM parameter 4)PROCLIB
(4) All of the above
57. When no MSGLEVEL parameter is
51. How can a stopped job be coded then jcl
started again?
1)only i/p statements are printed.
(1) Through the RETURN parameter
2)Only i/p and proc statements
(2) Through the STARTUP parameter
3)Only JOB statements is shown in the
(3) Through the RESTART
o/p.
parameter
4) Job, Input and output Allocation
(4) Through the CHECKPNT keyword
msg shown
52. What is the prefix character for
58. Maximum number of DD
symbolic parameter ?
statements in a job
(1) % (2) & (3) @ (4) {}
1)3270 * step
53. If both the JOBCAT & STEPCAT 2)255 *step
statements are coded in a step, which 3)3273 * NO OF STEPS
will be executed? 4)3274
(1). JOBCAT
59. which parameter is to be given on
(2). STEPCAT
the JOB statement to check the
(3). the one coded first in the JCL
syntax of a JCL?
stream
1)TYPRUN=TEST
(4) .both the statements will be
2)TYPRUN=SCAN
executed in sequence
3)TYPRUN=HOLD
54. How many instream procedures 4)Both A & B
can be called within a single job? jcl
60. Two JOBS with name JOBNAME
1)255
are submitted , then jcl
2)15
1)Both JOBS are cancelled by the
3)25
operator.
4)30
2)Both JOBS wait in queue.
55. An instream procedure SAMPLE is 3)First runs while the 2nd waits in
coded in a jcl. A cataloged proc queue.
SAMPLE is also available system 4)1st JOB is run and Second is
library. When SAMPLE is invoked which cancelled.

61. Which one of the following is a


is invoked BY YOUR STEP?
positional parameter in EXEC statemen
1)Instream Procedure. jcl
2)Catalog Proc 1)ACCT
2)PARM 68. For which of the following
3)PROC sysprint is not neccessary
4)COND 1)IEBGERNER
2)IEFBR14
62. Is random access possible in
3)SORT
esds?
4)ICETOOL
1)Yes
2)No 69. What is the return code of
3) Using RRN IEBCOMPR when both the datasets are
4) Using Index key not
equal?
63. What is Abend code S806 U0000? 1)0
2)4
1)Data exception.
3)8
2)Memory violation.
4)12
3)Load module not found.
4)duplicate dataset 70. For a New dataset which
parameter is compulsary?
64. If you code time in both job 1)DISP
statement and exec which will
2)DCB
overwrite
3)SPACE
the other
4)VOLUME
1)Time specified in the job
statment 71. Which of the following is not in
2)Time specified in exec statement REPRO command?
3)it will give a jcl error 1)Replace.
4)It will ignore both. 2)Reuse.
3)Skip
65. How many tracks for 15 cylinders 4)readnext
1)450 tracks
2)15 tracks 72. what is the purpose of
3)150 tracks BLDINDEX?
4)225 tracks 1)To create a path
2)To create a alternate index.
66. Which of the following is not a 3)To create a logical relation.
positional parameter ?
4)To load an Index.
1)Accounting information.
2)Abnormal termination in DISP. 73. How many RDF fields are there if
3)Record format in DCB. the record format is variable?
4)Programmers name 1)One
2)Two
67. If you code both symbolic and 3)Three
overriding parameters which will be
4)Depends on records
Executed?
1)Symbolic parameters. 74. How many times the seconday
2)Overriding parameters. spaces is allocated for VSAM?
3)will give error. 1)255
4)None will be executed. 2)80
3)150 ZOS.PROCLIB
4)122 4. None of the above

75. When you are dealing with 81. how many types of libraries are
variable length data set ie if RECFM=V there in jcl
then what will be the value of LRECL 1. Five
parameter? 2. Two
A. Similar to RECFM=F option 3. Three
B. LRECL option is not a mandatory 4. None
C. LRECL value is largest record in
the file plus 4 bytes.
82. What are SD37 , SB37 and SE37
abends
D. LRECL value smaller record plus 4
1. Space abends
bytes
2. Job exceeds maximum wait time
76. Can we use empty VSAM as input 3. Region problem
1.No 4. None of the above
2.Yes
3.Both
83. How to pass the temp. data set
from one step to another
4. None of the above
1.using disp=shr parameter
77. Can we delete a data set using 2.using disp=old parameter
iefbr14 , iebgener 3.using disp=(new, pass)
1.yes,both can delete the dataset parameter
2.No,cannot delete dataset in iebgener 4. Not possible
3.No,it is not possible on both the
utilities
84. Can you execute a proc from
another proc [ nested procs. ]
4. None of the above
1.No,nested procedures is not possible
78. Can I concatenate a ps file , pds 2.Yes,can go for nested procedures
member and a gdg . if so how. 3.only procedure can be called by
1.No,only ps can be concatenated another procedure if the procedure is
2.No,GDG cannot be concatenated cataloged
3.yes,using iebgener utility 4. both B and C
4. None of the above
85. How is the keyword DUMMY
79. What is the default value the interpreted by jcl
region parameter will take. 1.Is coded on the DD statement to
1.0k/0m test the execution the program
2.1k without reading or writing to a
3.128k data set.
4. 2K/2M 2.It is coded to omit the DD statements
3.It is coded to pass data to the
80. Name the system libraries from program
which modules are retrieved at
4. both B and C
execution.
1.SYS1.LINKLIB 86. How is normal data set passed
2.ZOS.PROCLIB from one step to another
3.Both from SYS1.LINKLIB and 1. Using backward reference or
using disp=shr
2. No,data set cannot be passed from c) Both REPRO and IMPORT
one step to another d) Neither REPRO nor IMPORT
3. Only temporary data sets can be
passed from one step to another
92. If file is having space parm as
SPACE=(CYL,(10,10)) . So how much
4. None of the above
cylinders totally it will take before
87. How do you access a file that had dataset filled till end?
a disposition keep
a) 10
1.Indicates that the data set is to
be retained or keep in DASD b) 150
Volumes upon successful
execution of the job c) 20
2.used to share the datasets over
d)160
different steps
3.used to catalog the dataset 93. Difference between SYSOUT
4. None of the above and SYSPRINT

88. VSAM processing options could a) The SYSOUT parameter is used


be specified in to send the output which is
a) Catalog generated during job
b) Program control blocks execution.With the SYSPRINT DD
c) JCL statement you tell into which
d) None output queue you want the utility
e) All the above to place its messages and report.

89. Which of the following is/are b) The SYSPRINTparameter is used to


supported by COBOL? send the output which is generated
a) Skip-sequential processing during job execution.With the SYSOUT
b) RBA addressing DD statement you tell into which
c) Replacing existing record output queue you want the utility to
d) a and b place its messages and report.
e) a, b and c
c) SYSOUT is system input dataset can
f) a and c
be coded,SYSPRINT for JES MESSAGES
90. An alternate index itself is which are printed in this DD.
cluster type?
d)NONE
a) LDS
b) RRDS 94. Purpose of Export?
c) ESDS
a)copy the VSAM to another VSAM .
d) KSDS
e) None b)VSAM to Seq.

91. Which of the following requires a c)VSAM to RRDS

DELETE/DEFINE before the command d)VSAM to ESDS


can be used to restore an existing data
95. PROC:
set?
a) REPRO only // dd1 dd
b) IMPORT only DSN=henko.&country.n.&data..data(&
month)
Main JCL: 100. A: If a update set is used, and
modifications used will affect the AIX.
// step1 exec proc B: If AIX is opened, the base cluster
country=india,data=sales,month=jan will also be opened automatically.

What value will be assigned to the DSN A) A TRUE ,B TRUE B)A FALSE,B
in the above PROC? TRUE C)A TRUE,B FALSE
a)DSN=henko.indian.sales.data(ja
n) D)A FALSE ,B FALSE

B) 1.CHOOSE SOME VALID JOB NAME IN A JCL?


DSN=henko.country.sales.data(month)
A.//QYBGREEDS
B.//9C31245
C) DSN=henko.indian.salesdata(=jan)
C.//@1234
D.//W7
D) DSN=henko.india.sales.data(jan)

96. Choose the valid JES2 parameter


2.CHOOSE THE FOLLOWING OPTION WHICH IS NOT
in /*jobparm A KEYWORD PARAMETER IN JOB?
A.CLASS
a) Purge=none B.TYPERUN
C.PRTY
b)Sysprint=x D.MSGCLASS
c)Copies=59 3.CHOOSE THE DEFAULT VALUE FOR MSGLEVEL
PARAMETER IN JOB STATEMENT?
d)Linect=5 A.MSGLEVEL=(1,1)
B.MSGLEVEL=(0,1)
97. COND= (code,le) When will the C.MSGLEVEL=(2,0)
satement execute. D.MSGLEVEL=(1,2)
E.MSGLEVEL=(0,0)
a) If RC < CODE
4.//JOB123 JOB 'ARUN
b) If RC > CODE KUMAR','ACCT01',NOTIFY=&SYSUID,CLASS=T
THE STATEMENT IS VALID T/F true
c) If RC = CODE
5.WHAT ARE THE TWO TYPES OF PROCEDURES IN
d) If RC>= CODE JCL?instream n catalog

98. Cisize is 4096, rec1-


1000bytes,rec2 -1200 bytes, rec3 6.WHAT IS THE PARAMETER IS USED TO OMIT THE
-1000bytes, rec4- 800 bytes. Now FIRST STEP OF A JOB?
inserting 1000 bytes rec. Wat will
A.RESTART= STEP NAME
happen? B.RESTART=PROCSTEP NAME.STEP NAME
C.RESTART=PROCSTEP NAME.PROCSTEP NAME
a)CI Splits will occurs D.NONE OF THESE.
b)CA splits will occurs
7.MAXIMUM 255 DD STATEMENTS CAN BE CODED
c)CI and CA Splits will occurs IN A STEP.STATE T/F false

d)records will not inserted


8.HOW MANY DATASET CAN BE CONCATENATED
99. For changing the existing name IF MY DATASET IS-
of the cluster, which command is used.
PS -255
a)ALIAS PDS -16

b)ALTER 9.NAME THE UTILITY WHICH IS USED TO RENAME


A MEMBER OF A DATASET?
c)DEFINE

d)LISTCAT
10.____________IS THE STATEMENT HAS TO BE (2) RESTART FROM THE STEP NAME *
CODED IN JCL TO SPECIFY WHERE THE CATALOG
PROC IS. (3) RESTART FROM THE FIRST

A.JOBLIB (4) RESTART FROM (SYSIN DD *) STATEMENT


B.STEPLIB
C.JCLLIB 17.WHICH OF THE FOLLOWING KEYWORDS
4.CATLIB SHOULD NOT BE SPECIFIED IN PROCEDURE
(1) JOBLIB
11. TWO JOBS ARE SUBMITTED WITH DIFFERENT
CLASS AND SAME PRIORITY,BUT THE JOBS WILL (2)STEPLIB
BE EXECUTED IN SAME ORDER?
(3)EXEC
TRUE/FALSE
(4)DD

12.WHAT IS THE FUNCTION OF DD NAME


PARAMETER WITH A 2 PART STRUCTURE; 18.IF THE KEY OF A KSDS RECORD BEGINS IN THE
EXAMPLE AUDIT.REPORT? SECOND FIELD(FIRST FIELD IS 25 BYTES
LONG).THE OFFSET IN THE KEYS PARAMETER IS:
(1) OVERRIDE THE AUDIT DD STATEMENT IN THE
REPORT STEP (A) 24

(2) OVERRIDE THE REPORT DD STATEMENT IN (B) 25


THE AUDIT STEP
(C) 26
(3) CONCATENATE A DATASET ON TO A DD
STATEMENT IN A CALLED MODULE (D) NONE OF THE ABOVE.

(4) DELETE THE AUDIT DD STATEMENT IN THE 19.WHICH OF THE FOLLOWING REPRO SELECTION
REPORT. PARAMETERS CAN BE SPECIFIED FOR AN LDS?

13.IF A (+1) GENERATION DATASET IS CREATED IN (A) FROM KEY


THE FIRST STEP OF A JOB.HOW CAN IT BE
REFERENCED IN LATER STEPS OF THE SAME JOB (B) FROM ADDRESS
FOR INPUT?
(C) FROM NUMBER
(1) AS THE (0) GENERATION.
(D) SKIP
(2) AS THE (+1) GENERATION.
(E) NONE OF THE ABOVE
(3) AS THE (-1) GENERATION.

(4) WITHOUT THE GENERATION NUMBER. 20.WRITE THE SYNTAX FOR SORT CONTROL
STATEMENT?

14.WHAT PARAMETER DIRECTS THE OUTPUT OF


THE JOB LOG DATASET?

(1)JOBLOG 21.THERE ARE 10 RECORDS IN A VSAM FILE WRITE


THE SYNTAX TO COPY 4TH RECORD TO 8TH
(2) MSGCLASS RECORD?

(3) MSGLEVEL

(4) SYSLOG
22.WHAT IS MEANT BY SPANNED RECORDS?
15.COND=ONLY MEANS EXECUTE THIS STEP ONLY
IF THE PREVIOUS STEPS,TERMINATED
ABNORMALLY T/F
23.WHAT IS THE LENGTH OF RDF AND CIDF?
16.WHAT WILL HAPPEN IF WE GIVE RESTART = * IN
JOB STATEMENT

(1) JOB WILL BE ABENDED


24.ONE CONTROL AREA MUST CONTAIN ATLEAST
____2___ CONTROL INTERVALS?

25.HOW MANY EXTENTS WILL BE ALLOCATED


FOR VSAM DATASET ?123

Vous aimerez peut-être aussi