[next] [previous] [contents]

  19.1.4 Positioning a Tape
  The NOREWIND statement positions the tape for reading
  and writing as follows:

  .
        Specifying NOREWIND when you create a file posi-
        tions the tape at the logical end-of-tape and leaves the
        unit open for writing. If you omit NOREWIND, you
        start writing at the beginning of the tape (BOT), logically
        deleting all subsequent files.
  .
        Specifying NOREWIND when you open an existing file
        starts a search for the file at the current position. The
        search continues to the logical end-of-tape. If the record
        is not found, BASIC rewinds and continues the search
        until reaching the logical end-of-tape again. Omitting
        NOREWIND tells BASIC to rewind the tape and search
        for the file name until reaching the end-of-tape. In ei-
        ther case, you receive an error message if the file does not
        exist.

  For example, the following statement opens PAYROL.DAT
  after advancing the tape to the logical end-of-tape. If you
  omit NOREWIND, the file opens at the beginning of the tape,
  logically deleting all subsequent files.
  OPEN "MT1:PAYROL.DAT" FOR OUTPUT AS FILE #1% &
                  ,ORGANIZATION SEQUENTIAL, NOREWIND

  Note that you cannot specify REWIND; to avoid rewinding
  the tape, omit the NOREWIND keyword.