NET/MASTER Network Control Language (NCL) Reference Manual

VALPROC1
Built-in Functions
106126 Tandem Computers Incorporated 4–99
VALPROC1 The VALPROC1 built-in function determines whether a supplied string is a valid
Guardian process name. If so, VALPROC1 returns 1; otherwise, it returns 0 (zero).
VALPROC1(
process-spec
)
process-spec
specifies the process name. The supplied process name must be formatted as
follows:
[ \
systemname
. ]$
processname
[ .#
qualifier1
[ .
qualifier2
] ]
In the preceding format,
systemname
and
qualifier1
can contain up to seven
characters,
processname
can contain up to five characters, and
qualifier2
can
contain up to eight characters. The first character of each component must be
alphabetic, and the remainder must be alphanumeric.
Considerations
If the system name is omitted, NCL uses the name of the local system.
process-spec
can contain up to 33 characters.
See also VALPROC2, which not only determines whether a supplied string is a
valid process name but also whether it exists in a specified system.
Examples
In the following example, 1 is returned:
&A = '\sys1.$tc31'
&RESULT = VALPROC1(&A)
In the following example, 1 is returned:
SAY VALPROC1($ngm)
In the following example, 0 (zero) is returned:
SAY VALPROC1(process)
In the following example, 1 is returned:
SAY VALPROC1($s.#default.default)