IBM DB2 Manual page 417

Table of Contents

Advertisement

Table 92. Parts of a package name that is generated by db2sqljcustomize
Package name part
Bytes-from-program-name
IDNumber
PkgIsolation
Table 93. PkgIsolation values and associated isolation levels
PkgNumber value
1
2
3
If -longpkgname is not specified, package-name-stem must be an
alphanumeric string of seven or fewer bytes.
If -longpkgname is specified, package-name-stem must be an alphanumeric
string of 127 or fewer bytes.
-singlepkgname package-name
Specifies that the customizer creates one package, with the name
package-name. If you specify this option, your program can run at only one
isolation level. You specify the isolation level for the package by specifying
the ISOLATION option in the -bindoptions options string.
If -longpkgname is not specified, package-name must be an alphanumeric
string of eight or fewer bytes.
If -longpkgname is specified, package-name must be an alphanumeric string
of 128 or fewer bytes.
Using the -singlepkgname option is not recommended.
Recommendation: If the target data source is DB2 for z/OS, use uppercase
characters for the package-name-stem or package-name value. DB2 for z/OS
systems that are defined with certain CCSID values cannot tolerate lowercase
characters in package names or collection names.
If you do not specify -rootpkgname or -singlepkgname, db2sqljcustomize
generates four package names that are based on the serialized profile name. A
serialized profile name is of the following form:
program-name_SJProfileIDNumber.ser
The four generated package names are of the following form:
Bytes-from-program-nameIDNumberPkgIsolation
Table 92 shows the parts of a generated package name and the number of
bytes for each part.
The maximum length of a package name is maxlen. maxlen is 8 if -longpkgname
is not specified. maxlen is 128 if -longpkgname is specified.
Number of bytes
m=min(Length(program-name),
maxlen–1–Length(IDNumber))
Length(IDNumber)
1
Table 93 shows the values of the PkgIsolation portion of a package name that is
generated by db2sqljcustomize.
Value
First m bytes of program-name, in
uppercase
IDNumber
1, 2, 3, or 4. This value represents the
transaction isolation level for the
package. See Table 93.
Isolation level for package
Uncommitted read (UR)
Cursor stability (CS)
Read stability (RS)
Chapter 7. JDBC and SQLJ reference information
401

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents