The GETLOCKS() function returns information about file and record locks.
The GETLOCKS() function returns a string where field 1 contains three values:
1 NUMLOCKS configuration parameter value
2 Current record lock count
3 Peak number of record locks
and the remaining fields each describe a record or file lock as seven values:
1 Internal file number
3 User number
4 Lock type
5 Record id, null for a file lock
6 User name of lock owner
7 Time lock was acquired as an epoch value
The lock type code is
LOCK.INFO = GETLOCKS(0, 0)
This statement returns lock information for all files and all users.