Do you ever have a batch or interactive job go to a status of LCKW on the WRKACTJOB screen (and the user's session mysteriously "locks up" in a "deadly embrace")? How can you tell what job has the lock on the file needed by the job in question so you can take action?
Locate the job in LCKW status on WRKACTJOB and place a 5 (Work with) beside it. Then select option 12 (Work with locks, if active) and look for the file with a status of REQ and member locks of YES. Place an 8 (Work with object locks) beside the file name and you can easily identify the job/user which has the file locked because it will show a status of HELD.
Now that you know the file which is locked and who has it locked, a simple phone call asking the user to complete their file update (instead of leaving the record up on the screen in a "maintenance" mode) will usually resolve the problem.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.