NET/MASTER Network Control Language (NCL) Reference Manual

GOSUB
Core Statements
106126 Tandem Computers Incorporated 2–25
You can use the LIMIT keyword to stop an unsuccessful search from reaching the
end of a procedure or function, or from wrapping around to the beginning of a
procedure or function. This stops a search from finding a label with the same
name as the target label elsewhere in the procedure or function. If you specify the
LIMIT keyword,
limit-expr
must be either a constant or an expression that
equates to a constant.
If no label in the NCL procedure matches the value of
limit-expr
, a compilation
error results.
MATCH
specifies the comparison to be performed between the label being searched for and
the statement labels. By default, NCL expects an exact match, both in length and
in value. MATCH has the following qualifiers:
Note In the following comparisons, the collating sequence for sorting ASCII characters is used. In general,
numerals sort before uppercase letters, which sort before lowercase letters.
EQ
specifies that the target label is the first label found that is matched by a subset
of initial letters of the supplied label. This is sometimes referred to as generic
equality. For generic equality, NCL considers labels equal though they differ
in length.
GE
specifies that the target label is the first label found with a value that is greater
than or equal to the supplied label.
GT
specifies that the target label is the first label found with a value that is greater
than the supplied label.
LE
specifies that the target label is the first label found with a value that is less
than or equal to the supplied label.
LT
specifies that the target label is the first label found with a value that is less
than the supplied label.
NE
specifies that the target label is the first label found that is not matched by a
subset of the initial letters of the supplied label. See EQ.