SQL/MX 3.2 Programming Manual for C and COBOL (H06.25+, J06.14+)
C/C++ Program Compilation
HP NonStop SQL/MX Release 3.2 Programming Manual for C and COBOL—663854-002
15-42
Compiling a Module Definition File
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 is 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 user-specified local application directory, user-specified Guardian or OSS
location(s) or both, application DLL location(s), or in the global
/usr/tandem/sqlmx/USERMODULES directory.
Command-Line Syntax
To invoke the SQL/MX compiler, at an OSS prompt, enter:
-e
directs mxcmp to generate a warning rather than an error if a table or class MAP
DEFINE in an SQL statement does not exist during explicit SQL/MX compilation.
To find errors in a program during explicit SQL/MX compilation, omit the -e option.
If you are using late name resolution and want to use a table or DEFINE that does
not exist during explicit SQL/MX compilation, include the -e option. Then at run
time, the SQL/MX executor automatically recompiles the SQL statement from the
statement’s source in the module by using the run-time version of the table.
-v
directs mxcmp to display summary information in addition to error and warning
messages for the compilation.
-g moduleGlobal
specifies that the module is placed globally in the
/usr/tandem/sqlmx/USERMODULES directory.
-g moduleLocal[=OSSdir]
directs mxcmp to place the module in the named OSS directory. The OSS directory
can be either a Guardian or an OSS location in the OSS format. If the OSS
mxcmp [ -e ] [ -v ]
[ -g {moduleGlobal|moduleLocal[=OSSdir]}]
[ -d compiler-attribute-name=compiler-attribute-value]...
module-definition-file










