SQL/MX Programming Manual for C and COBOL (H06.04+)

COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL540434-001
16-26
MXCMP Environment Variable
setting can be supplied with -d MODULEGROUP=group, -d
MODULETABLESET=target, or -d MODULEVERSION=version.
If no module name is specified, mxCompileUserModule operates on all
embedded module definitions of application-file. Otherwise, each module-
name is the fully qualified three-part name of an embedded module definition in
application-file, and mxCompileUserModule operates only on the named
embedded module definitions.
In summary, modules can be named as:
A fully qualified delimited module name, such as
cat.sch.\"GRP^MODULE^TGT^VER\"
A qualified module name followed by module specification strings, such as
cat.sch.module MODULEGROUP=grp MODULETABLESET=tgt
MODULEVERSION=ver
A simple, unqualified module name (for example, mod), with the catalog,
schema, group, table set, or version specified as -d compiler attributes.
You can run mxCompileUserModule more than once.
mxCompileUserModule extracts the application-files selected module
definitions. For each selected module definition m, mxCompileUserModule passes m
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
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