SQL/MX Programming Manual for C and COBOL (H06.10+, J06.03+)

COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL544617-003
16-29
MXCMP Environment Variable
Examples—mxCompileUserModule
This command compiles the embedded module definition:
mxCompileUserModule sqlprog.exe
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.exe
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 ecobol or nmcobol and the
mxCompileUserModule utility and enables you to direct them to use another version
of the MXCMP executable.
To set the MXCMP environment variable, enter this command at an OSS prompt before
invoking the ecobol or nmcobol 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 ecobol or nmcobol
utility and enables you to direct ecobol or nmcobol to use another version of the
mxCompileUserModule utility.
To set the MXCMPUM environment variable, enter this command at an OSS prompt
before invoking the ecobol or nmcobol 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