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 />

Programming INMODs for UNIX-based Clients<br />

where<br />

Syntax Element<br />

gcc<br />

Description<br />

Call to the program that invokes the native C compiler<br />

-m31 Generates code for a 32-bit environment.<br />

-shared<br />

-fPIC<br />

shared-objectname<br />

Flag that produces a shared object that can then be linked with other objects to<br />

form an executable<br />

Compiler option that generates Position Independent Code for all user exit<br />

routines<br />

Name of the shared object file. The shared-object-name can be any valid file<br />

name. This is the name specified as:<br />

• The INMOD modulename parameter of the IMPORT of the MultiLoad job<br />

script.<br />

• The EXIT name parameter for the NOTIFY option of the BEGIN MLOAD<br />

and BEGIN DELETE MLOAD of the MultiLoad job script.<br />

-o Output file name<br />

Compiling and Linking a C INMOD on on IBM OS z/OS<br />

Use the following syntax from the USS environment to compile and link source files to a DLL:<br />

Note: Be sure to compile the INMOD and notify exit routines in 32-bit mode so that they are<br />

compatible with <strong>Teradata</strong> T<strong>Pump</strong>.<br />

cc<br />

-o<br />

"MVS.PDSE.LOAD(module_name)"<br />

"//MVS.PDSE.C(source_name.c)" -W c,dll,expo = -W l,dll<br />

2409A058<br />

where<br />

Syntax Element<br />

Description<br />

-o Name of the executable load module that is produced during the link-edit phase.<br />

In the following example, a load module INMOD is placed in a z/OS PDSE<br />

named PDSE.LOAD, and the source code, INMOD, is compiled as a member of<br />

a z/OS PDSE named TEST.C:<br />

cc -o "//PDSE.LOAD(INMOD)" "//TEST.C(INMOD)" -W<br />

c,dll,expo -W l,dll<br />

Member names are limited to eight characters.<br />

-W c,dll,expo Options passed to the compiler phase to indicate that the source is to be<br />

compiled as a dll with all functions exported.<br />

-W l,dll Options passed to the link-edit phase to indicate that the module is linked as a dll.<br />

226 <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!