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-16
Windows-Hosted SQL/MX COBOL Preprocessor
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
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.
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
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
Windows-Hosted SQL/MX COBOL Preprocessor
The Windows-hosted SQL/MX COBOL preprocessor is a DLL file named
mxsqlcont.dll and is accompanied by a DLL loader named mxsqlco.exe. These
files are installed in the C:\Program Files\HP SQL-MX COBOL Preprocessors
directory in the Windows environment. Use either the command shell or the Korn shell
to run the preprocessor with the RUN command.