Determining Object Lock Status

0 pts.
Tags:
i5
iSeries
OS/400
One of our applications obtains exclusive locks on user-specific data areas. The application is being changed to use shared read locks instead. The problem is that a separate application was reading through a list of these data areas and counting which ones it was unable to obtain its own exclusive lock for in order to count the number of users on the application. WRKOBJLCK only outputs to paper (and I don't want to start working with temporary spool files) and I can't seem to find an API that will give me a list of objects and lock states. Did I miss one or will have to use WRKOBJLCK (ugly but doable)?
ASKED: January 13, 2005  1:25 PM
UPDATED: January 18, 2005  3:25 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Kludgy perhaps but could your application try to obtain the lock itself and monitor for a failure message, output to a file at that time?

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TheQuigs
    Here's an API (from the Information Center): List Object Locks (QWCLOBJL) generates a list of locks for an object or database file member. An object-level or member-level lock may be specified.
    0 pointsBadges:
    report
  • Pcurtis
    WRKOBJLCK is used to determine what is locking an object. Using * in the output parameter will display the lock on screen.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following