SQL/MX Programming Manual for C and COBOL (G06.24+, H06.03+)
COBOL Program Compilation
HP NonStop SQL/MX Programming Manual for C and COBOL—523627-004
16-20
Windows-Hosted SQL/MX COBOL Preprocessor
moduleGroup
sets the moduleGroup attribute to group an application’s module files logically
by sharing the same name prefix. The moduleGroup becomes embedded in
the module file names as a common prefix and enables the use of OSS wild-
card file specification patterns to manage the files. For more information, see
Grouping on page 17-21. The maximum size for the moduleGroup attribute is
31 characters.
moduleTableset
sets the moduleTableSet attribute to use the module management targeting
feature. You can create different sets of module files that can be used against
different sets of tables. For more information, see Targeting on page 17-12.
The maximum size for the moduleTableSet attribute is 31 characters.
moduleVersion
sets the moduleVersion attribute to enable multiple versions of an
application’s module files to coexist while keeping the same MODULE directive
in each version. For more information, see Versioning on page 17-19. The
maximum size for the moduleVersion attribute is 31 characters.
moduleCatalog
sets the moduleCatalog attribute if the input sql-file does not have a
MODULE directive or its MODULE directive does not specify a catalog name. If
the moduleCatalog option is not set, the preprocessor emits the output
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
set 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.
Examples—mxsqlco
Run the SQL/MX COBOL preprocessor by 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