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



Using *AUTO makes it a data area data structure, which is automatically
read and locked at program initialization.

https://www.ibm.com/docs/en/i/7.4?topic=structures-data-area-data-structure

Vinay

On Tue, Feb 21, 2023 at 3:03 PM Vinay Gavankar <vinaygav@xxxxxxxxx> wrote:

Removing the *AUTO/*USRCTL keywords will not lock the data area.

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

Or define it as a variable

dcl-s userdft char(10) DTAARA('WEB/default');

Vinay

On Tue, Feb 21, 2023 at 2:56 PM Peter Dow <petercdow@xxxxxxxxx> wrote:

Jon,

Don't you have to specify *LOCK on the IN operation for a lock to occur?

Gavin,

Are you sure the lock is from your program? Does WRKOBJLCK show it's
your job/program locking the data area?

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx
pdow@xxxxxxxxxxxxxx

/
On 2/21/2023 9:26 AM, 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.

--
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
at https://archive.midrange.com/midrange-l.

Please contact support@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.