Compile/Link/Execute C/C++ INMOD & Notify Exit Routines | Teradata FastLoad - IBM C or C++ INMODs - FastLoad

Teradata® FastLoad Reference - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
FastLoad
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-11-17
dita:mapPath
dlf1641281592734.ditamap
dita:ditavalPath
vax1619194969834.ditaval
dita:id
wzs1478610185776
Product Category
Teradata Tools and Utilities

Inmods can be written using the various flavors of IBM C or C++ (for example, C/370, AD/Cycle, OS/390 C/C++, and so on). Teradata FastLoad provides source code for an assembler language stub that invokes the appropriate CEEPIPI calls to support pre-initialization, repeatable invocation, and termination.

The procedure follows:

  1. Modify the supplied sample source module called LIBINIT3 such that the name of the load module representing the actual INMOD is specified as the first argument of the CEEXPITY macro, as follows:
    CEEXPITY CINMODCL,0

    In this example, the name of the load module representing the actual INMOD is CINMODCL.

  2. Assemble the supplied sample source module called LIBINIT3. Use the high-level assembler (batch or interactive) with default attributes for this purpose.
  3. Link-edit the object code derived from the previous step into an executable load module. The name of this load module must be different from the name of the load module representing the actual INMOD. Use the linkage editor or binder (batch or interactive) with default attributes for this purpose.
  4. Within the utility script, substitute the name of the load module representing the interface (LIBINIT3) where the name of the load module representing the actual INMOD would be specified.

    The flow of control is as follows:

    utility  --> interface  --> inmod

    For example:

    FASTLOAD  --> LIBINIT3  --> CINMODCL