NET/MASTER Network Control Language (NCL) Reference Manual
LOCK
Verbs
3–116 106126 Tandem Computers Incorporated
TEXT=
text
contains a maximum of 250 characters of free-form text. The value of the text is
returned in the &SYS.LOCK.MSG system variable (and the
VARS=
variable-name
operand) for certain LOCK operations. The LOCK
operations affected are listed in the considerations for this verb. If no text is
supplied in the LOCK verb, the current user ID, suffixed by the name of the base
NCL procedure and by the time, is appended. The text assigned to the request
may be formed of text or variables, or a mixture of both.
Note text must be enclosed in quotes if it contains any keywords.
TYPE
defines the type of lock operation to be performed.
EXCL
specifies a request to obtain exclusive control of the resource identified by the
PNAME (primaryname) and optional MNAME (minorname) operands.
FREE
releases shared or exclusive access to the supplied resource for this NCL
process.
SHR
specifies a request for shared access to the supplied resource.
TEST
specifies a test to determine if the supplied resource is already the subject of a
LOCK operation in this, or another, NCL procedure.
VARS=
variable-name
specifies the name of a single variable that holds the text of the existing lock for
this execution of the LOCK verb.
WAIT
specifies what NCL does if the resource cannot be immediately granted.
NO
specifies that the request for shared or exclusive control is to complete
immediately, if access to the supplied resource cannot be obtained. NCL
returns immediately to the requesting process.