Professional Documents
Culture Documents
(http://www.mainframestechhelp.com/)
Home (http://www.mainframestechhelp.com/)
» Interview Questions (http://www.mainframestechhelp.com/iq/)
» VSAM (http://www.mainframestechhelp.com/iq/vsam/) » VSAM Interview Questions
Questions Navigation
1 to 10
11 to 20
21 to 30
31 to 40
41 to 50
51 to 60
No. Because you cannot insert records in an ESDS, also when you rewrite a record, it must be of the same
length. Thus putting any value for free space does not make any sense.
What is SHAREOPTS ?
SHAREOPTS is a parameter in the DEFINE and speci es how an object can be shared among users. It is
coded as SHAREOPTS(a b), where a is the cross region share option ie how two or more jobs on a single
system can share the le, while b is the cross system share option ie how two or more jobs on di erent
http://www.mainframestechhelp.com/iq/vsam/ 1/3
3/2/2018 VSAM Interview Questions
Value of 2 for cross region means that the le can be processed simultaneously by multiple users
provided only one of them is an updater. Value of 3 for cross system means that any number of jobs can
process the le for input or output
What happens when you open an empty VSAM le in a COBOL program for input?
A VSAM le that has never contained a record is treated as unavailable. Attempting to open for input will
fail. An empty le can be opened for output only. When you open for output, COBOL will write a dummy
record to the le & then delete it out.
How do you initialize a VSAM le before any operation? a VSAM with alternate index?
Can write a dummy program that just opens the le for output and then closes it.
Non unique Case: 5 + ( alt-key-length + n * primary-key ) where n = number of duplicate records for the
alternate key
Sequential (QSAM) les can be created on tape while ESDS les cannot. Also, you can have ALTINDEX for
an ESDS while no such facility exists for QSAM les.
Use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, another dataset must be
de ned whose DCB parameters are used when new generations of the GDG are 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)
http://www.mainframestechhelp.com/iq/vsam/ 2/3
3/2/2018 VSAM Interview Questions
Use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, another
dataset must be de ned whose DCB parameters are used when new generations of the
GDG are 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)
Advertisements
More..
About Us
MAINFRAMESTECHHELP is a mainframe community and created to provide the help for all mainframes
related technical needs for the people who are all in need. We are providing the... View More
(http://www.mainframestechhelp.com/about_us.htm)
Latest ...
Iebcopy Tutorial (http://www.mainframestechhelp.com/utilities/iebcopy/)
Contact Us
Mail Us (http://www.mainframestechhelp.com/contact_us.php)
(https://www.facebook.com/mainframestechhelpindia)
(http://www.twitter.com/MTHIndia)
(http://www.mainframestechhelp.com/)
© Copyright 2015. All Rights Reserved. (http://www.mainframestechhelp.com/copyright.htm)
Sitemap (http://www.mainframestechhelp.com/sitemap.htm)
http://www.mainframestechhelp.com/iq/vsam/ 3/3