SQL/MX Programming Manual for C and COBOL (H06.10+, J06.03+)
COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—544617-003
16-17
OSS-Hosted SQL/MX COBOL Preprocessor
MODULE directive using the default catalog naming rules described in the
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.
Examples—mxsqlco
Run the SQL/MX COBOL preprocessor using the mxsqlco command. This example
creates an annotated source file and module definition file:
mxsqlco sqlprog.ecob -c sqlprog.cbl -m sqlprog.m -g \
moduleTableSet=T1
This example creates a self-contained, annotated output source file that contains an
embedded module definition:
mxsqlco sqlprog.ecob -c sqlprog.cbl \
-g moduleGroup=INVENTORY -g moduleVersion=V2










