Hi, James,
You do NOT need a *DTAARA -- just issue the ALCOBJ ... *EXCL against the actual *PGM itself ... :-)
Just be sure to have error recovery logic to free the lock when the program ends, in case it ends abnormally ...
Hope that helps,
Mark S. Waterbury
On Friday, October 27, 2023 at 07:04:42 PM EDT, James H. H. Lampert via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx> wrote:

On 10/27/23 4:00 PM, Roger Harman wrote:
I used to do as Art first suggested which is to allocate a data area.
The lock will disappear if the job ends - regardless of how.

That's kind of what I was thinking, even before Art suggested it.

Thought there was another possibility I either didn't know about, or had
forgotten about in my old age.

--
JHHL


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