SQL/MX Programming Manual for Java
Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java—523726-003
5-21
Options for the SQLJ Translator
-warn
The -warn option consists of a set of flags that specify which conditions should return 
warnings and which conditions should be ignored during translation. 
Combine the flags in a single, comma-separated string. Spaces are disallowed before 
and after the commas. 
The SQLJ translator program processes these flags in the order in which they appear 
on the command line: 
For example, this command turns off warnings if there is a possible loss of precision or 
a mismatch between named iterators and SQL/MX database columns:
java sqlj.tools.Sqlj -warn=noprecision,nostrict MyProg.sqlj
Options for the SQLJ Translator
Use these options to influence how the SQLJ translator program translates the SQLJ 
source file into the Java source file (.java file) and profiles (.ser files). This 
subsection covers only a few translation options; other categories describe additional 
translation options. 
-compile
The -compile flag specifies whether to compile the Java source files (.java files) 
generated by the translator or specified on the command-line. By default, the setting of 
this flag is true. Set this flag to false if you plan to compile the .java files at a later 
time. A false setting does not prevent translation, customization, or SQL compilation 
from occurring.
Flags for -warn Description
precision (default)
noprecision
*
By default, warns if there is a possible loss of precision 
when moving values from SQL database columns to 
Java host variables.
nulls (default)
nonulls
*
By default, warns if nullable data from SQL database 
columns are retrieved into primitive Java host variables.
strict (default)
nostrict
*
By default, directs SQLJ to match named iterators 
against columns returned by SQL/MX and warns if there 
is a mismatch.
verbose
noverbose (default)
*
Provides additional informational messages about 
translation.
all
none
Enables (all) or disables (none) all warnings. This flag 
takes priority over default settings.
*
 The “no” flags cause the conditions to be ignored.










