IBM 5100 Basic Reference Manual page 78

Hide thumbs Also See for 5100:
Table of Contents

Advertisement

74
Notes AtJout GET
• A file currently activated
as
an output file cannot
be
specified in
a
GET state-
ment. It must first be closed, then reopened (in an OPEN statement as an input
file).
• Each value assigned in a GET statement must be of the same data type (arith-
meticor character) as the corresponding variable.
• A GET statement referencing a currently closed file causes program execution to
be terminated.
Exampfe
A sample GET statement is as shown:
0090 GET FL4, X, V, Z, 114.(4), A(5), 0$, EOF 620
Inthis example, the values in file FL4 are assigned, respectively, to variables X. V, Z,
the fourth and fifth elements of array A, and the character variable 0$. On end
of file. the program branches to statement number 620 and closes FL4.

Advertisement

Table of Contents
loading

Table of Contents