begins with a dash (-). Do not include spaces between -J and the JVM option.
If you need to specify multiple JVM options, precede each compiler option
with -J. For example:
-J-Xmx128m -J-Xmine2M
SQLJ-source-file-name
Specifies a list of SQLJ source files to be translated. This is a required
parameter. All SQLJ source file names must have the extension .sqlj.
Output
For each source file, program-name.sqlj, the SQLJ translator produces the following
files:
v The generated source program
The generated source file is named program-name.java.
v A serialized profile file for each connection context class that is used in an SQLJ
executable clause
A serialized profile name is of the following form:
program-name_SJProfileIDNumber.ser
v If the SQLJ translator invokes the Java compiler, the class files that the compiler
generates.
Examples
sqlj -encoding=UTF8 -C-O MyApp.sqlj
Related tasks
“Program preparation for SQLJ programs” on page 183
Related reference
“db2sqljcustomize - SQLJ profile customizer”
“db2sqljprint - SQLJ profile printer” on page 412
“db2sqljbind - SQLJ profile binder” on page 407
db2sqljcustomize - SQLJ profile customizer
db2sqljcustomize processes an SQLJ profile, which contains embedded SQL
statements.
By default, db2sqljcustomize produces four DB2 packages: one for each isolation
level. db2sqljcustomize augments the profile with DB2-specific information for use
at run time.
Authorization
The privilege set of the process must include one of the following authorities:
v SYSADM authority
v DBADM authority
v If the package does not exist, the BINDADD privilege, and one of the following
privileges:
– CREATEIN privilege
– PACKADM authority on the collection or on all collections
v If the package exists, the BIND privilege on the package
Command syntax
Chapter 7. JDBC and SQLJ reference information 395