SQL/MX Programming Manual for Java

Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java523726-003
5-7
Properties File
Options
The options that you specify on the SQLJ command line determine particular
conditions or values to be used during SQLJ processing. Use the equals sign (=) to
assign a value to an option or a flag setting. For example, to set the default catalog to
cat for an SQLJ program, specify this argument on the SQLJ command line:
-catalog=cat
Be aware that the names of the options are case-sensitive. The values that you pass to
the options are case-insensitive, unless you delimit them with double quotation marks,
such as -catalog=\"myCatalog\". To use reserved characters, like double
quotation marks, on the command line, follow the syntactic rules of the OSS shell. For
more information, see the shell-quoting conventions in the Open System Services
User’s Guide.
Flags
Flags are options that accept only Boolean values. Acceptable Boolean values are:
true or false
on or off
yes or no
1 or 0
To turn on a flag, assign true (or on, yes, or 1) to the flag or simply specify the flag
name. For example, both arguments turn on the -missingSQLObject flag:
-missingSQLObject=true
-missingSQLObject
To turn off a flag, you must specify false (or off, no, or 0). For example, this argument
turns off the -missingSQLObject flag:
-missingSQLObject=false
Properties File
You can use a properties file instead of the command line to supply options to the
SQLJ translator program. A properties file is an ASCII text file that typically uses
.properties as the suffix of the file name.
The default properties file is sqlj.properties. The sqlj.properties file is not
supplied with the product. Therefore, you must create it yourself in order to use it. The
SQLJ translator program uses the options in the default properties file, unless you
specify the options on the SQLJ command line or pass another properties file to the
SQLJ translator program. For more information, see Precedence of Option Settings on
page 5-9.