+1 - this is the answer. If you can use this SQL service use it. For completeness and in case anyone reading this later need to get locks at the object level, here is the CL we use that returns the first lock on an object. Not sure where this came from, but it's obvious no one in our shop wrote it.
https://code.midrange.com/9f5d5863bf.html
On Wed, 2021-06-09 at 09:48 -0500, Brian Johnson wrote:
RECORD_LOCK_INFO view
<
https://www.ibm.com/docs/en/i/7.2?topic=services-record-lock-info-view>
https://www.ibm.com/docs/en/i/7.2?topic=services-record-lock-info-view
On Wed, Jun 9, 2021 at 8:46 AM Alan Cassidy <
<mailto:cfuture@xxxxxxxxxxx>
cfuture@xxxxxxxxxxx
wrote:
Just need a confirmation.
I have a job that may on occasion get a record lock error in a very
heavily used interactive program that is used to make appointments with
customers, constantly hitting on a certain file.
I found the API "QDBRJBRL" and wanted to confirm that will give me the
qualified job-IDs(at least) for the job that has the record lock on the
record "my job" is trying to read.
An alternative would be an SQL file statement that would return that
information. (I prefer that actually).
Thanks, Alan
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email:
<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
<
https://lists.midrange.com/mailman/listinfo/midrange-l>
https://lists.midrange.com/mailman/listinfo/midrange-l
or email:
<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
<
https://archive.midrange.com/midrange-l>
https://archive.midrange.com/midrange-l
.
Please contact
<mailto:support@xxxxxxxxxxxxxxxxxxxx>
support@xxxxxxxxxxxxxxxxxxxx
for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
<
https://amazon.midrange.com>
https://amazon.midrange.com
--
Brian Johnson
<mailto:brian.johnson.mn@xxxxxxxxx>
brian.johnson.mn@xxxxxxxxx
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.