"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 10/18/2018 06:29:09
----- Message from Buck Calabro <kc2hiz@xxxxxxxxx> on Thu, 18 Oct
2018 06:28:45 -0400 -----


"RPG programming on the IBM i (AS/400 and iSeries)"


Re: Exclusive locks at the record level?

On Thu, 18 Oct 2018 at 01:14, Roger Harman <roger.harman@xxxxxxxxxxx>

Another process trying to read that record will wait until the
timeout (WAITRCD value on the file) and then throw a message. Of
course, you can monitor for that in the program.

Amplifying Roger's comment, I don't believe there is a 'read next
unlocked' operation in RPG RLA.

From the RPG Reference:


If the file from which you are reading is an update disk file, you can
specify an N operation extender to
indicate that no lock should be placed on the record when it is read. See
the Rational Development Studio
for i: ILE RPG Programmer's Guide for more information.


Michael Quigley
Computer Services
The Way International

This thread ...

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

This mailing list archive is Copyright 1997-2020 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].