SQL/MX Programming Manual for C and COBOL (G06.24+, H06.03+)
COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—523627-004
16-23
Compiling Embedded Module Definitions
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
directs mxCompileUserModule to place compiled modules into the same OSS 
directory as the application-file. For more information, see application-file 
on page 16-24.
If you do not specify -g moduleLocal but set 
MXCMP_PLACES_LOCAL_MODULES ON, you must be in the same directory as 
the application executable when you invoke mxCompileUserModule. Otherwise, 
mxCompileUserModule writes the module in the current directory, and you will 
need to move the module to the global USERMODULES directory or co-locate the 
module with its application. For more information, see Generating Locally or 
Globally Placed Modules on page 17-3.
mxCompileUserModule [ -e] [ -v]
 [-g {moduleGlobal | moduleLocal}] 
 [-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]










