Like I said before, I'd approach this from the side of the waiting jobs not the locked jobs.
That being said, I guess you could use the Db2 Service to log record locks every second and watch for the same row being locked by the same job for >=2 seconds. I don't imagine that would perform well however.
-----Original Message-----
From: Matt Olson [mailto:Matt.Olson@xxxxxxxx]
Sent: Friday, June 28, 2019 12:14 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: Finding offending RPG program causing locks on files
As a follow up to this, I think what I want is a way to get emailed immediately when an exclusive lock is maintained on a file for ever 2 seconds.
I think it would be easy to find some of the offending RPG programs that way.
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.