15.00 - Generating Routines - MultiLoad

Teradata MultiLoad Reference

prodname
MultiLoad
vrm_release
15.00
category
Programming Reference
featnum
B035-2409-034K

Generating Routines

Table 58 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.

 

Table 58: 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.dll File 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.