GeekInterview.com
Series: Subject: Topic:
Question: 43 of 44

What do you mean by dirty read

Asked by: Interview Candidate | Asked on: Aug 5th, 2005
Showing Answers 1 - 3 of 3 Answers
sivakarthika c

Answered On : Sep 13th, 2005

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.

  
Login to rate this answer.
victor

Answered On : Sep 26th, 2005

Where are we using Dirty read

  
Login to rate this answer.
vijay jessy

Answered On : Nov 6th, 2012

pls anybody explain clearly. we dont need the definition from ibms manual.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.