SQL/MX 3.2.1 Programming Manual for C and COBOL (H06.26+, J06.15+)
COBOL Program Compilation
HP NonStop SQL/MX Release 3.2.1 Programming Manual for C and COBOL—663854-005
16-27
Compiling Embedded Module Definitions
-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
modulegroup=grp
moduletableset=tgt
moduleversion=ver
The -d modulecatalog, moduleschema, modulegroup,
moduletableset, and moduleversion options are similar to the mxsqlco -g
modulecatalog, moduleschema, modulegroup, moduletableset, and
moduleversion options because you use them to externally qualify simple
module names. These options are not CONTROL QUERY DEFAULT settings
(however, all other -d attr=value pairs are). In addition, there is no default value
for -d modulecatalog or -d moduleschema.
The module name settings must match the module management options you
specified during preprocessing. See Running the SQL/MX COBOL Preprocessor
on page 16-9.
The default attribute settings for compilation override settings in the
SYSTEM_DEFAULTS table but do not override the object name qualification or the










