NET/MASTER Network Control Language (NCL) Reference Manual
NAMTONOD
Built-in Functions
106126 Tandem Computers Incorporated 4–57
NAMTONOD The NAMTONOD built-in function converts a system name to its corresponding
system number.
NAMTONOD(
system-name
)
system-name
specifies the alphanumeric name of the system.
Considerations
If
system-name
is not known, or if the system is inoperative, the number 255 is
returned.
system-name
must begin with a backslash (\). The name following the
backslash must begin with an alphabetic character and can be followed by up to
seven alphanumeric characters.
See also NODTONAM, which converts a system number to its corresponding
system name.
Examples
In the following example, the number 250 is returned:
&A = "\SYS1"
&RESULT = NAMTONOD(&A)
In the following example, the number 248 is returned:
SAY NAMTONOD("\SDI")
In the following example, the number 251 is returned:
SAY NAMTONOD('\TEST')
Notice that in the preceding examples we have avoided the interpretation of the
backslash as a logical NOT operator by enclosing the system name in quotes.