Problem solve Get help with specific problems with your technologies, process and projects.

What file is the job waiting on?

This tip teaches you how can you tell what job has the lock on the file needed by the job in question so you can take action.

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.


Dig Deeper on iSeries CL programming

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close