Generating Routines - MultiLoad

Teradata® MultiLoad Reference

Product
MultiLoad
Release Number
16.20
Published
October 2018
Language
English (United States)
Last Update
2018-10-10
dita:mapPath
lsl1527114222348.ditamap
dita:ditavalPath
Audience_PDF_product_tpt_userguide_include.ditaval
dita:id
B035-2409
lifecycle
previous
Product Category
Teradata Tools and Utilities

The following table lists three sample program files which are provided with Teradata MultiLoad software that help generate and use INMOD, and notify exit routines in Teradata MultiLoad job scripts on network-attached Windows client systems. The listings of these sample files are presented later in this appendix.

Sample INMOD and Notify Exit Programs 
Sample File Description
mlimod.c Source file for an INMOD routine
mlnotf.c Source file for a notify exit routine
going Source file for a notify exit extended object Name routine

Refer to the referenced sample file listings and use the following procedure to generate and use an INMOD or notify exit routine in the Teradata MultiLoad job:

  1. Edit the routine source file and make sure that the dynamn name is a __declspec.

    See the listing of the sample routine files later in this appendix:

    • mlimod.c
    • mlnotf.c
  2. Use the following command to create a DLL:

    cl /DWIN32 /LD sourcefilename

    where sourcefilename is the name of the INMOD or notify exit routine source file.

    Successful command execution produces a file with the same name as the source file with the .dll file extension, as:

    sourcefilename.dll

  3. Use the sourcefilename.dll file name in the Teradata MultiLoad job script as follows:
    Routine Type Use the sourcefilename.dllFile as the
    INMOD INMOD modulename specification in the IMPORT of the Teradata MultiLoad job script.
    Notify Exit EXIT name specification of the NOTIFY option in the BEGIN MLOAD or BEGIN DELETE MLOAD command of the Teradata MultiLoad job script.