Code Error Message
90
10 0 EXCEEDED MAXIMUM
RECORD LENGTH
11 0 INVALID DATA TYPE
Description and/or User's Response
This return code is only a warning;
an empty vector was read from tape,
but the empty vector is not the
end-of-file empty vector.
This error was probably caused by
the tape being removed before the
file was closed. The remaining data
in the file cannot be read.
The wrong type of data was used;
for example, noncharacter data was
sent to an interchange file, non-
character data was used as the in-
formation required to open a file,
or noncharacter data was sent to
the printer.
AN EXAMPLE USING TAPE AND PRINTER INPUT/OUTPUT
In this example, file number 11 on tape unit 1 will be used as a data file. First,
a variable name must be established to be shared and the data file opened so that
data can be written to the file (OUT operation):
File 11 is an unused file.
I---
0 :1 s.
2
O (I O ') Establish a variable name
1. I::lsUu ' SI-IARE: 'Wt0 be shared.
N- Open the data file.
Check the return code
that was assigned to
the shared variable.
!;HAl?Ec' C1I.J.T' I.(l:lS. :lXl:::( l:NV%3!'T'C)ilY 3 '
s 1-1 A
I? E: --
0 0 'The file was opened
successfully .
166
,
i.
Now, as data is assigned to the shared variable, it is transferred (written) to the
data file:
If more data is to be added to an existing data file but the file is closed, a vari-
able name must be established to be shared and the data file opened again:
Mote: In this example, the variable name SHARE has not been retracted and can
still be shared.
These records are added
following the existing
records in the file.
'' '
Since no more data is to be written on tape, the shared variable should now be
retracted:
I] s v I? ' s 1.i A
RE '
2
167
Previous Page Next Page