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.

Chapter 5: Using INMOD and Notify Exit Routines<br />

Overview<br />

Programming Structure<br />

Table 32 defines the structure by programming language for communicating between<br />

<strong>Teradata</strong> T<strong>Pump</strong> and INMOD or notify exit routines.<br />

Table 32: Programming Routines by Language<br />

Routine Language<br />

C<br />

Programming Structure<br />

First parameter:<br />

struct {<br />

long Status;<br />

long RecordLength;<br />

char buffer[xxxxx];<br />

}<br />

Note: In the char buffer specification, the buffer length xxxxx is:<br />

• 32004 for <strong>Teradata</strong> for Windows<br />

• 64004 for <strong>Teradata</strong> <strong>Data</strong>base for UNIX<br />

Second parameter:<br />

struc<br />

long seqnum;<br />

short parmlen;<br />

char parm[80];<br />

}<br />

In each structure, the records must be constructed so that the left-to-right order of the data<br />

field corresponds to the order of the field names specified in the <strong>Teradata</strong> T<strong>Pump</strong> LAYOUT<br />

command and subsequent FIELD, FILLER, and TABLE commands.<br />

Routine Entry Points<br />

Table 33 lists the entry points for INMOD routines.<br />

Table 33: Entry Points for INMOD Routines<br />

INMOD Routine Language<br />

IBM C on z/OS platforms<br />

z/OS platform<br />

C on UNIX and Windows platforms<br />

Entry Point<br />

_dynamn<br />

DYNAMN<br />

_dynamn (or BLKEXIT*)<br />

*Only for FDL-compatible INMODs compiled and linked<br />

with BLKEXIT as the entry point. When the FDL-compatible<br />

INMOD is used, USING(“FDLINMOD”) must be specified<br />

in the IMPORT statement.<br />

Table 34 lists the entry points for Notify Exit routines.<br />

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

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

Saved successfully!

Ooh no, something went wrong!