!ERROR=2 - End of File

  • An attempt was made to move the file pointer beyond the end of the file. This error can be trapped with the END= option.

  • Attempting to read beyond the end of a file.

  • Attempting to read a SERIAL file immediately after writing to it.

  • Using the KEY(), KEYN(), or IND() function when the last record in the file has been read.

  • Using KEYP() at the start of a keyed file.

  • Adding a new key to a full keyed file.

  • Attempting to read beyond the end of a SELECT channel.

  • Adding a new key to a dynamic keyed file when the file has reached its maximum size (2GB or 4GB).

  • Attempting to expand a dynamic file beyond system-imposed limits.

See Also

List of Errors