
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 183 -
6.5.3 Macro Variable Input/Output Functions
Macro variable data input G337
- Format
G337 Pp Qq R99 ;
P: Read variable number (effective when variable number "N" is
not specified)
Q: Number of read variables (optional)
R: Continuous reading specification (optional)
- Explanation
This code sets the macro variable data received from a line opened in
reception control mode into the macro variable having a specified
number.
The tape format of macro variable data is as follows:
LF N
P
LF P
LF %
Leading portion
Start of input
Variable
number
Variable data Variable data
Tape end
Any information that may precede the first appearance of "LF" on the
tape is ignored. The information ranging from the first "LF" to the
tape end ("%") is regarded to be significant.
In significant information, the section delimited by two "LFs" is
called a block. A single block contains the data for a single macro
variable. In a block, address "N" indicates the variable number, and
address "P" indicates variable data.
Address "N" is optional. When it is omitted, the variable number is
assumed to be the variable number in the immediately preceding
block plus 1.
When "N" is omitted in the first block, the variable number specified
for address "P" with G337 is assumed. This makes it possible to
prepare a tape without address "N" and store the data in any desired
macro variable using "G337 Pp."
Address "P" on the tape indicates the value of the variable, and cannot
be omitted. If the value is null (#0), "P" must be followed by "LF"
without specifying the numeric value, as shown below.
LF N PLF
NOTE
1 G337 is a one-shot code.
2 In a significant information section, any codes other
than "LF," tape end "%," addresses "N" and "P," and
subsequent numeric data are ignored.