For this issue, Carsten has come up with a cool new command that helps debug active jobs by examining the locks held by the job for IFS objects.
The DSPJOBIFSL command returns a list (either display or print) of the specified job’s current IFS object locks. The utility uses the QP0LRRO (Retrieve Object References) API that was introduced in V5R3. Therefore, the utility will not run successfully on earlier releases.
Download the save file containing the source code.