
B–62093E–1/02
6. FUNCTIONS OF THE MACRO
EXECUTOR
PROGRAMMING
71
The conversational macro can input and output a macro variable via the
reader/punch interface. This function can be extended so that two or more
variable groups can be output at a time and the output data can be read into
another variable.
(1) Outputting macro variables
By adding address R to G338 described in (2) of Section 6.4.3, the
tape format of the variable data to be output can be controlled.
(Command format)
G338 Pp Qq Ff Zz Rr;
-------------
R0 : Standard format (Same as when R is not specified)
R1 : Variable numbers are not output.
R10 : At the end of the tape, % (EOR) is not output.
R11 : Variable numbers are not output. At the end of the tape,
% (EOR) is not output.
R20 : At the beginning of the tape, % (EOR) is not output.
R21 : Variable numbers are not output. At the beginning of the
tape, % (EOR) is not output.
R30 : At the beginning and end of the tape, % (EOR) is not
output.
R31 : Variable numbers are not output. At the beginning and
end of the tape, % (EOR) is not output.
(a) When variable numbers are not output, the function for inputting
a macro variable (G337) can read the output variable data into a
variable indicated by address P.
(b) When % (EOR) is not output at the beginning and/or end of a tape,
two or more variable groups can be output to form a single tape
format.
(Example)
G330 Pp Bb ... ;
G338 P10000 Q10 F8.3 Z1
R11;⇒
IF[#8539NE0]GOTO999;
At the beginning, % (EOR)
is output. Then the data of
#10000 to #10009 is output
without variable numbers.
At the end, % (EOR) is not
output.
G338 P11000 Q20 F8.3 Z1
R31;⇒
IF[#8539NE0]GOTO999;
At the beginning and end, %
(EOR) is not output. The
data follows the data output
above to form a single tape
format.
G338 P12000 Q10 F8.3 Z1
R21;⇒
IF[#8539NE0]GOTO999;
G331;
At the end, % (EOR) is out-
put. The tape format is
closed.
6.4.4
Extending the Function
for Inputting and
Outputting a Macro
Variable