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
Explain the device independent method to indicate where a record is stored?
What is a ca split?
what is meant by dirty read in vsam?
Differentiate between control interval (ci) and control area (ca)?
what are the additional information you should give in the dd statement while defining the next generation of a gdg?
what is the probability of a complete system distortion under high end low performing multiprocessor job?
What is a ci split? What is a ca split?
What is control area?
How does control intervals and control areas related to each other?
write a program to read from a VSAM file , there will be a 5 records to create name. empno. resignation and address to update in a db2 table and call another program using dynamic call to find the matching fields in program 1 to update in db2 table. anybody pls send de program for dis ? thanks in advance...
What is the use of access method services in vsam?
What are the building blocks used in vsam datasets?
is it required that primary key values have to be unique? Do alternate key values have to be unique?
What is control interval?
Why is master catalog used in vsam?