SQL/MX Programming Manual for C and COBOL (G06.24+, H06.03+)
C/C++ Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—523627-004
15-31
MXCMP Environment Variable
•
This command places the module file in the same OSS directory as the application
executable:
mxCompileUserModule -g moduleLocal sqlprog.o
•
These settings affect statement recompilation at execution time:
mxCompileUserModule -d AUTOMATIC_RECOMPILATION=ON \
-d SIMILARITY_CHECK=ON sqlprog.o
MXCMP Environment Variable
To specify an alternate location of the SQL/MX compiler (MXCMP) instead of the
default location of /G/system/system/mxcmp, use the MXCMP environment variable.
This environment variable is used by c89 and the mxCompileUserModule utility and
enables you to direct c89 or mxCompileUserModule to use another version of the
MXCMP executable.
To set the MXCMP environment variable, enter this command at an OSS prompt before
invoking the c89 or mxCompileUserModule utility:
export MXCMP="/G/usr/mydir/mxcmp"
For more information, see the Open System Services Shell and Utilities Reference
Manual.
MXCMPUM Environment Variable
To specify an alternate location of the compiler utility (mxCompileUserModule)
instead of the default location of
/usr/tandem/sqlmx/bin/mxCompileUserModule, use the MXCMPUM
environment variable. This environment variable is used by the c89 utility and enables
you to direct c89 to use another version of the mxCompileUserModule utility.
To set the MXCMPUM environment variable, enter this command at an OSS prompt
before invoking the c89 utility:
export MXCMPUM="/G/usr/mydir/mxCompileUserModule"
For more information, see the Open System Services Shell and Utilities Reference
Manual.
Compiling a Module Definition File
Embedded SQL application source files preprocessed with the -x and -m options or
that set the SQLMX_PREPROCESSOR_VERSION=800 environment variable continue to
generate module definition files as done in SQL/MX Release 1.8 and previous
releases.
To compile a module definition file, use the SQL/MX compiler mxcmp command on the
module definition (.m) file. The SQL/MX compiler places a compiled user module file in