|
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.it via an out operation after the update or issue an unlock if not updating.
But why would you want to?
If you want a lock so that you can update the area then simply unlock
If for some reason this is not viable perhaps explain what you aretrying to do and we can perhaps suggest an alternative solution.
wrote:
Jon P.
On Feb 21, 2023, at 12:14 PM, Gavin Inman<midrangelist@xxxxxxxxxxxxxx>
this to be a shared Read?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
list
Thanks,
Gavin Inman.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
related questions.To post a messageemail:MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:https://lists.midrange.com/mailman/listinfo/midrange-l
oremail:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
athttps://archive.midrange.com/midrange-l.
Pleasecontactsupport@xxxxxxxxxxxxxxxxxxxx for any subscription
--
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 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.