Put; Reset - Epson TF-20 Reference Manual

Hx-20 disk basic
Hide thumbs Also See for TF-20:
Table of Contents

Advertisement

To write one record from the random file buffer into the
random disk file.
PUT [#] <file No.> [,<record No.>]

PUT# 1, 3

<file No.> is the number specified in the OPEN statement
when the file was opened.
If <record No.> is specified, the data will be written into that
record. If it is omitted, the record immediately following the
record used in the most recent GET or PUT statement will be
written to. <record No.> must be in the range of 1 to 32767.
If it is not, a "Bad record number", "0V" or "FC" error will
occur.
The file against which the PUT statement is executed must
have been opened in the random mode.
(See GET. FIELD and OPEN)
4-24
To enable the replacement of a disk.
RESET [<drive name>]
RESET "C:"
The disk system (OS) of the TF-20 protects disks against data
loss caused by careless replacement procedures by auto-
matically write protecting disks when they are inserted. Any
attempt to write on such a disk will result in a "Disk write
protected" error. To reset the system and cancel this
protection, a RESET statement must be executed after a disk
has been replaced. <drive name> can be "A:", "B:", "C:"
or "D:". ("C:" and "D:" can only be specified if a second
TF-20 is connected.)
If "A:" or "B:" are specified, the first TF-20 is reset and the
disks set in either drive can be replaced. In the same way, if
"C:" or "D:" is specified, the second TF-20 will be reset,
allowing you to replace either of the disks set in that unit. If
<drive name> is omitted, "A:" is assumed.
Removing a disk from the drive while there are files still open
for output is not recommended as you risk losing the data on
the disk. Also, as the RESET statement initializes the
system, the contents of any files open when RESET is
executed will be lost. Therefore, always execute a CLOSE
statement before a RESET to make sure that all open files
are closed.
When executing a RESET statement for "A:" and "B:", a
disk must be set in drive A. In the same way, when
executing a RESET statement for "C:" and "D:", a disk must
be set in drive B. If there is not, a DU error will occur.
4-25

Advertisement

Table of Contents
loading

Table of Contents