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:
Table 21 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” on page 62.)
Note: 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 |
Teradata Database restart |
FastExport received a crash message from Teradata Database or from CLIv2 |
No data accompanies the Teradata Database restart event code |
10 |
CLIv2 error |
FastExport received a CLIv2 error |
Error code – 4‑byte unsigned integer |
11 |
Teradata Database error |
FastExport received a Teradata Database error that will produce an exit code of 12 |
Error code – 4‑byte unsigned integer Note: Not all Teradata 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 Teradata 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 Teradata Database |
|
44 |
Export begin EON |
FastExport is about to begin the export task by opening the export file |
Database name – character string pointer |