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



This particular *DTAARA is not updated by any program  Updates would be manual from a command line.
I need the program to do a read only (No update lock) for use in the program.   I would like any other instances to read the value also.   However, the first one puts a *EXCLRD lock on the *DTAARA which locks out other instances.

If there was a shared Read lock, all would be good. Am I coding something incorrectly?

Gavin.

On 2/21/2023 12:26 PM, Jon Paris wrote:

The simple answer - I don't think you can.

But why would you want to?

If you want a lock so that you can update the area then simply unlock it via an out operation after the update or issue an unlock if not updating.

If for some reason this is not viable perhaps explain what you are trying to do and we can perhaps suggest an alternative solution.


Jon P.

On Feb 21, 2023, at 12:14 PM, Gavin Inman<midrangelist@xxxxxxxxxxxxxx> wrote:

One for the group

I have a RPGLE Free form definition of the following *DTAARA.

DCL-DS userdft DTAARA(*AUTO:*USRCTL:'WEB/default');
Dftuser char(10);
END-DS;


First line in the program is:

in userdft;


an *EXCLRD lock is used and locking out other jobs. How can I get this to be a shared Read?


Thanks,

Gavin Inman.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email:MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:https://lists.midrange.com/mailman/listinfo/midrange-l
or email:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
athttps://archive.midrange.com/midrange-l.

Please contactsupport@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.



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.