Overview of the LOCK Statement and the LOCK Command

The LOCK statement and the LOCK command enable you to acquire, list, or release locks on SAS data objects, which include SAS libraries, SAS data sets, SAS catalogs, and SAS catalog entries.
Note: If you want to lock a SAS library or any object in it by using the LOCK statement, you must first access the library through a SAS/SHARE server.
Using a LOCK statement to lock a data object prevents other users from reading or writing to that data object. However, you can open a locked data object as many times as you want to and in any mode (for example, create, update, replace, or read) if your PROC or DATA step does not conflict with what is allowed by the engine that was used by the SAS/SHARE server to access the data object.
For more information about locking, see Locking SAS Data Objects.