Detecting Stream File and Record File Errors

To detect stream file errors, check:
  • The return value of a function
  • The errno value
  • The major/minor return code (for system exceptions)
To detect record file errors, check the values in the _RIOFB_T structure.
Note: For a list of exception messages generated by the ILE C/C++ record I/O functions, see the Record Input and Output Error Macro to Exception Mapping table in the ILE C/C++ Runtime Library Functions.

To detect stream file or record file errors, check the Global Variable _EXCP_MSGID.