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



I do not have programs with this code but we did in the past (thankfully they are gone) but have you looked at Halt Indicators (H1-H9)?

-Matt


-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of James H. H. Lampert
Sent: Wednesday, May 8, 2019 11:07 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Please refresh my memory: can I, in RPG, have a file read fail immediately and recoverably on a locked record?

On 5/8/19, 9:57 AM, Carel wrote:
Error indicator on the READ?

. . . Or an (E) extender

Except (1) I'd rather leave it as a Cycle program, with the file being run through as a Primary File, than convert it to use an explicit READ, and (2) the lock wait timeout is still quite long, whereas (because it's a low-priority update) I want it to fail immediately and move on to the next record.

It appears that I could take care of (2) by wrapping the RPG program in a CL program with an OVRDBF WAITRCD(*IMMED), but is there some other way that's simply slipped my mind?

--
JHHL
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_rpg400-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=PFWIHV6qN_hxogo-7zpIXM3jxUe9KZC430HGQXfvBaI&s=w0pzThXfGETutHmTa3Os5MYSYE5qAPCZL0mHD-RWTaA&e=
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_rpg400-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=PFWIHV6qN_hxogo-7zpIXM3jxUe9KZC430HGQXfvBaI&s=szrJiTlxLgO_3J04_LQAqIS0lz-3uQhNzfTHgYCDzcg&e= .

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.com&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=PFWIHV6qN_hxogo-7zpIXM3jxUe9KZC430HGQXfvBaI&s=MrwF7oVzsqiyn7ZHLByHhYOzb0sjQ6lch4pCi-dieDI&e=

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.