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-27
MXCMPUM Environment Variable
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
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
the global /usr/tandem/sqlmx/USERMODULES directory or in the user-specified
local application directory.
Command-Line Syntax
To invoke the SQL/MX compiler, at an OSS prompt, enter:
mxcmp [ -e ] [ -v ]
[ -g {moduleGlobal|moduleLocal[=OSSdir]}]
[ -d compiler-attribute-name=compiler-attribute-value]...
module-definition-file