The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Summary:
|
Attempted I/O conflict with Open
|
Cause:
|
An I/O conflicts with corresponding open statement. Some possibilities:
- Read
- Attempt to read a file that is opened for Output.
- Attempt to read Rec= or Key= to a file opened sequential.
- Attempt to use read on a display file
- Open
- Attempt to create a new file when open is for Input only
- ,Use specified on a Input only open statement.
- Version
- Attempt to access version number on file that is not internal or a key file that is opened as internal
- Attempt to reset version number on file that is not opened OutIn
- Write/Rewrite/Print
- Attempt to ReWrite a record in file that was opened for Output
- Attempt to Write #0
- Attempt to write to a display file
|
Remedy:
|
Change the I/O statement so that it matches the way the file was opened. For the situations noted above:
- Read
- Read may be executed only on files opened for Input or OutIn.
- Read Rec= or Key= may be executed only on files opened relative.
- Use Input or LInput to read display files.
- Open
- If a new file is to be created, OPEN must be for Output or OutIn.
- Remove the ,Use from the syntax.
- Version
- Version may be executed on non-keyed files opened internal only.
- If version number is to be reset, file must be opened OutIn
- Write/Rewrite
- Change Output on the Open Statement to OutIn
- Change the invalid file handle to a valid one
- Change the write to a print
|