NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.LOCK.MSG
System Variables
106126 Tandem Computers Incorporated 5–53
&SYS.LOCK.MSG The &SYS.LOCK.MSG system variable contains the text of the existing lock message of
the existing request. The text stored in &SYS.LOCK.MSG can be up to 250 characters;
it is created by the TEXT operand of the LOCK verb. The current user ID, the name of
the base NCL procedure, and the time are appended to the text, if any.
&SYS.LOCK.MSG
Considerations
See also &SYS.FDBK and &SYS.RETCODE. &SYS.FDBK contains completion
information for selected NCL verbs. &SYS.RETCODE contains a return code set
by the system or by a user.
See the LOCK verb in Section 3, “Verbs.”
Example
In the following example, the procedure named LOCKIT locks a resource called
ME_UP and then releases it. The procedure then displays &SYS.LOCK.MSG, which
contains the message FREE AT LAST:
LOCKIT: PROCEDURE
/* apply the lock */
LOCK PNAME=ME_UP TEXT="FREE AT LAST"
/* release the lock */
LOCK PNAME=ME_UP TYPE=FREE
&B =&SYS.LOCK.MSG
SAY "THE TEXT OF THE CURRENT LOCK MESSAGE WAS " &B
END LOCKIT