Previous Topic Next topic Print topic


ANS85 

ANSI'85 File Status Codes

ANSI'85 file status codes include all ANSI'74 status codes together with the following status codes:

Status key 1 Status key 2 Description
0 4 The length of the record being processed does not conform to the record length specified in the fixed file attributes for that file.
  5 The referenced optional file is not present at the time the OPEN statement is executed.
  7 Sequential files only. For a CLOSE statement with the REEL/UNIT phrase the referenced file is a non-reel/unit medium.
1 4 Relative files only. The number of significant digits in the relative record number is larger than the number of significant digits in the relative key data item described for that file.
2 2 Indexed and relative files only. Indicates a duplicate key condition. An attempt has been made to store a record that would create a duplicate key in the indexed or relative file or a duplicate alternate record key for a file that does not allow duplicates.
  3 The conditions listed under ANSI'74 code "23". In addition, a START or READ statement has been attempted on an optional input file that is not present.
  4 Relative and indexed files only. Indicates a boundary violation arising from one of the following conditions:
  1. An atttempt has been made to write beyond the externally defined boundaries of a file.
  2. A sequential WRITE statement has been attempted for a relative file, but the number of significant digits in the relative record number was larger than the size of the relative key data item described for the file.
3 5 An OPEN statement with the I-O, INPUT, or EXTEND phrases has been attempted on a non-OPTIONAL file that is not present.
  7 An OPEN statement has been attempted on a file which does not support the open mode specified in the OPEN statement.
  8 An OPEN statement has been attempted on a file previously closed with a lock.
  9 A conflict has been detected between the fixed file attributes specified for that file in the program.
4 1 An OPEN has been attempted on a file already opened.
  2 A CLOSE has been attempted on a file already closed.
  3 Sequentially accessed files only. The last I/O statement executed for the file, prior to the execution of a DELETE or REWRITE statement, was not a READ statement.
  4 A boundary violation exists.
  6 A sequential READ statement has been attempted on a file open in the INPUT or I-O mode but no valid next record has been established.
  7 A READ or START statement has been attempted on a file not opened INPUT or I-O.
  8 A WRITE statement has been attempted: on a file not open in the OUTPUT, I-O or EXTEND mode; or on a file open in the I-O and sequential access modes.
  9 A DELETE or REWRITE statement has been attempted on a file that is not opened I-O.
Previous Topic Next topic Print topic