FastExport accumulates operational information about specific events that occur during a FastExport job. If the BEGIN EXPORT command includes a NOTIFY option with an EXIT specification, then, when the specific events occur, FastExport calls the named Notify Exit routine and passes to it:
- An event code to identify the event
- Specific information about the event
The following table lists the event codes and descriptions of the data that FastExport passes to the Notify Exit routine for each event. (For a description of the events associated with each level of notification, see BEGIN EXPORT.)
To support future enhancements, always ensure that Notify Exit routines ignore invalid or undefined event codes, and that they do not cause FastExport to terminate abnormally.
Event Code | Event | Event Description | Data Passed to the Notify Exit Routine |
---|---|---|---|
0 | Initialize | Successful processing of the NOTIFY option of the BEGIN EXPORT command |
|
1 | File or INMOD open | Successful processing of the IMPORT command that specifies the file or INMOD routine name |
|
9 | Database restart | FastExport received a crash message from the database or from CLIv2 | No data accompanies the database restart event code |
10 | CLIv2 error | FastExport received a CLIv2 error | Error code – 4-byte unsigned integer |
11 | Database error | FastExport received a database error that will produce an exit code of 12 | Error code – 4-byte unsigned integer Not all database errors cause this event. For example, an Error 3807 that occurs while trying to drop or create a table does not terminate FastExport.
|
12 | Exit | FastExport is terminating | Exit code – 4-byte unsigned integer |
31 | Export begin | FastExport is about to begin the export task by opening the export file | Database name – Database name - 62-byte (maximum) array |
32 | Request submit begin | FastExport is about to submit the SELECT request to the database |
|
33 | Request submit end | FastExport has received the response to the SELECT request |
|
34 | Request fetch begin | FastExport is about to fetch the results of the SELECT request | No data accompanies the request fetch begin event code |
35 | File or OUTMOD open | FastExport is about to open an output or OUTMOD routine file |
|
36 | Statement fetch begin | FastExport is about to fetch the current statement in a request |
|
37 | Statement fetch end | FastExport has fetched all of the records for the current statement | Record count – 4-byte unsigned integer |
38 | Request fetch end | FastExport has fetched all of the records for the current request |
|
39 | Export end | FastExport has completed the export operation and displayed the number of exported records |
|
40 | Block count | FastExport has completed the export operation in NoSpool mode and displayed the total number of blocks. | Block count – 4-byte unsigned integer |
41 | Export end 64 | FastExport has completed the export operation and displayed the number of exported records |
|
42 | Initialize EON | Successful processing of the NOTIFY option of the BEGIN EXPORT command |
|
43 | Request submit begin EON | FastExport is about to submit the SELECT request to the database |
|
44 | Export begin EON | FastExport is about to begin the export task by opening the export file | Database name – character string pointer |