GETLOCKS() |
|
|
The GETLOCKS() function returns information about file and record locks.
Format
GETLOCKS(file, user)
where
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 2 Pathname 3 User number 4 Lock type as below 5 Record id, null for a file lock 6 User name of lock owner 7 Time as an epoch value when the lock was acquired or a blocked process started waiting
The lock type code is:
Example
LOCK.INFO = GETLOCKS(0, 0)
This statement returns lock information for all files and all users. |