SQL/MX Programming Manual for C and COBOL (H06.10+, J06.03+)
C/C++ Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—544617-003
15-21
Windows-Hosted SQL/MX C/C++ Preprocessor
SQL/MX Reference Manual. The maximum size for the moduleCatalog
attribute is 128 characters.
moduleSchema
sets the moduleSchema attribute if the input sql-file does not have a
MODULE directive or its MODULE directive does not specify a schema name.
The moduleSchema can contain a catalog name. If the moduleSchema
attribute is not used, the preprocessor emits the output MODULE directive by
using the default schema naming rules described in the SQL/MX Reference
Manual. The maximum size for the moduleSchema attribute is 128 characters.
[ -Q {[invokeCatalog=catalog-name]
|[invokeSchema=schema-name]
}]
specifies the catalog name and schema name qualifiers for objects inside the
invoke clause. If you use this option, specify one of the attributes—
invokeCatalog or invokeSchema. If you want to specify both the attributes,
repeat the -Q option for each attribute.
invokeCatalog
sets the catalog for unqualified objects inside the invoke clause as catalog-
name. If a catalog is specified using the Control Query Default Catalog or
Declare Catalog, this attribute has no effect. The maximum size of the
invokeCatalog attribute is 128 characters.
invokeSchema
sets the schema for unqualified objects inside the invoke clause as schema-
name. If a schema is specified using the Control Query Default Schema or
Declare Schema, this attribute has no effect. The maximum size of the
invokeSchema attribute is 128 characters.
Example—mxsqlc
Run the SQL/MX C/C++ preprocessor using the mxsqlc command. This C++ example
creates an annotated source file and module definition file:
mxsqlc sqlprog.ecpp -c sqlprog.cpp -x -m sqlprog.m -p \
-g moduleGroup=INVENTORY -g moduleVersion=V2
This C++ example creates a self-contained, annotated output source file that contains
an embedded module definition:
mxsqlc sqlprog.ecpp -c sqlprog.cpp -g moduleTableSet=TEST1
Windows-Hosted SQL/MX C/C++ Preprocessor
The Windows hosted SQL/MX C/C++ preprocessor is a DLL file named
mxsqlcnt.dll and is accompanied by a DLL loader named mxsqlc.exe. These










