SQL/MX Programming Manual for Java

Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java523726-003
5-39
Example—mxcmp
MXCMP_PLACES_LOCAL_MODULES is ON, mxcmp generates modules in the
same directory where you invoke it.
For more information about MXCMP_PLACES_LOCAL_MODULES, see the
SQL/MX Reference Manual.
-d compiler-attribute-name=compiler-attribute-value
specifies default attribute settings for compilation. The default attribute settings for
compilation override any settings in the SYSTEM_DEFAULTS table but do not
override the settings of embedded CONTROL QUERY DEFAULT, DECLARE, or
SET statements, which are set during customization. For more information about
default attributes, see the SYSTEM_DEFAULTS table in the SQL/MX Reference
Manual.
module-definition-file
is the name of the input module definition file (.m) that was generated by the SQLJ
customizer.
Example—mxcmp
This command compiles the module definition file named MyProg_SJProfile0.m
and displays summary information in addition to error messages:
mxcmp -v MyProg_SJProfile0.m
Note. Currently, SQL/MX does not support locally placed modules for SQLJ applications.
The modules of an SQLJ application must be stored in the /usr/tandem/sqlmx/
USERMODULES directory. Otherwise, the program will either run dynamically or return an
SQL exception indicating that the module is missing or corrupted. For more information,
see SQL/MX Compiler Errors
on page 4-5.