You could try Carsten Flensburg's DSPIFSLCK program. This is an old
link, hope it still wroks -- if not, try Google.
http://systeminetwork.com/article/club-tech-iseries-programming-tips-newsletter-43
http://www2.systeminetwork.com/noderesources/code/clubtechcode/DspIfsLck.zip
On 1/30/2013 8:06 AM, Gary Thompson wrote:
After a problem that prevented a file on our IFS from
being processed by an in-house app, we have been
looking at a better way to detect what we think was
the cause: a lock on the IFS file held by a windows app.
I don't see that System i Navigator shows locks ?
So far, this is what I have found as a way to get a list
of locks:
CALL QP0FPTOS PARM(*LSTOBJREF '/ifspath/ifsfile' *FORMAT2)
Apparently, this API returns a spool/print file as output,
but ideally I would like to detect this using the QP0L_SUBTREE
API - is this possible ?.
Or, because this involves a mapped drive, maybe I should look
at this from a Network File System perspective ?