SQL/MX Programming Manual for Java

Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java523726-003
5-36
MXCMP Environment Variable
jar-file
is the OSS path name of a JAR file that contains extended profiles (.ser file). The
OSS directory:
Must exist and be accessible. Otherwise, an error is returned, and no module
is created.
Must not specify a Guardian subvolume (/G/...) or a remote directory in an
Expand network (/E/...)
Must not exceed 1024 characters
The mxCompileUserModule utility processes the extended profiles in a JAR file,
one at a time, and compiles each extended profile in its own MXCMP session.
module-name[, module-name]...
is a module name that represents an existing module definition in an extended
profile (.ser file). If you do not specify a module name, mxCompileUserModule
operates on the embedded module definition in the extended profile (.ser file) or on
all embedded module definitions in the extended profiles of the JAR file.
To identify a module definition:
Specify a simple, unqualified module name (for example, mod), and specify the
catalog, schema, group, table set, and/or version as -d compiler attributes.
Specify a fully qualified module name:
cat.sch.mod MODULEGROUP=grp MODULETABLESET=ts1
MODULEVERSION=ver1
cat.sch.\"grp^mod^ts1^ver1\"
For more information, see Module Management Naming on page 6-12.
If you specify an extended profile (.ser file) on the command line, you can specify
only one module name. If you specify a JAR file on the command line, you can
specify one or more module names.
MXCMP Environment Variable
To specify an alternate location of the SQL/MX compiler instead of the default location
of /G/system/system, use the MXCMP environment variable. This environment
variable is used by the mxCompileUserModule utility. Setting the MXCMP
environment variable allows you to direct mxCompileUserModule to use another
version of the MXCMP executable.
To set the MXCMP environment variable, enter this command at an OSS prompt
before invoking the mxCompileUserModule utility:
export MXCMP="/G/usr/mydir/mxcmp"