SQL/MX Programming Manual for Java

Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java523726-003
5-5
Commands for Processing With Module Definition
Files
Commands for Customization With Module Definition Files
If you specify a .ser file (profile) or .jar file containing profiles on the SQLJ
command line, sqlj.tools.Sqlj performs customization on each profile. For
example, issue this OSS command to initiate customization:
java sqlj.tools.Sqlj -createMDF MyProg_SJProfile0.ser
MyApp.jar
For more information, see Customization With Module Definition Files on page 1-19
and Options for the SQLJ Customizer on page 5-26.
If you pass a JAR file to the SQLJ translator program, the profiles in the JAR file must
be listed in the manifest file, and the JAR file must be in the class path. For more
information, see Customizing Profiles in a JAR File on page 6-7.
Commands for SQL Compilation by the SQL/MX Compiler
(MXCMP)
If you specify a .m file (module definition file) on the SQLJ command line,
sqlj.tools.Sqlj performs SQL compilation on the file. For example, issue this
OSS command to initiate SQL compilation:
java sqlj.tools.Sqlj MyProg_SJProfile0.m
For more information, see Compilation by the SQL/MX Compiler (MXCMP) on
page 1-19 and Options for the SQL/MX Compiler on page 5-32.
You can also invoke the SQL/MX compiler independently of the SQLJ translator
program by running the mxcmp command. For example, issue this OSS command to
initiate SQL compilation:
mxcmp MyProg_SJProfile0.m
For more information, see SQL/MX Compiler Command Line on page 5-38.