To detect record file errors, you can check some values in the _RIOFB_T structure, which is defined in <recio.h>. Both the num_bytes field and the sysparm field contain information regarding record file I/O errors.
The following figure shows the type definition of the _RIOFB_T structure:
Figure 163. _RIOFB_T Type Definition
typedef struct {
unsigned char *key;
_Sys_Struct_T *sysparm;(1), (3)
unsigned long rrn;
long num_bytes;(1)
short blk_count;
char blk_filled_by;
int dup_key : 1;
int icf_locate: 1;
int reserved1 : 6;
char reserved2[20];
} _RIOFB_T;
|
Notes:
Figure 164. _Sys_Struct_T Type Definition
|
The following figure shows the definition of the _Maj_Min_rc_T structure:
Figure 165. _Maj_Min_rc_T Type Definition
|
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.