Specifications

Visual Fortran Run-Time Errors Page 26 of 48
For example, consider you have a file LONG.DAT that is one continuous record with
data fields separated by commas. You then set the buffer associated with the file to 512
bytes, read more than one buffer size of data, tab left to data in the previous buffer, and
attempt to read further data, as follows:
INTEGER value(300)
OPEN (1, FILE = ’LONG.DAT’, BLOCKSIZE = 512)
READ (1, 100) (value(i), i = 1, 300)
100 FORMAT (290I2,TL50,10I2)
In this case, error 594 occurs.
599
severe (599): File already connected to a different unit
FOR$IOS_F6413. The program tried to connect an already connected file to a new unit.
A file can be connected to only one unit at a time.
600
severe (600): Access not allowed
FOR$IOS_F6414.
This error can be caused by one of the following:
The filename specified in an OPEN statement was a directory.
An OPEN statement tried to open a read-only file for writing.
The file was opened with SHARE=DENYRW’ by another process.
601
severe (601): File already exists
FOR$IOS_F6415. An OPEN statement specified STATUS=’NEW’ for a file that
already exists.
602
severe (602): File not found
FOR$IOS_F6416. An OPEN statement specified STATUS=’OLD’ for a file that does
not exist.
603
severe (603): Too many open files
FOR$IOS_F6417. The program exceeded the number of open files the operating system
allows.
604
severe (604): Too many units connected
FOR$IOS_F6418. The program exceeded the number of units that can be connected at
one time. Units are connected with the OPEN statement.