The next table describes the EGL error values for input/output (I/O)
operations that affect databases, files, and MQSeries message queues.
The values associated with hard errors are available to your code only if the
system variable sysVar.handleHardIOErrors is set to 1, as described in
Exception handling.
Error value | Type of error | Type of Record | Meaning of error value |
---|---|---|---|
deadLock | Hard | SQL | Two program instances are trying to change a record, but neither can do so without system intervention. If you are accessing an SQL table in DB2, deadlock indicates that the value of sqlcode is -911. |
duplicate | Soft | Indexed or Relative | Your code tried to access a record having a key that already exists, and the attempt succeeded. For details, see duplicate. |
endOfFile | Soft | Indexed, Relative, Serial | For details, see endOfFile. |
ioError | Hard or Soft | Any | EGL received a non-zero return code from the I/O operation. |
format | Hard | Any | The accessed file is incompatible with the record definition. For details, see format. |
fileNotAvailable | Hard | Any | fileNotAvailable is possible for any I/O operation and could indicate, for example, that another program is using the file or that resources needed to access the file are scarce. |
fileNotFound | Hard | Indexed, Message queue, Relative, Serial | A file was not found. |
full | Hard | Indexed, Relative, Serial | full is set in these cases:
|
hardIOError | Hard | Any | A hard error occurred, which is any error except endOfFile, noRecordFound, or duplicate. |
noRecordFound | Soft | Any | For details, see noRecordFound. |
unique | Hard | Indexed, Relative, or SQL | UNQ indicates unique: your code tried to add or replace a record having a key that already exists, and the attempt failed. For details, see unique. |
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.