15.00 - IBM C or C++ INMODs - FastLoad

Teradata FastLoad Reference

prodname
FastLoad
vrm_release
15.00
category
Programming Reference
featnum
B035-2411-034K

IBM C or C++ INMODs

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 the above 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 Step 2 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