|
When a record is locked by a CHAIN or READ, I know that it will be
unlocked when the program updates that record, or when it reads another
record. But what happens if a READE returns the EOF condition? Is the
previous record released? If a READE is performed on record 1, then a
WRITE is performed, is record 1 released? If so, why? How does it work?
The lock is released, and then the READ or CHAIN is attempted. So
unsuccessful READ/CHAIN results in a "lack of locks" <-- It's too early for
me to think of a better way to say that.
As for the second part, I believe the lock is held through a WRITE, but I'd
also like confirmation of that.
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"To invent, you need a good imagination and a pile of junk."
-- Thomas Edison
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.