Listing locks held for a file

To diagnose possible problems with conflicting locks, z/OS operators can issue a listlock command that displays all client programs and users which hold a lock on a file. The output messages include client and user id, the lock ranges held, and lock status. The listlock command can be used for MVS data sets, PDS or PDSE members, or z/OS UNIX files. For more information, see Listlock operand.

You can use the listlock command to find locking information in cases where a lock is unavailable and the blocker is managed by another NFS server address space running on the z/OS system. To determine the identity of the blocker in this case, the listlock command should be issued on the system which owns the lock.

The listlock command also lists file delegations. For more information, see Delegating management of a file's resources to an NFS client.