I am working with IFS objects and need to make sure that the IFS objects are not locked by any job so that I can use them. So, Is there any way to find the locks on the IFS objects?
Sorry, you do not have permission to ask a question, You must login to ask a question.
Sorry, you do not have permission to ask a question.
You can find any locks on an IFS object using the
QP0FPTOS
API. You can run this API from the command line withQSECOFR
or any profile with*SERVICE special authority
.CALL PGM(QP0FPTOS) PARM(*LSTOBJREF 'ifspathofObject' *FORMAT2)
This command will output a spool file that tells any locks held for the object. After the program runs you will see the message:
The dump request has completed
. The latest spooled fileQSYSPRT
with user dataQP0FDUMP
has the dump.