How one can find out what is causing a lock you should do the following:
1) Before your job place 5
2) Choose option 12
3) You will see a list of all objects used by you
4) If there are any objects showing member locks “YES”
5) Type 8 in front and find out which file is being locked by whom.
6) Contact the owner of the file that’s causing the lock if present to find out more or if it’s a job that runs daily there is no other option then to wait until that file has been released.
If this answers your question then it’s O.K.
The lock is under your profile
DSPUSRJOBs – if you have any batch jobs running they maybe creating the lock
Signoff interactive jobs to release the locks.
The program that you are running isn’t closing the file or setting *INLR on
The establishment of the lock might have come from calling a program that created an activation group that hasn’t been reclaimed — regardless of *INLR on or off.
<pre>DSPJOB OPTION( *ACTGRP )</pre>
Or take option 18 from the DSPJOB menu. You might be able to RCLACTGRP for ones that you know can be reclaimed.
A more intense option is to try RCLRSC if you can’t see any activation groups that might be an issue.
Have the file opens and closes journaled for a while if you’d like to track down whatever might be involved.