System table:
Object lock, yes. Record lock, not really.
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzajq/rzajqviewobjlockinfo.htm

Retrieve Record Locks (QDBRRCDL) API

Retrieve Job Record Locks (QDBRJBRL) API

For RPG see also:
File Exception/Errors
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/rzasd/filexpe.htm?view=kc#filexpe
I'm a little busy right now but I thought there was some data structure or
some such thing which would return who had the record locked. Maybe one
has to look at the messages in the program stack to see that. Or
something like

If you do find there is something detailed in the joblog you may want to
look at
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/rzajq/rzajqudfjobloginfo.htm


Rob Berendt

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.