SQL/MX Programming Manual for Java

Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java523726-003
5-6
Using Command-Line Options
Using Command-Line Options
To process an SQL source file, you must invoke the SQLJ translator program,
sqlj.tools.Sqlj, on the OSS command line. This manual refers to this command
line as the SQLJ command line. For more information about the SQLJ command-line
syntax, see SQLJ Translator Command Line on page 5-10.
In addition to the basic processing commands described in Commands for Processing
an SQLJ Program on page 5-1, you can pass specific options to the SQLJ translator
program. The options that you specify on the SQLJ command line determine particular
conditions or values to be used during SQLJ processing.
This subsection describes the proper syntax for specifying prefixes, options, and flags
and for using the properties file. For a list of all the SQLJ command-line options, see
Summary of SQLJ Command-Line Options on page 5-11.
Prefixes, Options, and Flags
Prefixes, options, and flags are command-line arguments that you pass to the SQLJ
translator program. The next subsections describe these three basic types of
command-line arguments and explain how to specify them on the command line. For
more information about the SQLJ command-line syntax, see SQLJ Translator
Command Line on page 5-10.
Prefixes
Prefixes denote options to be passed to the Java compiler, the SQL/MX compiler, or
the SQLJ customizer. Place a prefix immediately before an option, without intervening
spaces, to pass the option to a specific function of the SQLJ translator program. Use
one of these prefixes:
-C denotes an option to be passed to the Java compiler.
-M denotes an option to be passed to the SQL/MX compiler.
-P denotes an option to be passed to the SQLJ customizer.
For example, specify
-C-compiler-encoding-flag to pass the -compiler-
encoding-flag
option to the Java compiler.
If you do not specify a prefix before an option, the SQLJ translator program either
applies the option to the process of translation or returns an error if the option does not
apply to translation. The -C and -M options are required for Java compiler and
SQL/MX compiler options, whereas the -P option is optional for SQLJ customizer
options.