Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-003
5-41
Example
steps
identifies the steps necessary to create the new object file. Valid codes are:
new
specifies the name of the new object file that is to be created.
oexits
specifies the name of an object file containing custom user exits. If you compiled
exits separately, simply list all the object file names, separated with spaces.
Example
To create your own version of NM DataLoader/MP, follow these steps:
1. Create the source code for the user exits you want to replace.
The best way to do this is to make a copy of the source for the default exits,
remove the code for the exits you do not need to replace, and modify the code for
the ones you want to change. Remember to edit the #include line to refer to the
subvolume in which DataLoader/MP was installed. The source files that contain the
default user exits are included with the DataLoader/MP package: SEXITSC for C
code and SEXITSCB for COBOL85 code.
2. Compile your source file to produce an object file: myobject.
When compiling C code, you must specify the compiler option EXTENSIONS on
the compiler command line.
3. Run the MAKE routine as follows:
$SYSTEM.DLSOURCE.MAKE is the subvolume into which NM DataLoader/MP was
installed.
The letter L indicates that you need only to link the object file and do not need to SQL
compile it.
mydataload is the name of the new object file that is to be created.
L Link the user exits in oexits with the standard DataLoader/MP code
and any default exits needed to create a runnable object file.
LS Perform the link as above, then SQL-compile the new object file.
>RUN $SYSTEM.DLSOURCE.MAKE L mydataload myobject