(GETVAL('GetLockType','tableviewname'))
GetLockType is the first required parameter and the table/view name is the name of the table or view. Use this function to find the lock type of a table or view. The returning value may be one of the following: None, Local, Remote, Cursor, Row
Example:
SET VAR vCheckLockType TEXT = (GETVAL('GetLockType','Customer'))
vCheckLockType may return the value of "Cursor" for the Customer table if a DECLARE CURSOR lock is on the table.