SYSLCKRC Automatic Macro Variable

Contains the return code from the most recent LOCK statement.
Type: Automatic macro variable (read and write)

Details

The LOCK statement is a Base SAS software statement used to acquire and release an exclusive lock on data objects in data libraries accessed through SAS/SHARE software. The following are values for SYSLCKRC:
LCKRC Values and Descriptions
Value
Description
0
The last LOCK statement was successful.
>0
The last LOCK statement was not successful.
<0
The last LOCK statement was completed, but a WARNING or NOTE was written to the SAS log.
For more information, see the documentation for SAS/SHARE software.