NET/MASTER Network Control Language (NCL) Reference Manual

Keywords With a Qualifier
Verb Syntax and Variable Access Methods
106126 Tandem Computers Incorporated 11–9
Two types of lists that contain only two items are:
Range lists. This type of list is used by many verbs as part of a ranged variable
specification in a VARS list. It is introduced with the RANGE keyword. It has a
start value (the beginning of the range) and an end value (the end of the range).
Range lists are discussed later in this section in “Variable Lists Beginning With
VARS.”
Option lists. This type of list is used by the PARSE verb. It is introduced with the
OPT keyword.
Here are some examples of verbs with lists:
ASSIGN VARS=&A* GENERIC
ASSIGN VARS=((A B C))
ASSIGN OPT=MAPNAME VARS(&B,&Z) FROM MDO=&MAP.
DROP VARS &TOTAL.*
LOGREAD VARS=(&A*,&B*(1,10)) RANGE=(5,8) PARSE=YES
FILE GET ID=TEST VARS=(&INPUT_LINE)
PAUSE VARS=(&A,&B,(GETVARS()))
PARSE ARGS OPT=(ASIS,NONULLS) DATA=&STRING
VARTABLE ADD,
ID=&IDNAME,
SCOPE=PROCESS,
KEY=&KEYNAME||&X,
FIELDS=(DATA1,D2,D3,D4,D5,D6),
VARS=(&V1,&V2,&V3,&V4,&V5,&V6)
VARTABLE GET,
ID=&IDNAME,
DELETE=YES,
OPT=NEWEST,
FIELDS=(DATA10, KEY),
VARS=(&D, &K)
VARTABLE QUERY,
ID=&IDNAME,
FIELDS=(AGE, DATA, DELOLD, KEYLEN, LIMIT, TOTAL, USERCORR),
VARS=(&AG, &DAT, &DELOL, &KEYLE, &LIMI, &TOTA, &USERCOR)