NET/MASTER Network Control Language (NCL) Reference Manual
MASKCHK
Built-in Functions
106126 Tandem Computers Incorporated 4–53
MASKCHK The MASKCHK built-in function tests a string against a mask.
MASKCHK(
mask
,
data
[,
wildcard
] )
mask
specifies the selection mask. If the last character in
mask
is a wild card, any data
strings that match the mask, whether they are longer or shorter, return one of the
equal results listed later. Testing of the mask against the string is performed on a
character-by-character basis, from left to right. If you use any arithmetic operator
as the mask character, the character must be enclosed in quotes or must be
expressed as a variable. See “Considerations” for a definition of a mask.
On completion of the test against the mask, the result can be one of the following
values:
EQ
indicates the data matches
mask
exactly.
EQL
indicates the data matches
mask
. However, the data is longer than
mask
;
mask
contains a wild-card character as its last character.
EQS
indicates the data matches
mask
. However, the data is shorter than
mask
;
mask
contains a wild-card character as its last character.
NE
indicates the data does not match
mask
.
data
specifies the data string to be matched.
wildcard
specifies the character to be used as the wild-card character. If omitted, any
asterisk (*) in the mask is treated as a wild card.