|
> James LowAry wrote: > If in ILE program you specify on a Chain (N) to not lock the record on a Update file. > Is this treated as a Read with Lock then an immediate UnLock, >or as it would be in a > none Update situation (can you read the record if it is locked by another job)? > > I'm assuming the first one would be the way it would happen. > (IE: if you chained to a record and it was locked, the chain would fail after waiting for > the appropriate time-out, even though you specified NoLock) > Since the ODP would be opened for Update you would still need a free and clear > record, or is there some magic under the covers and it would treat > that requests a just Input request, not a Update request. James, What I generally do to test scenarios like this is just write some code. 1) Define the file in PGMA as Update Full-Procedural and CHAIN to a known record so that it is locked. Put a DSPLY operation in this program and make it stop right after the CHAIN has executed. Leave this program running at the DSPY operation. 2) In another interactive session, in PGMB define the same file as Update Full-Procedural and CHAIN(N) to the same record as PGMA. This will show you the actual behavior of the file manager with very little effort. If you get an error on the CHAIN(N) operation in PGMB, you'll know that CHAIN(N) is doing a Read with Lock. HTH, Steve Landess Austin, Texas (512) 423-0935
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.