Answer Posted / vinod
The "dirty read" technique can be used to provide a high
degree of concurrent access to VSAM files while avoiding
the complications associated with CI and CA splits. The
dirty read protocol can be summarized as follows:
1.The VSAM file must be defined with cross-region
SHAREOPTIONS 4.
2.The file must be allocated with DISP=SHR.
3.All operations on the file, including reads, must be
preceded with an ENQ for the data set. The data set name is
specified for the ENQ "rname", but any string can be used
for the ENQ "qname" (though it must be the same string for
all accessors).
4.After a lock is obtained, the user's buffer must be
refreshed with a GET request. This step also applies to new
record insertions.
5.At the end of all file operations, the enqueue is
released with a DEQ function call.
6.No lock is held during a wait (such as terminal input
wait).
7.Before updating a previously read record, a fresh copy of
the record must be obtained and compared to the original to
ensure that no other user has updated the record while it
was being browsed and modified. As always, the second read,
the record comparison, and the update must be shielded by a
lock.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what do you mean by a shareoptions parameter (shr) in define cluster command?
if you wish to use the rewrite command how must the vsam file be opened?
What is the use of KSDS,LDS,ESDS,RRDS??what is VRRDS?? How are all these useful in realtime scenario??Plz helpme out...Its a recent question in IGATE..
OPEN INPUT StudentFile READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ PERFORM UNTIL EndOfStudentFile DISPLAY StudentId SPACE StudentName SPACE CourseCode SPACE YOBirth READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ END-PERFORM CLOSE StudentFile STOP RUN what will be output
what do you mean by a vsam split?
what do you mean by gdg in vsam?
Define gdg?
name the utility program closely associated with vsam?
Define free space?
what do you mean by the repro command?
Explain what are the optional parameters to the input dataset while loading the empty cluster with the data records?
What does the keyranges parameter in define cluster commends do?
what how do you initialize a vsam file before any operation? A vsam with alternate index?
How to get the last record in vsam file in cluster?
How do you calculate record size of an alternate cluster?