NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.USER.LC
System Variables
5–104 106126 Tandem Computers Incorporated
&SYS.USER.LC The &SYS.USER.LC system variable contains the language code for this user.
NonStop NET/MASTER MS supports the specification of a language code for a user.
This code can be used to provide language-dependent processing from NCL. Such
processing includes variation of spelling, of error messages, or of help panels for a
particular user.
For example, if the PANELRC operand of the CONTROL verb is used, and there is an
error in a panel, NCL places an error message in the &SYSMSG variable. By default,
such system messages are in American English. The contents of &SYS.USER.LC can
then facilitate translation of this message.
&SYS.USER.LC
Considerations
The system administrator is responsible for setting the code for the language that
is current for the system. It is a two-character field that must be entered in the
User ID Management Services (UMS) definition record. Choose characters that
can easily be interpreted; for example, US for American English, FR for French,
and so on. NCL performs no validation on this code.
See also &SYSMSG, which contains an error message set by NCL panel services
and/or NCL file processing.
See also the CONTROL verb in Section 3, “Verbs.”
Example
The following example shows a procedure named SAY_IT that displays a panel called
“HELPUS” only if the language code is “US”:
SAY_IT: PROCEDURE
IF &SYS.USER.LC /= US THEN
GOTO NOTUS
&A = &SYS.USER.LC
PANEL NAME = HELP&A
EXIT
NOTUS: SAY "NO SUCH PANEL"
END SAY_IT