NET/MASTER Network Control Language (NCL) Reference Manual

LOGREAD
Verbs
3–126 106126 Tandem Computers Incorporated
See EMSREAD, INTREAD, and MSGREAD, which also automatically create MDO
variables mapped by $MSG. For more information on MDO variables, refer to the
NonStop NET/MASTER NCL Programmer's Guide.
For more information on the LOGREAD verb, refer to the NonStop NET/MASTER
NCL Programmer's Guide, which also contains examples of the use of the
LOGREAD verb.
Examples
The following example waits for the next log message to arrive and then splits it into
variables &20 through &80. The &SYS.VARCNT system variable is set to indicate how
many variables were created. Any excess variables are given no value—they are set to
the null string:
LOGREAD ARGS RANGE=(20,80)
The following example waits for the next log message, then splits the message into
individual words. *(3) specifies that the first three words are ignored; two characters
of the fourth word are placed in the variable &A; three characters of the next word are
placed in the variable &B; and the next four words are placed in variables &C, &D, &E,
and &F respectively:
LOGREAD VARS=(*(3),&A(2),&B(3),&C,&D,&E,&F)
The following example waits for the next log message, then splits it and places the text
into a series of automatically generated variables of the form ABC1, ABC2, and so on.
As many variables as required are generated, to the limit specified by the RANGE
operand—in this case, from 1 through 50:
LOGREAD VARS=&ABC* RANGE=(1,50)