25.09.2015 Views

Teradata Parallel Data Pump

Teradata Parallel Data Pump Reference - Teradata Developer ...

Teradata Parallel Data Pump Reference - Teradata Developer ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix C: INMOD and Notify Exit Routine Examples<br />

Sample Notify Exit Routine<br />

} Initialize;<br />

struct {<br />

int nImport;<br />

} ImpStart;<br />

struct {<br />

UInt32 FileNameLen; /* for file open event */<br />

char FileOrInmodName[MAXFILENAMELEN];<br />

UInt32 nImport;<br />

} FileOpen ;<br />

struct {<br />

UInt32 Records;<br />

} CheckPt;<br />

struct {<br />

char *TableName;<br />

UInt32 Rows;<br />

} ETDrop ;<br />

struct {<br />

Int32 ReturnCode;<br />

} Exit;<br />

struct {<br />

int nImport;<br />

UInt32 RecsIn;<br />

UInt32 RecsSkipped;<br />

UInt32 RecsRejd;<br />

UInt32 RecsOut;<br />

UInt32 RecsError;<br />

} Complete;<br />

struct {<br />

char type;<br />

char *dbasename;<br />

char *szName;<br />

UInt32 Activity;<br />

} TableStats;<br />

struct {<br />

UInt32 ErrorCode;<br />

} DBSError;<br />

struct {<br />

UInt32 ErrorCode;<br />

} CLIError;<br />

struct {<br />

int nImport;<br />

UInt32 nSQLstmt;<br />

UInt32 nReqSent;<br />

UInt32 RecsIn;<br />

UInt32 RecsSkipped;<br />

UInt32 RecsRejd;<br />

UInt32 RecsOut;<br />

UInt32 RecsError;<br />

} Stats;<br />

struct {<br />

UInt32 nImport;<br />

UInt32 ErrorCode;<br />

char *ErrorMsg;<br />

UInt32 nRecord;<br />

unsigned char nApplySeq;<br />

unsigned char nDMLSeq;<br />

unsigned char nSMTSeq;<br />

char *Error<strong>Data</strong>;<br />

UInt32 Error<strong>Data</strong>Len;<br />

252 <strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!