JCL Interview
JCL Interview
m
Q2) How is a GDG base created?
A2) A GDG base is created in the system catalog and keeps track of the generation numbers used for
datasets in the group. IDCAMS utility is used to define the GDG base.
co
Q3) What is model dataset label(Model DSCB)?
A3) A model dataset label is a pattern for the dataset label created for any dataset named as a part of the
GDG group. The system needs an existing dataset to serve as a model to supply the DCB parameters
.
for the generation data group one wishes to create. The model dataset label must be cataloged. The
ES
model DSCB name is placed on the DCB parameter on the DD statement that creates the generation
data group.
M
number for all generations of the generation data group. Otherwise to have all generations of a
generation data group, omit the generation number. The DD statement will refer to all generations.
The result is the same as if all individual datasets were concatenated. If generations are not on the
A
same volume, this will not work.
FR
A6) DISP=MOD is used to either extend an existing sequential dataset or to create a dataset if it does not
exist. If the dataset exists, then records are appended to the dataset at the end of the existing dataset.
If the dataset does not exist, the system treats MOD as if it were NEW, provided that the volume
A
parameter has not been used. If the volume parameter is used, the system terminates the job and does
not create the new dataset. MOD can be used to add to a dataset that extends onto several volumes.
Always specify a disposition of CATLG with MOD for cataloged datasets, even if they are already
M
cataloged, so that any additional volume serial numbers will be recorded in the catalog.
A7) A dataset is passed from one step to another based on what is coded on the DISP parameter. The
dataset can only be passed to subsequent steps if PASS was used on the disposition parameter.
IB
Q9) What is the difference between the JOBLIB and the STEPLIB statements?
Q10) Name some of the JCL statements that are not allowed in procs.?
A10) Some of the JCL statements which are not allowed in procedures are:
1. JOB, Delimiter(/*), or Null statements
2. JOBLIB or JOBCAT DD statements
m
3. DD * or DATA statements
4. Any JES2 or JES3 control statements
co
Q11) What is primary allocation for a dataset?
A11) The space allocated when the dataset is first created.
Q12) What is the difference between primary and secondary allocations for a dataset?
.
A12) Secondary allocation is done when more space is required than what has already been allocated.
ES
Q13) How many extents are possible for a sequential file ? For a VSAM file ?
A13) 16 extents on a volume for a sequential file and 123 for a VSAM file.
and to KEEP but not CATLG the dataset if the step abends. Thus if the step abends, the dataset
would not be catalogued and we would need to supply the vol. ser the next time we refer to it.
will cause the dataset to be deleted whether the step abends or not. This disposition is used to clear
out a dataset at the beginning of a job.
M
Q19) What do you do if you do not want to keep all the space allocated to a dataset? - GS
IB
A19) Specify the parameter RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)
Q21) How do you create a temporary dataset? Where will you use them?
A21) Temporary datasets can be created either by not specifying any DSNAME or by specifying the
temporary file indicator as in DSN=&&TEMP. We use them to carry the output of one step to
another step in the same job. The dataset will not be retained once the job completes.
Q24) A PROC has five steps. Step 3 has a condition code. How can you override/nullify this
condition code? - GS
m
A24) Provide the override on the EXEC stmt in the JCL as follows:
//STEP001 EXEC procname, [Link]=value
All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.
co
Q25) How do you override a specific DDNAME/SYSIN in PROC from a JCL?
A25) //<[Link]> DSN=...
.
Q26) What is NOTCAT 2 - GS
ES
A26) This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a
dataset with dsn = '[Link]' and u try to create one with disp new, catlg, you would get this
error. the program open and write would go through and at the end of the step the system would try
to put it in the system catalog. at this point since an entry already exists the catlg would fail and
give this message. you can fix the problem by deleting/uncataloging the first data set and going to
M
the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.
A29) All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol.
and no further volumes specified. SE37 - Max. of 16 extents already allocated.
A
Q31) Why do you want to specify the REGION parameter in a JCL step? - GS
A31) To override the REGION defined at the JOB card level. REGION specifies the max region size.
M
Q32) What does the TIME parameter signify ? What does TIME=1440 mean ?
A32) TIME parameter can be used to overcome S322 abends for programs that genuinely need more
CPU time. TIME=1440 means no CPU time limit is to be applied to this step.
Q35) How do you check the syntax of a JCL without running it?
Q37) How do you send the output of a COBOL program to a member of a PDS?
A37) Code the DSN as PDS (member) with a DISP = SHR. The DISP applies to the PDS and not to a
specific member.
m
Q38) I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit
it?
co
A38) Multiple jobs are submitted (as many jobs as the number of JOB cards).
Q39) I have a COBOL program that Accepts some input data. How do you code the JCL statement
for this?
.
( How do you code instream data in a JCL? )
ES
A39) //SYSIN DD*
input data
input data
/*
instream data.
Q42) How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2
program?
A42) To run a non DB2 program,
IN
RUN PROGRAM(MYPROG)
PLAN(.....) LIB(....) PARMS(...)
/*
M
A43) Specifies that the private library (or libraries) specified should be searched before the default
system libraries in order to locate a program to be executed. STEPLIB applies only to the
particular step, JOBLIB to all steps in the job.
Q48) The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens
? The DISP in the JCL is SHR and the program opens the file in EXTEND mode. What
happens ?
m
A48) Records will be written to end of file (append) when a WRITE is done in both cases.
co
A49) PS - QSAM, PO - Partitioned, IS - ISAM
.
required by a step are done only just before the step executes.
ES
Q51) What are the causes for S0C1, S0C4, S0C5, S0C7, S0CB abends ?
A51) S0C1-May be due to [Link] or misspelled DD name [Link]/Write to unopened dataset [Link]
to dataset opened
output [Link] to dataset opened input [Link] subprogram not found
Exception M
S0C4-may be due to [Link] Select statement(during compile) [Link] Subscript/index [Link]
A53) A keyword in a JCL statement may appear in different places and is recognized by its name, eg.
MSGCLASS in the JOB statement. The opposite is positional words, where their meaning is
based on their position in the statement, eg. in the DISP keyword the =(NEW,CATLG,DELETE)
M
Q54) Describe the JOB statement, its meaning, syntax and significant keywords?
IB
A54) The JOB statement is the first in a JCL stream. Its format is // jobname, keyword JOB, accounting
information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFIY, CLASS, etc.
Q55) Describe the EXEC statement, its meaning, syntax and keywords?
A55) The EXEC statement identifies the program to be executed via a PGM= program name keyword.
Its format is //jobname EXEC PGM= program name. The PARM= keyword can be used to pass
external values to the executing program.
Q57) What is a PROC? What is the difference between an instream and a catalogued PROC?
A57) PROC stands for procedure. It is 'canned' JCL invoked by a PROC statement. An instream PROC
is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset.
Q58) What is the difference between a symbolic and an override in executing a PROC?
m
A58) A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is
invoked, eg. &symbol=value. An override replaces the PROC's statement with another one; it
substitutes for the entire statement.
co
Q59) What is RESTART? How is it invoked?
A59) RESTART is a JOB statement keyword. It is used to restart the job at a specified step rather than
at the beginning.
.
ES
Q60) What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB?
A60) GDG stands for generation data group. It is a dataset with versions that can be referenced
absolutely or relatively. It is defined by an IDCAMS define generation datagroup execution.
Q64) What are the keywords associated with DCB? How can you specify DCB information? What
is the OS precedence for obtaining that DCB information, ie. where does the system look for it
first?
A
A64) The keywords associated with the DCB parameter are LRECL, RECFM, BLKSIZE and DSORG.
The DCB information can be supplied in the DD statement. The system looks for DCB
information in the program code first.
M
Q66) What is the meaning of the EXEC statement keyword, COND? What is its syntax?
IB
A66) COND specifies the conditions for executing the subsequent job step. The value after the COND=
is compared to the return codes of the preceding steps and if the comparison is true, the step is
bypassed. (If this answer confuses you, welcome to the club - memorize it and don't ask questions!)
Q68) What is the purpose of the PARM keyword in the EXEC statement?
A68) The value after the PARM= specifies control information to be passed to the executing program of
the job step.
Q70) What is the purpose and meaning of the TIME keyword and what JCL statement is it
associated with?
A70) TIME specifies the maximum CPU time allocated for a particular job or job step. If TIME is in
m
the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.
Q71) What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD
co
statement?
A71) Data definition name is the eight character designation after the // of the DD statement. It matches
the internal name specified in the steps executing program. In COBOL that's the name specified
after the ASSIGN in the SELECT ASSIGN statement. Dataset name is the operating system
.
(MVS) name for the file.
ES
Q72) How is the keyword DUMMY used in JCL?
A72) For an output file DUMMY specifies that the output is to be discarded. For input it specifies that
the file is empty.
A73) M
Q73) What does the keyword DCB mean and what are some of the keywords associated with it?
DCB stands for data control block; it is a keyword for the DD statement used to describe datasets.
Keywords associated with it are BLKSIZE, DEN, LRECL and RECFM.
A
Q74) What is the difference between BLKSIZE and LRECL?
FR
A74) LRECL is the logical record length , where as BLKSIZE is multiples of LRECL
Q76) What will happen if you attempt to restart a job in the middle of a JCL // IF .... // ENDIF?
A76) Job will fall through to the ENDIF (not executing any steps), then resume execution with the first
A
Q78) What are three parameters you can specify on Job statement as well as on exec stmt ?
M
Q81) How do you pass parameters to the program as the job is being executed ?
A81) By using 'parm' parameter in exec statement. the value mentioned here should be declared in
linkage section in the program and process thru procedure division. this technique is very useful
when you do not know the parameters at the time of coding the programs.
m
'//TESTJOB JOB 1111,VISVEISH' TO [Link] '//STEP01 EXEC PGM=IEFBR14' TO
JCL- REC and close this file. Then TESTJOB will be submitted.
co
Q84) How do you submit a JCL under CICS environment ?
A84) Pass all the jcl codes to a COBOL variable(should be declare using OCCURS clause) and the write
the line one by one to the spool using CICS commands like SPOOLClose SPOOLOpen
SPOOLWrite . For more help reffer CECI of CICS or CICS manual
.
ES
Q85) What is the parameter to be passed in the job card for the unlimited time , irrespective of the
job class ?
A85) TIME=1440
spaces into the numeric field, or compare the numeric fields with low values, or try to do some
arithmetic operations on the low values. To avoid this you have to always initialize the numeric
fields otherwise they will contain the low values.
Q88) How to pass the temp dataset form one JOB step to another?
IN
A89) COND means condition parameter. It is compared with system return code of previous step.//step1
exec pgm=abcd//step2 exec pgm=xyz, cond=(4,lt)step2 will be executed when system return code
of step1 is less than 4.
M
Q93) The maximum number of in-stream procedure you can code in any JCL is ?
A93) Fifteen(15).
m
A96) JCL is Job Control Language and is used for Batch processing. The startup procedures of OS and
standard products like CICS etc are written in JCL. It is interface between operating system(MVS)
& application program. when 2 related programs are combined together on control statements is
co
called job control language
.
ES
Q98) What are the basic JCL Statements for a Job?
A98) JOB : Identifies a job and supplies accounting info
EXEC : Identifies a job step by indicating the name of the program to be executed.
DD : Identifies a data set to be allocated for the job step
Delimiter(/*) : Marks the end of an in-stream dataset
Null(//)
Comments(//*)
PROC
: Marks the end of a job
: Provides Comments M
: Marks the beginning of a procedure
A
PEND : Marks the end of a procedure
OUTPUT : Supplies options for SYSOUT processing.
FR
Q99) What does the statements: typrun=scan and typrun=hold do in a JCL statement
A99) typrun=scan checks the JCL for errors, typrun=hold holds the job until further notice.
Q100) Which is the most widely used batch performance monitor for DB2?
IN
A100) DB2PM
A102) It is used as an alternative for STEPLIB. When we specify the dataset name in include ,it will
search in all the datasets specified in the include dataset.
M
variable is defined with less characters and we are trying to move data which is larger than the
actual storage space.
m
A106) This is managed by JES. This is used for Queuing the Outputs that are intended for Printing and
are first stored in SPOOLDASD. This can be managed Using
co
Q107) For how long a job can be executed continuously in a mainframe ?
A107) 248 DAYS
.
A108) 3273
ES
Q109) How much space OS allocates when you create a PS or PDS?
A109) 56 KB
Q112) How much is memory space involved, when we code BLOCKSIZE,TRK & CYL ?
A112) One block constitutes 32KB of formatted memory/ 42KB of Unformatted memory,6 blocks makes
one Track & 15 Tracks makes one cylinder.
A116) IEFBR14 is a Dummy utility and it is used for the sake of EXEC PGM= .... statement in JCL[when
used it wouldn't perform any task]. e.g. While Allocating a dataset you don't have to run any utility
IB
[this could be done by giving disp=new inDD statement]. But for a PGM name must be given in
EXEC statement, it is used.
Q118) On the DD statement, what is the main difference between creating a new sequential flat file
and a partitioned dataset?
A118) SPACE=(n,m) for a sequential file, SPACE=(n,m,p) for a PDS where n, m, and p are numbers.
The p designates how many directory blocks to allocate.
m
Q121) How to execute a set of JCL statements from a COBOL program ?
A121) Using EXEC CICS SPOOL WRITE(var-name) END-EXEC command. var-name is a COBOL
co
host structure containing JCL statements.
Q122) What is the difference between static call & Dynamic call ?
A122) In the case of Static call, the called program is a stand along program, it is an executable program .
.
During run time we can call it in our called program. As about Dynamic call, the called program is
ES
not an executable program it can executed thru the called program
Q123) What is the difference between catalogue procedure and In-Stream procedure?
A123) In Stream procedures are set of JCL statements written between JOB and EXEC statements, start
with PROC and end with PEND statement. Mainly used to test cataloged procedures. Cataloged
M
procedure is cataloged on the procedure library and is called by specifying the procedure name on
the EXEC statement.
A
Q124) What do you feel makes a good program?
A124) A program that follows a top down approach. It is also one that other programmers or users can
FR
Q126) What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?
A126) Minimum Size : 1 track Maximum size : 1 cylinder
A
Q128) How many parameters are there to a DISP statement and what are their uses ?
A128) There are three(3) parameters. Parameter 1: current data set disposition(new, shr, old, mod)
Parameter 2: normal close action for data set (catlg, keep, delete) Parameter 3:abend action for
M
Q131) What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
A131) OLD specifies exclusive use of a dataset, SHR allows multiple jobs to concurrently access the
dataset Note: When updating a dataset, you would normally use OLD.
Q134) What are three major types of JCL statements? What are their functions?
A134) JOB - indicates start of jobstream to the operating system and through parms coded on it, certain
details about the
m
job (time, region, message level, job accounting data).
EXEC - indicates the start of execution of a particular job step, be that step a program or a proc.
DD - is a data definition, which is used to describe the attributes of a data set (name, unit, type,
co
space,
disposition).
.
ES
2. How can you omit positional parameters ?
ii) MSGLEVEL=(2,1)
iii) MSGLEVEL=(1,1)
9. List down the different types of comparison operators & their meaning .
A
14. What are the additional keyword parameters used on the EXEC statement?
19. If JOBLIB & STEPLIB statements are both included in a job , then which statement would overide .
m
22. How would u specify the device for a dataset in a DD statement ?
co
23. What is the function of the following DD statement //ddname DD *
.
25. What are the two ways of specifying Temporary Data Sets ?
ES
26. What are the advantages of coding the DISP parameter with MOD rather than NEW ?
28.
29.
M
What is the default value of the third DISP subparameter ?
32. What are the functions of the following ddnames : SYSUDUMP , SYSABEND , SYSMDUMP
IN
m
Q3) What is a CI, control interval?
A3) A control interval is the unit of information that VSAM transfers between virtual and auxiliary
storage.
co
Q4) What are the distinctive features of a ksds, key sequenced dataset?
A4) The index and the distributed free space.
.
Q5) What is a CA, control area?
ES
A5) A group of control intervals makes up a control area.
Q7)
A7)
What is the index set? M
This is the other part of the index. It has multiple levels with pointers that ultimately reach to the
A
sequence set.
A8) A cluster is the combination of the index, sequence set and data portions of the dataset. The
operating system gives program access to the cluster, ie. to all parts of the dataset simultaneously.
Q9) The catalog contains the names of all datasets, VSAM and non-VSAM. It is used to access these
datasets.
Q10) An AIX is a file that allows access to a VSAM dataset by a key other than the primary one.
M
when data in the base cluster is updated, the AIX files are also updated.
Q16) Do primary key values have to be unique? Do alternate key values have to be unique?
Q16) Primary key values must be unique; alternate key values need not be.
Q17) In the COBOL SELECT statement what is the ORGANIZATION for a KSDS?
Q17) The ORGANIZATION is INDEXED.
m
Q18) In the COBOL SELECT statement for a KSDS what are the three possibilities for ACCESS?
Q18) ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC.
co
Q19) What is the COBOL RECORD KEY clause?
Q19) The RECORD KEY in the SELECT clause identifies the files primary key as it will be known to the
program.
.
Q20) What is the purpose of the FILE STATUS clause in the SELECT statement?
ES
Q20) The FILE STATUS field identifies the field that VSAM uses to provide information about each I/O
operation for the file.
Q21) If you wish to use the REWRITE command haw must the VSAM file be opened?
Q21) It must be opened as I/O.
M
Q22) Explain the meaning and syntax for the START command.
Q22) The START command is used read other than the next VSAM record. A value must be moved into
A
the RECORD KEY. The KEY clause is optional, but it can be used to specify a relational (equal,
less than, etc.) operator.
FR
defined in WORKING-STORAGE as a six byte group item with three two byte elements, the normal
return code, the function code and the feedback code.
M
identified by a relative record number (RRN) which indicates its relative position in the file.
Q28) There are at least seven IDCAMS commands; name and explain each of them ?.
Q28) ALTER modifies information for a catalog, alternate index, cluster or path. BLDINDEX builds the
alternate index, of course. DEFINE is used for ALTERNATEINDEX, CLUSTER or PATH.
DELETE removes the catalog entry for a catalog, cluster, alternate index or path. LISTCAT lists
information about the dataset. PRINT prints the dataset contents. REPRO copies records from one
file to another.
m
Q32) What is File Status in VSAM?
Q32) The FILE STATUS clause of the FILE-CONTROL paragraph allows for each file to be
co
associated with a file status key (i.e., the 2-character data item specified in the FILE STATUS
clause). If the FILE STATUS clause is specified for a given file, a value indicating the status of
each I/O operation against that file is placed in the associated file status key. This value is stored in
the file status key as soon as the I/O operation is completed (and before execution of any
.
EXCEPTION/ERROR declarative or INVALIDKEY/AT END phrase associated with the I/O
ES
request).
Note: This element may behave differently when the CMPR2 compiler option is used. The file status
key is divided
into two status keys: the first character is known as file status key 1; the second character is file
status key 2.
M
Q33) What's a LDS (Linear Data Set) and what's it used for?
Q33) LDS is a VSAM dataset in name only. It has unstructured 4k (4096 bytes) fixed size CI’s which do
A
not contain control fields and therefore from VSAM's standpoint they do not contain any logical
records. There is no free space, and no access from Cobol. Can be accessed by DB2 and IMS fast
FR
path datasets. LDS is essentially a table of data maintained on disk. The 'table entries' must be
created via a user program and can only be logically accessed via a user program. When passed,
the entire LDS must be mapped into storage, and then data is accessed via base and displacement
type processing.
IN
DO -
command set (such as DELETE, DEFINE etc..)
ELSE -
DO -
command set
LASTCC - Condition code from the last function (such as delete) executed
MAXCC - Max condition code that was returned by any of the prev functions
SET is also a valid AMS command. SET LASTCC (or MAXCC) = value
Q37) Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What
will be the condition code returned to the operating system ?
Q37) The maximum condition code generated is returned as the condition code of the IDCAMS step.
m
for sequential processing while the reverse is true for random access. Under CICS when a record is
locked, the entire CI gets locked.
Control Area is a group of control intervals. CA is used during allocation. CA size is calculated
co
based on the
allocation type (cyl, tracks or records) and can be max of 1 cylinder
.
Q39) Coded in the DEFINE as FREESPACE(ci ca) where ci is the percentage of each control interval to
ES
be left free for insertions, ca is the percentage of control intervals in each control area to be left
empty.
Q40) How do you decide on optimum values for CI, FREESPACE etc...?
Q40) CI size should be based on record length, type of processing. Usually CI is 4K. If record length is
M
larger(>1K), chose 6K or 8K. FREESPACE should be large if more number of insertions are
envisaged. Usual values are (20 20) when heavy updates are expected. CI size can be calculated.
A
Q41) Would you specify FREESPACE for an ESDS?
Q41) No. Because you cannot insert records in an ESDS, also when you rewrite a record, it must be of the
FR
same length. Thus putting any value for freespace does not make any sense.
on a single system can share the file, while b is the cross system share option ie how two or more
jobs on different MVS’s can share the file. Usual value is (2 3).
A
can process the file for input or output (VSAM does nothing to ensure integrity).
Q44) DEFINE CLUSTER(cluster name) with the INDEXED parameter. Also specify the ds name for the
DATA component & the ds INDEX component. Other important parms are RECORDSIZE, KEYS,
IB
SHAREOPTIONS.
Q45) How do you define an ALTINDX ? How do you use ALTINDXs in batch, CICS pgm’s ?
Q45) DEFINE ALTERNATEINDEX. Important paramters are RELATE where you specify the base
cluster name, KEYS, RECORDSIZE,SHAREOPTIONS,UNIQUEKEY(or NONUNIQUEKEY),
DATA(ds name for the data component), INDEX(ds name for the index component). Then DEFINE
PATH. Important paramters are NAME (ds name for the path), PATHENTRY (ds name of the
alternate index name), UPDATE(or NOUPDATE) which specifies whether an alt index is updated
when a update to the base cluster takes place. Then BLDINDEX. Parameters are INDATASET(ds
name of base cluster), OUTDATASET(ds name of AIX).
Q48) What happens when you open an empty VSAM file in a COBOL program for input?
m
Q48) A VSAM file that has never contained a record is treated as unavailable. Attempting to open for
input will fail. An empty file can be opened for output only. When you open for output, COBOL will
write a dummy record to the file & then delete it out.
co
Q49) How do you initialize a VSAM file before any operation? a VSAM with alternate index?
Q49) Can write a dummy program that just opens the file for output and then closes it.
.
Q50) What does a file status of 02 on a VSAM indicate?
ES
Q50) Duplicate alternate key . Happens on both input and output operation
Q51) How do you calculate record size of an alternate cluster? Give your values for both unique
and nonunique.
Q51) Unique Case: 5 + ( alt-key-length + primary-key )
M
Non unique Case: 5 + ( alt-key-length + n * primary-key ) where n = number of duplicate records for
the alternate key
A
Q52) What is the difference between sequential files and ESDS files?
Q52) Sequential (QSAM) files can be created on tape while ESDS files cannot. Also, you can have
FR
ALTINDEX for an ESDS while no such facility exists for QSAM files.
created. This dataset is known as the model dataset. The ds name of this model dataset must be the
same as that of the GDG, so use a disp of keep rather than catlg and also specify space=(trk,0)
M
Q55) Do all versions of the GDG have to be of the same record length ?
Q55) No, the DCB of the model dataset can be overridden when you allocate new versions.
M
Q57) Suppose 3 generations of a GDG exist. How would you reference the 1st generation in the
JCL? - GS
Q57) Use GDG name(-2).
Q58) Suppose a generation of GDG gets created in a particular step of a proc. How would you refer
the current generation in a subsequent step? What would be the disposition of this generation
now? - GS
Q58) Relative generation numbers are updated only at the end of the job, not at the end of a step. To
allocate a new generation, we would be using (+1) with a DISP of (NEW,CATLG,DELETE). To
Q59) What more info you should give in the DD statement while defining the next generation of a
GDG? - GS
Q59) Give (+1) as the generation number, give (new,catlg) for disp, give space parameter, can give the
DCB parameter if you want to override the dcb of the model dataset.
Q60) Assuming that the DEFINE JCL is not available, how do you get info about a VSAM file's
organisation?
m
Q60) Use the LISTCAT command.
Q61) During processing of a VSAM file, some system error occurs and it is subsequently unusable .
co
What do you do ?
Q61) Run VERIFY.
Q62) How do you fix the problem associated with VSAM out of space condition?
.
Q62) Define new VSAM dataset allocated with more space.
ES
Use IDCAMS to REPRO the old VSAM file to new VSAM dataset.
Use IDCAMS to ALTER / rename the old VSAM dataset or se IDCAMS to DELETE the old VSAM
dataset.
Use IDCAMS to ALTER / rename the new VSAM dataset to the name of the original VSAM
dataset.
Q66) Is it slower if you access a record through ALT INDEX as compared to Primary INDEX?
Q66) Yes. Why? Because the alternate key would first locate the primary key, which in turn locates the
actual record. Needs twice the number of I/Os.
A
during the initial dataset load, if the job fails, you can restart but you must have a recovery routine
already written to restart the job. SPEED does not preformat the CAs. It is recommended that you
specify SPEED to speed up your initial data load.
M
SHR(Crvalue, CSvalue) value 1 means multiple read OR single write (read integrity) 2 means
multiple read AND single write (Write integrity) 3 means Multiple read AND multiple write 4 is
same as 3, which refreshes the buffer with every random access. default is SHR(1 3).
Q69) What does the KEYRANGES parameter in Define Cluster commend do?
A69) It divides a large dataset into several volumes according to the Key ranges specified. e.g.,
KEYRANGES ((0000001 2999999) (3000000 5999999)). if the activity on the key ranges are
evenly distributed, concurrent access is possible, which is a performance improvement.
m
A71) IDCAMS is an access method services utility used for creating, deleting, altering VSAM files and
copying sequential file to a VSAM file, etc.
co
Q72) How to delete a member using JCL.
A72) Using IDCAMS a member can be deleted. DELETE '[Link](member)
.
A73) These two datasets are VSAM datasets. ESDS maintains control information. But LDS does not
ES
maintains the control information.
A76) 2 data buffers by default for ESDS. For KSDS it allots 2 data buffers and 1 index buffers. each buffer
is about 4k.
Q78) what's the device independent method to indicate where a Record is Stored?
A78) By USING RBA(Relative Byte Address).
A
Q82) If FSPC(100 100) is specified does it mean that both the control interval and control area will
be left empty because 100 % of both CI and ca are specified to be empty?
A82) No, they would not be left empty. one record will be written in each CI and 1 CI will be written for
each ca.
SECTION 1
m
10. The minimum size of a CA is 1 track.
11. 1 track is the minimum size of a CA.
12. The maximum size of a CA is 1 cylinder.
co
13. 1 cylinder is the maximum size of a CA.
14. LDS is VSAM data set with a CI size of 4096Bytes.
15. LDS has no imbedded control information in its CI.
16. LDS has only a data component.
.
17. LDS cannot have an alternate index.
ES
18. RRDS consists of a number of preformatted fixed-length slots.
19. RRDS has only a data component.
20. For an RRDS the relative record number is used as a search argument.
21. RRDS supports only fixed length records.
22. ESDS has only a data component.
23.
24.
Spanned records must be accessed in MOVE mode.
Alternate Index is a special type of KSDS. M
A
25. The Master Catalog (MCAT) is identified at IPL.
26. The Master Catalog (MCAT) contains pointers to system data sets and user catalogs.
27. VTOC (Volume Table Of Contents) describes the type and location of data sets on the volume.
FR
28. VTOC (Volume Table Of Contents) is a data set created at volume initialization.
29. JOBCAT identifies a default catalog for an entire job.
30. STEPCAT identifies a default catalog for a single job step.
31. The two types of AMS commands are functional commands and modal commands.
IN
m
63. ICI access cannot be used to Load or Extend a data set.
64. Space allocations made in RECORDs are converted to TRKS by VSAM. ()
65. Key compression applies to the Index component.
co
66. An alternate index cannot be defined for an RRDS or LDS .
67. Each AIX data record contains System Header Information, the Alternate Key, and Pointer to the
data set.
68. A Path Path provides a way to gain access to the base data through its AIX.
.
69. Base Cluster must not be empty for BLDINDEX.
ES
70. Length of the alternate keys must not exceed 255 .
71. Records larger than 32760 cause REPRO to terminate.
72. When exporting a data set, we specify TEMPORARY to preserve the original data set.
SECTION 2
State whether True or False:
M
A
1. All VSAM data sets reside on DASD devices. (T)
2. Whenever a record is retrieved from DASD, the entire CA containing it is read into VSAM buffer.
FR
(F)
3. A LDS has no control information embedded in its CIs. (T)
4. In an RRDS, the position of a data record can be changed. (F)
5. Records from an ESDS can either be accessed sequentially or by RBA. (T)
IN
12. A newly inserted record is always added at the end of a KSDS. (F)
13. A new index entry is inserted in the sequence set record corresponding to a CI split. (T)
14. IMBED places the sequence set CI for a data control area within the control area. (T)
M
15. VSAM control intervals containing data records have at least one RDF and one CIDF.(T)
16. Control area sizes vary by device type. (F)
17. Control interval sizes vary by device type. (T)
IB
18. For a KSDS, the larger the data CA size, the smaller the number of index CIs. (F)
19. We cannot access variable-length blocked records in VSAM. (F)
20. MCAT contains pointers to system data sets and user catalogs. (T)
21. While creating VSAM data sets, provision of component names is a must. (F)
22. JOBCAT identifies a default catalog for a single job step. (F)
23. There is a one-to-one correspondence between BCSs and VVDSs. (F)
24. The need for JOBCAT/STEPCAT statements has been replaced by the ALIAS. (T)
25. Aliases are limited to the first segment of the component name. (F)
26. The cluster name is required when defining VSAM cluster using DEFINE CLUSTER command.
(T)
m
(T)
33. The candidate volume is not used when data set is initially loaded. (T)
34. Suppose [Link] is a KSDS. The following statement will print cluster information only:
co
35. LISTCAT ENTRIES ([Link]) ALL (F)
36. REPRO copies or merges an alternate index as an ESDS. (F)
37. A PRINT command prints only VSAM data sets. (F)
38. A KSDS can be printed only in key order. (F)
.
39. A RRDS is printed in relative record number sequence. (T)
ES
40. The default print format is CHARACTER. (F)
41. Generic keys can be specified in PRINT FROMKEY and TOKEY. (T)
42. REPRO will stop processing records when a total of four physical I/O errors occur while writing to the
output data set. (F)
43. REPRO REUSE against a non-empty target data set defined with NOREUSE will reset the target data
set. (F)
M
44. In altering a KSDS, BUFND and BUFNI can be specified instead of BUFFERSPACE.(F)
45. ALTER REMOVEVOLUMES will not remove the volume if the data set currently has data on the
A
volume. (T)
46. ALTER can be used to change ESDS to LDS. (T)
FR
47. ALTER NULLIFY can be used to nullify all passwords, except the master. (F)
48. ALTER modifies the cataloged attributes of a VSAM data set. (T)
49. Generic names can be used to rename a group of objects or to alter an attribute of a group of objects.
(T)
50. Data Class specifications override the appropriate JCL parameters. (F)
IN
57. Non-spanned records may be accessed in either MOVE or LOCATE mode. (T)
58. The ISAM interface program allows VSAM programs to access ISAM data sets. (F)
59. Cross system sharing is either between multiple systems or multiple virtual machines.(T)
M
62. Catalog password protection is required for data set password checking. (T)
63. To ensure read integrity the application program must code ENQ/DEQ. (T)
64. For a data set with SHAREOPTIONS(4 3), CA splits are not allowed. (F)
65. The default for DELETE CLUSTER is NOERASE. (T)
66. If a cluster has VSAM password protection, the cluster MUST have a master password. (T)
67. The high-level index set record is maintained in the buffer if more than one index buffer (per string ) is
provided. (T)
68. VSAM allocates index buffers for all cluster types, even if the buffers are never used.(T)
69. BUFND and BUFNI are preferable to BUFFERSPACE. (T)
70. STRNO is used for sharing data sets across regions. (T)
71. Data buffers and control blocks are allocated below 16M by default. (T)
m
(F)
79. IMBED replicates the sequence set CI associated with a data CA on the first track of data CA.
80. REPLICATE imbeds the index set within the data component. (F)
co
81. In a multiple volume data set the first allocation of space on a volume is always a primary allocation.
(T)
82. Index key compression can be suppressed with the NOCOMPRESS parameter. (F)
83. For sequential processing larger data CIs are desirable. (T)
.
84. Key compression applies to the keys of both index and data components. (F)
ES
85. Multiple alternate indexes may be defined over a base cluster. (T)
86. Alternate indexes are spanned record data sets. (T)
87. The size of an alternate index is about the same size of its base cluster. (F)
88. AIX records may be longer than specified in the DEFINE AIX maximum record size.(T)
89. A path is required so that an application program can specify base cluster keys and retrieve alternate
index records. (T)
90. Base cluster must be empty for BLDINDEX. M
91. Upgrade is done only for non-empty alternate indexes.
(F)
(T)
A
92. After reorganizing a KSDS, the physical sequence of data is same as the logical sequence of data.
(T)
FR
93. Index component is however not reconstructed, after the reorganization of a KSDS. (F)
94. EXPORT extracts catalog information and creates a copy of the data records. (T)
95. Records larger than 32760 cause EXPORT in CIMODE to terminate with an error. (F)
96. CIMODE is the default for EXPORT of an LDS. (T)
97. The base cluster must be imported before the alternate indexes. (T)
IN
98. The base cluster must be exported before the alternate indexes (F)
99. DFDSS can be used to reorganize a KSDS. (T)
100. If the HIGH-USED-RBA of the IMPORT OUTDATASET parameter is zero, then VSAM deletes and
A
102. Data Set List line operator commands may effect more than one data set. (T)
SECTION 3
M
3) In which cluster type are records added at the end of the data set? (c)
a) LDS
b) RRDS
c) ESDS
d) KSDS
m
a) sequential
b) skip-sequential
c) direct
co
d) a and b
e) a, b and c
.
a) sequential
ES
b) skip-sequential
c) direct
d) a and b
e) a and c
e) a or c
c) a and b
d) None
A
c) RRDS
d) None
M
10) When defining a KSDS, which of the following parameters is not required? (b)
a) Space allocation (either CYL, REC or TRK)
b) VOLUMES
c) KEYS
d) NAME
12) If the key of a KSDS record begins in the second field (first field is 25 bytes long), the offset in the
KEYS parameter is (a)
a) 24
b) 25
c) 26
m
d) None
co
a) INDEXED
b) NUMBERED
c) LINEAR
d) NONINDEXED
.
ES
14) The default cluster type is (d)
a) ESDS
b) RRDS
c) LDS
d) KSDS
d) None
c) LDS
d) KSDS
A
c) Hexadecimal
d) None
M
18) Which of the following REPRO selection parameters can be specified for an LDS? (e)
a) FROMKEY
IB
b) FROMADDRESS
c) FROMNUMBER
d) SKIP
e) None
21) Using REPRO to reorganize a KSDS, which of the following is true? (e)
a) Input must be ascending key sequence.
m
b) No duplicate keys are allowed.
c) Non-unique keys are allowed.
d) a and c
co
e) a and b
22) Which of the following entry names are valid for ALTER FREESPACE? (b)
a) Cluster name
.
b) Data component name
ES
c) Index component name
d) b and c
e) a, b and c
23) Which of the following is a correct generic name specification for [Link].A? (a)
a) [Link].*
b) TEST.*.*.A
c) *.[Link].A
M
A
d) [Link].*.A
FR
25) For which access mode below must the application program interpret RDFs? (b)
A
a) KEY
b) ADR
c) ADR(for a KSDS)
M
d) CNV
e) None
M
26) At OPEN, VSAM determines processing options in the following order (d)
a) JCL, program, catalog
IB
27) VSAM request macros (e.g., GET, PUT) point to which other macros? (c)
a) OPEN
b) ACB
c) RPL
d) CLOSE
e) b and c
28) If a program uses direct processing exclusively, DIR is specified in which macros? (c)
a) OPEN
b) ACB
c) RPL
d) CLOSE
e) b and c
f) None
m
29) VSAM processing options could be specified in (e)
a) Catalog
b) Program control blocks
co
c) JCL
d) None
e) All the above
.
30) Which of the following is not a COBOL verb? (d)
ES
a) START
b) READ
c) DELETE
d) UPDATE
e) REWRITE
a) Skip-sequential processing
M
31) Which of the following is/are not supported by COBOL? (d)
A
b) RBA addressing
c) Replacing existing record
FR
d) a and b
e) a, b and c
f) a and c
a) SHR(2 2)
b) SHR(2 3)
c) SHR(4 1)
A
d) SHR(1 2)
e) None
M
33) For a data set defined with SPEED, which of the following is true? (a)
a) SPEED is effective for the initial load only.
b) SPEED is effective for all additions to the data set after initial load.
M
c) If the load program ABENDS, VERIFY can determine the HIGH-USED-RBA of the data set.
d) If the load program ABENDS, only those records remaining in buffers need to be added to the data
IB
set.
e) None
35) For a data set defined with NOERASE, which of the following is not true? (a)
a) Desirable for sensitive data
m
37) How many data buffers are required for sequential processing to overlap I/O processing? (c)
a) 2
b) 3
co
c) 4
d) 5
38) When defining a KSDS, the best place to specify CISZ is generally (b)
.
a) At the cluster level
ES
b) At the data level only
c) At the index level only
d) At both data and index levels
39) For direct processing the recommended number of data buffers is (b)
a) STRNO
b) STRNO+1
c) STRNO+2
M
A
d) STRNO+3
e) None
FR
40) For 3380 DASD, TRK(50 5) results in which CA size for a KSDS defined with NOIMBED? (b)
a) 1 TRK
b) 5 TRKS
c) 15 TRKS
IN
d) 50 TRKS
e) None
A
41) Suppose you are defining a multi-volume data set with VOL(A B) and five key ranges specified. Which
of the following correctly indicates where each key range will be located?
(c)
M
m
44) An alternate index itself is which cluster type?
(d)
a) LDS
co
b) RRDS
c) ESDS
d) KSDS
e) None
.
ES
45) Which of the following backs up data in CI mode?
(b)
a) REPRO only
b) EXPORT only
c) Both REPRO and EXPORT
d) Neither REPRO nor EXPORT
M
46) Which of the following writes catalog information into the backup data set?
A
(b)
a) REPRO only
FR
b) EXPORT only
c) Both REPRO and EXPORT
d) Neither REPRO nor EXPORT
47) Which of the following requires a DELETE/DEFINE before the command can be used to restore an
IN
b) IMPORT only
c) Both REPRO and IMPORT
d) Neither REPRO nor IMPORT
M
a) Required
b) Used to exclude the TSO id as the high level qualifier
IB
m
6. Specify the default action of VSAM if the specified CISZ is not valid in defining the cluster.
7. How are records stored in each type of VSAM data set?
8. What is the function performed by VSAM ALTER?
co
9. What is the difference between a user catalog and a master catalog?
10. How do you specify the amount of CI to be used?
11. How do you specify the amount of CA available to a file?
12. Explain the need for free space.
.
13. What does it imply, if FSPC(100 100) is specified in DEFINE CLUSTER command?
ES
14. What is AMS? How are its services invoked?
15. Describe the various levels of password protection.
16. What is the format of SHAREOPTIONS and why is it used?
17. In what manner the VSAM data sets can be shared with SHAREOPTION(2 3)?
18. Mention some of the important types of information that can be obtained from LISTCAT.
19.
20.
21.
M
How can you check the amount of free space available for a data set?
How can we obtain the status of a master catalog or a user catalog?
What is a VSAM model?
A
22. What is a reusable data set?
23. What is the function performed by VSAM REPRO?
FR
32. What happens when a VSAM data set is requested for OPEN?
33. What is AMP and when would you use it?
M
m
. co
ES
M
A
FR
IN
A
M
M
IB