Layout of the Events file
This information specifies the layout of the SYSEVENT file. SYSEVENT is an events file that contains error information and source file statistics. The SYSEVENT file is not the same as the binder Input Event Log. Use the EVENTS compiler option to produce the SYSEVENT file. For more information on the EVENTS compiler option, see EVENTS | NOEVENTS.
In the following example, the source file simple.c is
compiled with the EVENTS(USERID.LIST(EGEVENT))compiler
option. The file err.h is a header file that is included
in simple.c. Figure 3 is the event file
that is generated when simple.c is compiled.
Figure 1. simple.c
1 #include "./err.h"
2 main() {
3 add some error messages;
4 return(0);
5 here and there;
6 }
Figure 2. err.h
1 add some;
2 errors in the header file;
Figure 3. Sample
SYSEVENT file
------- start simple.events ------
FILEID 0 1 0 10 ./simple.c
FILEID 0 2 1 9 ././err.h
ERROR 0 2 0 0 1 1 0 0 CCN1AAA E 12 48 Definition of function add require
FILEEND 0 2 2
ERROR 0 2 0 0 1 5 0 0 CCN1BBB E 12 35 Syntax error: possible missing '{'
ERROR 0 1 0 0 3 3 0 0 CCN1CCC E 12 26 Undeclared identifier add.
ERROR 0 1 0 0 5 8 0 0 CCN1DDD E 12 42 Syntax error: possible missing ';'
ERROR 0 1 0 0 5 3 0 0 CCN1EEE E 12 27 Undeclared identifier here.
FILEEND 0 1 6
------- end simple.events ------
There are three different record types generated in the event file:
- FILEID
- FILEEND
- ERROR