NET/MASTER Network Control Language (NCL) Reference Manual

REMSTR
Built-in Functions
4–70 106126 Tandem Computers Incorporated
REMSTR The REMSTR built-in function splits a string at a specific character and returns the
data after that character. If the character is not found, a null string is returned.
REMSTR(
char
,
string
)
char
specifies the character for which NCL searches and after which
string
is to be
split. An error is issued if you specify
char
longer than one character.
string
specifies the string to be searched. The search begins at the leftmost character in
the string.
Consideration
See also SELSTR, which extracts the leading portion of a string up to a specified
character.
Example
In the following example, the string “X.YY.ZZZ” is searched for the period (.). The
output string is “YY.ZZZ”:
&A = .
&B = X.YY.ZZZ
&RESULT = REMSTR(&A,&B)