Record Input and Output Error Macro to Exception Mapping

The following table describes what occurs if the signal SIGIO is raised. Only *ESCAPE, *NOTIFY, and *STATUS messages are monitored.

Table 1. Record Input and Output Error Macro to Exception Mapping
Description Messages (_EXCP_MSGID) errno setting
*STATUS and *NOTIFY CPF4001 to CPF40FF, CPF4401 to CPF44FF, CPF4901 to CPF49FF, CPF5004 errno is not set, a default reply is returned to the operating system.
Recoverable I⁄O error CPF4701 to CPF47FF, CPF4801 to CPF48FF, CPF5001 to CPF5003, CPF5005 to CPF50FF, EIORECERR
Non-recoverable I⁄O error2 CPF4101 to CPF41FF, CPF4201 to CPF42FF, CPF4301 to CPF43FF, CPF4501 to CPF45FF, CPF4601 to CPF46FF, CPF5101 to CPF51FF, CPF5201 to CPF52FF, CPF5301 to CPF53FF, CPF5401 to CPF54FF, CPF5501 to CPF55FF, CPF5601 to CPF56FF EIOERROR
Truncation occurred at I/O operation C2M3003 ETRUNC
File is not opened C2M3004 ENOTOPEN
File is not opened for read operations C2M3005 ENOTREAD
File is not opened for write operations C2M3009 ENOTWRITE
Bad file name specified C2M3014 EBADNAME
The file mode specified is not valid C2M3015 EBADMODE
File is not opened for update operations C2M3041 ENOTUPD
File is not opened for delete operations C2M3042 ENOTDLT
The key length specified is not valid C2M3044 EBADKEYLN
A non-recoverable I/O error occurred C2M3101 EIOERROR
A recoverable I/O error occurred C2M3102 EIORECERR
Note:
  • 1 The error is percolated to the user, therefore the user's direct monitor handlers, ILE C condition handlers and signal handler may get control. The initial setting for SIGIO is SIG_IGN.
  • 2 The type of device determines whether the error is recoverable or not recoverable. The following IBM® publications contain information about recoverable and non-recoverable system exceptions for each specific file type:
    • ICF Programming
    • ADTS/400: Advanced Printer Function
    • Application Display Programming
    • Database Programming