+ Reply to Thread
Results 1 to 3 of 3

Thread: Viewing job/record locks

  1. #1
    Guest.Visitor Guest

    Default Viewing job/record locks

    HELP: Has anyone out there written a utility or aware of some available code that allows a locked-out user to view who/what job is locking the record for which they're waiting? Ideally, I'd like to pass in a user name or job number, and have it respond with the name of the user who has the lock.

  2. #2
    Guest.Visitor Guest

    Default Viewing job/record locks

    If you are doing this in RPG, when you chain to a file specified as update, use the (e) extender on the chain opcode. If there is an error on the chain, your record is probably locked, then look in the program status data structure positions 91-170 for the error message. From there you should be able to parse out the user and job number.

  3. #3
    Guest.Visitor Guest

    Default Viewing job/record locks

    Thanks for the response. Unfortunately, I'm finding that because are files are set at *NOMAX for the record wait parameter on the files, the RPG chain sits there and waits for the record to be released. I can't change the record-wait on the files, because that would put our programs at risk - I don't think they'd properly handle a failure to retrieve the record.

+ Reply to Thread

Similar Threads

  1. Record Locks
    By K.Forsythe in forum CL
    Replies: 2
    Last Post: 06-08-2006, 10:28 AM
  2. record locks
    By K.Forsythe in forum General
    Replies: 2
    Last Post: 08-17-2004, 06:54 AM
  3. Record Locks
    By B.Morris in forum RPG
    Replies: 2
    Last Post: 08-29-2003, 06:02 AM
  4. Record locks - Need help!
    By Guest.Visitor in forum IBM i (OS/400, i5/OS)
    Replies: 3
    Last Post: 02-22-2002, 10:20 AM
  5. SQL Record Locks
    By Guest.Visitor in forum Application Software
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts