SQL/MX Programming Manual for Java
Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java—523726-003
5-4
Commands for Processing With Module Definition
Files
Commands for Processing With Module Definition Files
To enable SQL/MX-Release-1.8-style processing, which generates a module definition
file, set -createMDF=true (or -SQLMXCustomizerVersion=800) in a properties
file or on the command line. For more information, see -createMDF on page 5-28 (or
-SQLMXCustomizerVersion on page 5-26).
With SQL/MX-Release-1.8-style processing enabled, the processing of an SQLJ
source file follows these steps when you run the SQLJ translator program,
sqlj.tools.Sqlj:
1. Translation. See Commands for Translation With Module Definition Files on
page 5-4.
2. Java compilation. See Commands for Java Compilation on page 5-2.
3. Customization. See Commands for Customization With Module Definition Files on
page 5-5.
4. SQL compilation. See Commands for SQL Compilation by the SQL/MX Compiler
(MXCMP) on page 5-5.
For a diagram of these steps, see Figure 1-3 on page 1-18.
Commands for Translation With Module Definition Files
If you specify a .sqlj file (SQLJ source file) on the SQLJ command line and set
-createMDF=true (or -SQLMXCustomizerVersion=800), sqlj.tools.Sqlj
invokes translation, Java compilation, customization, and SQL compilation of the SQLJ
program. For example, issue this OSS command to initiate translation:
java sqlj.tools.Sqlj -createMDF MyProg.sqlj
You can disable Java compilation with the -compile option, disable customization
with the -profile option, and disable SQL compilation with the -sqlmx-compile
option.
For more information, see Translation
on page 1-11 and Options for the SQLJ
Translator on page 5-21.
Note. It is faster to translate multiple source files simultaneously rather than translating
individual source files one at a time.