DataLoader/MX Reference Manual (H06.03+, J06.03+)
Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual—543544-001
5-42
Example
DataLoader/MX installation directory can be specified by setting the environment
variable DL_INSTALL_DIR to point to the installation directory. For example:
$ export DL_INSTALL_DIR="/usr/opt/dataloader"
You can set the environment variable DL_COMP_OPTION to specify options that
need to be passed to the c89 or ecobol language compiler during source
compilation. For example:
$ export DL_COMP_OPTION="-Wsql=CHAR_AS_ARRAY"
If you have multiple source files containing various exit routines, you must
language compile them individually, link them together into a library, and give the
library file as input to build.sh.
Example
To create your own version of DataLoader/MX:
1. Create the source code for the user exits you want to replace.
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. The
source files that contain the default user exits are included with the DataLoader/MX
package:
•
sexits.c for C code
•
sexitscb.cob for COBOL code
2. Run the build script. For example:
$ /usr/tandem/dataloader/build.sh mysource.c mydataload MX
In this example:
/usr/tandem/dataloader
is the directory in which DataLoader/MX was installed.
mysource.c
is the name of the modified source file.
mydataload
is the name of the new object file to be created.
MX
specifies that there is embedded sql in the input source file, and SQL/MX SQL
compilation is required.










