NET/MASTER Network Control Language (NCL) Reference Manual

Variable Lists Beginning With VARS
Verb Syntax and Variable Access Methods
106126 Tandem Computers Incorporated 11–15
There can be spaces between the variable specification and the opening parenthesis.
You cannot follow the variable specification with an asterisk (*) when you follow it by
(
length
).
The value of length can be a constant or an expression. Constants must be integers in
the range 1 through 32000. Expressions must resolve to integers in this range.
Here are some examples. (These examples assume PARSE=YES.)
What You Type Meaning
INTREAD VARS
(&A(10),&B(20),&C(30),&D,&E,&F)
Places 10 bytes of the first word read in &A,
20 bytes of the second in &B, 30 bytes of the
third in &C, and the next three words in &D,
&E, and &F respectively.
PAUSE VARS=(&NAME(15)) Places 15 bytes in &NAME, truncating it if
necessary.
Skipping Words If you are using a VARS list in a verb that reads a message, such as EMSREAD,
INTREAD, LOGREAD, or MSGREAD, and the PARSE=YES option is used, you can
use the skip option of the VARS list to skip a number of words.
skip
specifies the
number of words that are not to be stored into variables at this point. This VARS list
option is useful when assigning a sequence of words into variables, and some words
are not required. Here is the component of the VARS list that you use to skip a
number of words:
* [ (
skip
) ]
The value of
skip
can be a constant or an expression. If constant, it must be an integer
in the range 1 through 32000. If an expression, it must resolve to an integer in this
range.
An asterisk by itself is the same as *(1). Here are some examples:
What You Type Meaning
INTREAD
VARS=(*(3),&A(10),*(1),&B(20))
Skips the first three words, places
10 bytes of the fourth word read in
&A, skips the next word, and
places 20 bytes of the sixth word in
&B.
MSGREAD
VARS=(&NAME,*(2),&ADDRESS(20),*,&AGE)
Places the first word in &NAME,
skips the next two words, places 20
bytes of the fourth word in
&ADDRESS, skips the fifth word,
and places the sixth word in &AGE.