Major and minor return codes are used to report certain status information for display, ICF, and printer files. If the major return code is 00, the operation completed successfully. If an error occurs with a display, ICF, or printer file your program should handle it as it occurs.
After a read (_Rreadindv() or _Rreadn()) or write (_Rwrite()) operation, the sysparm field in the _RIOFB_T structure points to the major/minor return code for the display, ICF or printer files. The header file <recio.h> declares the _RIOFB_T structure.
Your program should test the return code after each I/O operation and define any error handling operations that are based on the major/minor return code.
The Application Display Programming manual describes major and minor return codes and their meanings for display files. The Printer Device Programming manual describes major and minor return codes and their meanings for printer files.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.