What do you mean by dirty read ?

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


Please Help Members By Posting Answers For Below Questions

what do you mean by gdg in vsam?

729


How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?

586


What does the keyranges parameter in define cluster command do?

528


there are seven idcams commands in vsam. Can you name and explain each of them?

654


to use the rewrite command, how should the vsam file be opened?

669






how do you define an altindx ? How do you use altindxs in batch, cics programs?

612


Define gdg?

565


in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?

700


explain how can you initialize a vsam file before any operation?

656


What is the use of access method services in vsam?

595


What is the difference between lds and esds?

558


Explain the difference between lds and esds?

582


what do you mean by a vsam slot?

585


explain how do you define a gdg in vsam?

587


explain in brief how you can create a vsam file?

662