SQL/MX 3.1 Programming Manual for C and COBOL (H06.23+, J06.12+)
C/C++ Program Compilation
HP NonStop SQL/MX Release 3.1 Programming Manual for C and COBOL—663854-001
15-36
Compiling Embedded Module Definitions
-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 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 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.
If these conditions are not met, an error is generated, and no module is created.
If you do not specify -g moduleLocal[=<OSSdir>] 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.
-d compiler-attribute-name=compiler-attribute-value
specifies default attribute settings for compilation and existing settings for the
module name. The module name settings are:
modulecatalog=cat
moduleschema=sch










