Chapter Contents |
Previous |
Next |
LOCK |
Category: | SAS Table |
Syntax | |
Details | |
Example |
Syntax |
sysrc=LOCK(member<,action>); |
0 | successful |
>0 | not successful |
<0 | the operation was completed, but a warning or a note was generated. |
Type: Character
'CLEAR'
'LOCK'
'QUERY'
Type: Character
Details |
If action is not provided, the action defaults to LOCK.
Example |
Lock the data library that is associated with a libref of A, unlock data view LIB.A, and lock LIB.A.B.PROGRAM. Then, query the lock state of the FOO.ONE table:
rc=lock('a'); rc=lock('lib.a.view','clear'); rc=lock('lib.a.b.program'); rc=lock('foo.one.data','query'); if (rc=%sysrc(_SWLKUSR)) then _msg_='Table foo.one is currently locked.';
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.