SQL/MX Programming Manual for Java

Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java523726-003
5-28
Options for Module Management
Options for Module Management
Use these options to determine how the module definition is generated and to assign
catalog, schema, group, target, and version to the module names of an application.
The customizer adds the catalog, schema, group, target, and version options, if
specified, to the externally qualified module name. The -P prefix before each option is
optional. For more information, see the MODULE Directive on page 4-12 and Module
Management Naming on page 6-12.
-createMDF
The -createMDF option directs the SQLJ customizer to generate a module definition
file (.m) in addition to storing the embedded module definition in the extended profile.
For more information, see Processing With Module Definition Files on page 1-17.
For example, this command directs the customizer to generate a module definition file:
java sqlj.tools.Sqlj -d=mybin -dir=myjava
-createMDF MyProg.sqlj
If you specify both the -createMDF and -SQLMXCustomizerVersion options
during translation, these options follow the same precedence rules as other SQLJ
options. For more information, see Precedence of Option Settings on page 5-9. See
-SQLMXCustomizerVersion on page 5-26.
-moduleCatalog
The -moduleCatalog option specifies the catalog name for the customizer to use as
a prefix for unqualified module names. The maximum length of the module catalog is
128 characters, and white space is disallowed on either side of the equals sign (
=). For
more information about the module name, see the MODULE Directive
on page 4-12
and Module Name Length on page 6-13.
For example, this command directs the customizer to use myCatalog as the catalog
for an unqualified module:
java sqlj.tools.Sqlj -moduleCatalog=mycatalog MyProg.sqlj
-moduleGroup
The -moduleGroup option specifies the Module Group Specification String (MGSS),
which is a regular or delimited identifier. For the syntax of identifiers, see the SQL/MX
Reference Manual. The maximum length of the MGSS is 31 characters, and white
space is disallowed on either side of the equals sign (=). See Module Name Length on
page 6-13.
Note. Do not confuse module definition files (.m), which are optionally generated during SQLJ
processing and are precursors to modules, with module files, which do not have file extensions
and reside in the /usr/tandem/sqlmx/USERMODULES directory. For more information, see
Module on page 1-16 and Module Definition File on page 1-19.