× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



So, if %EOF, no records are locked, that sounds logical to me. Also, I
think it would be logical to hold the lock through the WRITE. (or at least
logical to expect that to be the case).

Come Yanks, on wake up before it's quitting time here!
2012/5/14 Dennis Lovelady <iseries@xxxxxxxxxxxx>

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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.