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-26
Compiling Embedded Module Definitions
Compiling a Module Definition File on page 16-30 and Combining Embedded Module
Definitions and Module Definition Files on page 16-43.
Command Line Syntax
To invoke mxCompileUserModule, at an OSS prompt, enter:
-e
directs mxCompileUserModule 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 your 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 mxCompileUserModule to display summary information in addition to
error and warning messages for the compilation. For example, use this option to
verify the default settings of the SQL/MX compiler.
-g moduleGlobal
specifies that the module is placed globally in the
/usr/tandem/sqlmx/USERMODULES directory.
-g moduleLocal[=<OSSdir>]
directs mxCompileUserModule to place the module in the OSS directory. The
OSS directory can be either a Guardian or OSS location in the OSS format. If the
OSS directory is omitted, the module is created in the current directory. The
following rules related to the OSS directory apply:
The OSS directory must exist and be accessible.
The directory must not be a remote directory in an Expand network.
The OSS directory must not exceed 1024 characters.
mxCompileUserModule [ -e] [ -v]
[-g {moduleGlobal | moduleLocal[=<OSSdir>]}]
[-d compiler-attribute-name=compiler-attribute-value] ...
application-file ["{"module-name[, module-name]..."}"]
module-name is:
[[catalog.]schema.]module [MODULEGROUP=group]
[MODULETABLESET=target] [MODULEVERSION=version]










