NET/MASTER Network Control Language (NCL) Reference Manual
Variable Lists Beginning With VARS
Verb Syntax and Variable Access Methods
11–14 106126 Tandem Computers Incorporated
Only Second Range Specified
The following
ranged-variable-specification
specifies only the second range:
&[
variable
] *
and
RANGE (
start2
,
end2
)
In this case, NCL generates or targets variable names that satisfy the second range.
Here are some examples:
What You Type Comment
DROP VARS &* RANGE=(5,6) Deletes &5 and &6.
DROP VARS=&A* RANGE=(10,15) Deletes &A10 through &A15.
Both Ranges Specified
The following
ranged-variable-specification
specifies both the first and
second range.
&[
variable
] * (
start1
,
end1
)
and
RANGE [ = ] (
start2
,
end2
)
In this case, NCL generates or targets variable names that satisfy the first range, if a
first range is provided. If a first range is not provided, it uses the second range. Here
are some examples:
What You Type Comment
INTREAD VARS (&A*(5,10),&B*)
RANGE=(20,30)
Generates &A5 through &A10 and &B20 through
&B30.
LOGREAD VARS=(&A*,&B*(1,10))
RANGE=(5,8)
Generates &A5 through &A8 and &B1 through
&B10.
Specifying Variable Length You can specify a variable name and indicate the maximum amount of data (in bytes)
that it can hold in a VARS list. This option affects how the data is stored in the
variables in the VARS list. Here is the component of the VARS list that you use to
specify a
length-variable-specification
:
&[
variable
] (
length
)