instruction is issued for the file.
calling program, all open files are closed by
close files at the end of a program.
For a minidisk in 1K-, 2K-, or 4K-byte block format, a file may be
open for concurrent read and write operations, and an
be issued when switching from reading to writing, or vice versa. For
example:
LA 3,2
READ F3READ
BREAD
an
instruction to close the file whenever you switch from reading to
writing. For example:
BREAD
a file. Because the directory is not updated until the file is closed,
the
whatever changes were made should you unexpectedly be logqed off the
system before closing the file.
To execute a loop to read, update, and rewrite records, you must read
a record, close the file, write a record, close the file, and so on.
the file and the write pointer at the end of the file, you must specify
the relative record number
the above example, register 3 is used to contain the relative record
number. It is initialized to begin reading with the second record in
the file and is increased by one following each write operation.
the file is not closed by
Therefore, if you read or write the same file more than once during the
248