SQL/MX 3.1 Programming Manual for C and COBOL (H06.23+, J06.12+)
COBOL Program Compilation
HP NonStop SQL/MX Release 3.1 Programming Manual for C and COBOL—663854-001
16-29
MXCMP Environment Variable
to mxcmp for SQL compilation. Each compilation of a selected module definition either
succeeds or fails just like any mxcmp invocation. An mxcmp compilation failure does not
affect preceding or following mxcmp invocations. In particular, an mxcmp compilation
failure does not prevent mxCompileUserModule from proceeding with the mxcmp
compilation of the next selected module definition.
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
The following command compiles the embedded module definition and places the
module file in the user-specified OSS location, /usr/mymodules:
mxcompileusermodule -g moduleLocal=/usr/mymodules sqlprog.exe
The following command compiles the embedded module definition and places the
module file in the user-specified Guardian location, /G/data01/mymod:
mxcompileusermodule -g moduleLocal=/G/data01/mymod
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










