Académique Documents
Professionnel Documents
Culture Documents
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
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
a)0 LIMIT(255) -
b)12 NOSCRATCH -
c)8 EMPTY -
d)4 )
//SYSIN DD *
Find The Errors in the Above Code..
DEFINE GDG -
a). Comment cannot be coded after the
statements ( -
Criterias: /*
- limit is 255. //
NOSCRATCH -
// 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) -
C). C).Room=3456
//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'
B) Cluster
c) Index A).access mode is dynamic
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
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= \.
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.
C).15 B).LIST
A).RRDS
C).KSDS // spaces=(trk...)
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
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
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
//SYSPRINT DD SYSOUT=*
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
(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
//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)
//XMIT //CNTRB
58) Which one is IEBGENER SYSIN CARD for
creating 3 members from input ps file //SET //CNTRL
Ans, //EXCLUDE
//SYSIN DD *
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
//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
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)
2. File status 39
d.PRINT
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. //*
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
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
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
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)
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
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.
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
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
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
(4) DELETE THE AUDIT DD STATEMENT IN THE 19.WHICH OF THE FOLLOWING REPRO SELECTION
REPORT. PARAMETERS CAN BE SPECIFIED FOR AN LDS?
(4) WITHOUT THE GENERATION NUMBER. 20.WRITE THE SYNTAX FOR SORT CONTROL
STATEMENT?
(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