Some process fails trying to update an IFS object that is not available. We need to see what job is holding the object lock, but there is no equivalent to the WRKOBJLCK command for IFS files. This article tells how to use the QP0FPTOS API to find locks for IFS files.
Zend Server for IBM i 9.1.x and higher (for Zend Server 6 - 8.5.x please replace all instances of zendphp7 wiith zendsvr6)
To find any locks on an IFS object, please run the following 5250 command with QSECOFR or any profile with *SERVICE special authority:
Please substitute the actual path for the file you are interested in. This command will produce a spool file that will tell any locks held for the file.
For example, when it is running, the ZENDSVR6 Apache instance will have several jobs holding locks on file /usr/local/zendsvr6/bin/php-cgi.bin, the PHP engine. You can see these locks by running this command:
After the command runs, you will see this message:
Here are partial contents of the spool file output:
And so on. You see a summary of the locks, then a listing for each job.