SQL/MX 3.2 Programming Manual for C and COBOL (H06.25+, J06.14+)

COBOL Program Compilation
HP NonStop SQL/MX Release 3.2 Programming Manual for C and COBOL663854-002
16-31
Compiling a Module Definition File
generate module definition files as 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
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 OSS directory must not be a remote directory in an Expand network.
The OSS directory must not exceed 1024 characters.
mxcmp [ -e ] [ -v ]
[ -g {moduleGlobal|moduleLocal[=OSSdir]}]
[ -d compiler-attribute-name=compiler-attribute-value]...
module-definition-file