
6.MACRO EXECUTOR FUNCTION B-63943EN-2/01
- 184 -
By using address Q, the number of variables to be read can be
specified. When the specified number of variables have been read, a
completion code (#8539) of 199 is set, notifying that continuous
reading is possible. If the tape end "%" is read before the specified
number of variables are read, a completion code (#8539) of 0 is set.
When address Q is omitted, an infinite number of variables is
assumed.
When the number of variables to be read is specified and a
completion code (#8539) of 199 is set, the subsequent macro variable
data can be read by specifying R99.
When continuous reading R99 is not specified, the data for the next
variable will be lost because of the significant information check
(discarding of the data up to the first ":(LF).")
EXAMPLE
Input of macro variable data
To read the following data in which macro variable
number address "N" is omitted, enter the following:
G330 Pp Bp ..... ;
G337 P100 Q10 ; The data for the first 10 variables is
IF [#8539 NE 99] GOTO 888 ; stored in variables #100 to #109.
(#8539=99 for normal processing)
G337 P15000 Q20 R99 ; The data for the next 20 variables is
IF [#8539 NE 0] GOTO 888 ; stored in variables #15000 to #15019.
(#8539=99 for normal processing)
G337 P16000 R99 ; The data for the remaining variables
IF [#8539 NE 0] GOTO 888 ; is stored in variable #16000 and
above.
G331 ; (#8539=0 for normal processing)
% LF P____ LF .... P____ LF P____ LF .... P____ LF P____ LF .... P____ LF %
Data for 10
variables
Data for 20
variables
Data for the
remaining variables