SYS(2011) - Current Lock Status
Returns the record or table lock status for the current work area.
SYS(2011)
Return Value
Character
Remarks
Unlike the FLOCK( ), LOCK( ), and RLOCK( ) functions, SYS(2011) doesn't attempt to lock the table or record.
The character string returned by SYS(2011) is identical to the message displayed in the status bar (Exclusive, Record Unlocked, Record Locked ...).
SYS(2011) returns Exclusive only in the data session that opened the table exclusively, and Record Locked only in the data session that applied the record lock.