To Add Data To An Existing Data File - IBM 5110 User Manual

Apl
Table of Contents

Advertisement

When all of the data is written to the data file, the operation must be
terminated. The operation can be terminated by assigning an empty
vector to the shared variable. For example:
sv~
.. \
0 •
Empty vector
SV
o o·
The operation is terminated. The variable
SV is still shared with the I/O processor.
Therefore, SV can be used to specify and
perform another input/output operation.
See the IBM 5110 APL Reference Manual for a description of other
ways to terminate the operation.
To Add Data to an Existing Data File
There will be times when you want to add data to an existing data file.
If you specify an OUT or OUTF operation, the data you write to the
file always starts at the beginning of the file and the new data is
written over any existing data. Therefore, to add data to a data file
starting after the last record in the file, you must specify the operation
to be performed as follows:
SV
+--
'ADD [device/file number] [10
=
(file 10)] [MSG
=
OFF]
I
For example:
o ()
SV~
..
IA[lD
:I.:I.OO~~
SV
1[1:::: (SALES) MSG::::()FF ·
1
t
Do not display the error messages.
The file identification of the existing data file.
The data file is on diskette drive1, file 3.
Add data starting after the last record in the data file.
Even though the device/file number and ID
=
(file ID) parameters are
optional, one or the other of these parameters must always be
specified.
Input/Output Control
121

Advertisement

Table of Contents
loading

Table of Contents