SQL/MX Programming Manual for C and COBOL (G06.24+, H06.03+)
COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—523627-004
16-26
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.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 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 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 nmcobol utility and 
enables you to direct 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 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 
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 










