Compiling and Linking a C INMOD on IBM OS z/OS - Parallel Data Pump

Teradata® Parallel Data Pump Reference

Product
Parallel Data Pump
Release Number
16.20
Published
September 2019
Language
English (United States)
Last Update
2019-10-11
dita:mapPath
dmq1512702641516.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-3021
lifecycle
previous
Product Category
Teradata Tools and Utilities

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

Be sure to compile the INMOD and notify exit routines in 32-bit mode so that they are compatible with Teradata TPump.


where the following is true:

-o
Name of the executable load module that is produced during the link-edit phase. In the following example, a load module INMOD is placed in a z/OS PDSE named PDSE.LOAD, and the source code, INMOD, is compiled as a member of a z/OS PDSE named TEST.C:
cc  -o "//PDSE.LOAD(INMOD)" "//TEST.C(INMOD)"  -W c,dll,expo  -W l,dll
Member names are limited to eight characters.
-W c,dll,expo
Options passed to the compiler phase to indicate that the source is to be compiled as a dll with all functions exported.
-W l,dll
Options passed to the link-edit phase to indicate that the module is linked as a dll.