SYSPACKAGESTAT
The SYSPACKAGESTAT view contains one row for each SQL package in the SQL schema.
The following table describes the columns in the SYSPACKAGESTAT view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
PACKAGE_SCHEMA | COLLID | VARCHAR(128) | Name of the schema |
PACKAGE_NAME | NAME | VARCHAR(128) | Name of the SQL package |
PACKAGE_OWNER | OWNER | VARCHAR(128) | Owner of the SQL package |
PACKAGE_CREATOR | CREATOR | VARCHAR(128) | Creator of the SQL package |
CREATION_TIMESTAMP | TIMESTAMP | CHAR(26) | Timestamp of when the SQL package was created |
DEFAULT_SCHEMA | QUALIFIER | VARCHAR(128) | Implicit name for unqualified tables, views, and indexes |
ISOLATION | ISOLATION | CHAR(2) | Isolation option specification:
|
CONCURRENTACCESSRESOLUTION | CONCURRENT | CHAR(1) | Specifies the concurrent access resolution:
|
SECONDARY_SPACE_COUNT | PKG_SPACES | INTEGER | Number of spaces in the package. |
PENDING_FULL | PENDFULL | VARCHAR(3) Nullable |
Indicates whether the package is
pending full.
Contains null for a DRDA package. |
PACKAGE_TYPE | PKG_TYPE | VARCHAR(16) | Indicates the type of package.
|
NUMBER_STATEMENTS | NBRSTMTS | INTEGER | Number of SQL statements in the package |
PACKAGE_USED_SIZE | PKSIZE | INTEGER | Number of bytes that are used for SQL statements and access plans in the package. |
NUMBER_DUMMIES | NBRDUMMIES | INTEGER Nullable |
Number of dummy statements in the
package. Contains null for a DRDA package. |
NUMBER_COMPRESSIONS | PGM_CMP | INTEGER Nullable |
Number of times the package has been
compressed. Contains null for a DRDA package. |
STATEMENT_CONTENTION_COUNT | CONTENTION | BIGINT | Number of times contention occurred when attempting to store a new access plan. |
EXTENDED_INDICATOR | EXTIND | VARCHAR(9) | Indicates the EXTIND attribute:
|
C_NUL_REQUIRED | CNULRQD | VARCHAR(10) | Indicates the CNULRQD attribute:
|
NAMING | NAMING | VARCHAR(4) | Indicates the NAMING attribute:
|
TARGET_RELEASE | TGTRLS | VARCHAR(6) | Indicates the target release of the package (VxRxMx). |
EARLIEST_POSSIBLE_RELEASE | MINRLS | VARCHAR(6) Nullable |
Indicates the earliest IBM i release
that supports all the SQL statements in the package (VxRxMx).
Contains null if the earliest release has not yet been determined. |
RDB | RDB | VARCHAR(18) | Indicates the RDB specified for the
package.
|
CONSISTENCY_TOKEN | CONTOKEN | VARBINARY(8) Nullable |
Indicates the consistency token of
the package. Contains null if the package is not a DRDA package. |
ALLOW_COPY_DATA | ALWCPYDTA | VARCHAR(9) | Indicates the ALWCPYDTA attribute:
|
LOB_FETCH_OPTIMIZATION | OPTLOB | VARCHAR(9) | Indicates the LOB optimization attribute:
|
DECIMAL_POINT | DECPNT | VARCHAR(7) | Indicates the decimal point for numeric
constants used in SQL statements.
|
SQL_STRING_DELIMITER | STRDLM | VARCHAR(9) | Indicates the character used as the
string delimiter in the SQL statements.
|
DATE_FORMAT | DATFMT | VARCHAR(4) | Indicates the DATFMT attribute:
|
DATE_SEPARATOR | DATSEP | CHAR(1) | Indicates the date separator. |
TIME_FORMAT | TIMFMT | VARCHAR(4) | Indicates the TIMFMT attribute:
|
TIME_SEPARATOR | TIMSEP | CHAR(1) | Indicates the time separator. |
DYNAMIC_DEFAULT_SCHEMA | DYNDFTCOL | VARCHAR(4) Nullable |
Indicates whether the value for DFTRDBCOL
should be used for implicit qualification on dynamic SQL statements:
|
CURRENT_RULES | SQLCURRULE | VARCHAR(4) | Indicates the SQLCURRULE attribute:
|
ALLOW_BLOCK | ALWBLK | VARCHAR(8) | Indicates the ALWBLK attribute:
|
DELAY_PREPARE | DLYPRP | VARCHAR(4) | Indicates the DLYPRP attribute:
|
USER_PROFILE | USRPRF | VARCHAR(7) | Specifies the user profile used for
authority checking:
|
DYNAMIC_USER_PROFILE | DYNUSRPRF | VARCHAR(6) | Specifies the user profile used for
dynamic SQL statements:
|
SORT_SEQUENCE | SRTSEQ | VARCHAR(12) | Indicates whether the package uses
a collating sequence:
|
LANGUAGE_IDENTIFIER | LANGID | CHAR(3) Nullable |
The language ID sort sequence. Contains null if the sort sequence is not *LANGIDSHR or *LANGIDUNQ. |
SORT_SEQUENCE_SCHEMA | SRTSEQSCH | CHAR(10) Nullable |
The sort sequence table system schema. Contains null if the sort sequence is hex. |
SORT_SEQUENCE_NAME | SRTSEQNAME | CHAR(10) Nullable |
The sort sequence table name. Contains null if the sort sequence is hex. |
RDB_CONNECTION_METHOD | RDBCNNMTH | VARCHAR(4) | Specifies the semantics used for
CONNECT statements:
|
DECRESULT_MAXIMUM_PRECISION | DECMAXPRC | SMALLINT | Specifies the maximum precision.
|
DECRESULT_MAXIMUM_SCALE | DECMAXSCL | SMALLINT | The maximum scale (number of decimal positions to the right of the decimal point) that should be returned for result data types. |
DECRESULT_MINIMUM_DIVIDE_SCALE | DECMINDIV | SMALLINT | The minimum divide scale (number of decimal positions to the right of the decimal point) that should be returned for both intermediate and result data types. |
DECFLOAT_ROUNDING_MODE | DECFLTRND | VARCHAR(8) Nullable |
Indicates the DECFLOAT rounding mode:
|
DECFLOAT_WARNING | DECFLTWRN | VARCHAR(3) | Indicates whether DECFLOAT warnings
are returned.
|
SQLPATH | SQLPATH | VARCHAR(3483) Nullable |
Identifies the SQL path. Contains the null value if an SQL path is not specified. |
LAST_USED_TIMESTAMP | LASTUSED | TIMESTAMP Nullable |
The timestamp of the last time the package was used. If the package has never been used, contains null. |
DAYS_USED_COUNT | DAYSUSED | INTEGER | The number of days the package was used since the last time the usage statistics were reset. If the package has never been used since the last time the usage statistics were reset, contains 0. |
LAST_RESET_TIMESTAMP | LASTRESET | TIMESTAMP Nullable |
The timestamp of the last time the usage statistics were reset. If the statistics have never been reset, contains null. |
SYSTEM_PACKAGE_NAME | SYS_NAME | CHAR(10) | System name of the package. |
SYSTEM_PACKAGE_SCHEMA | SYS_DNAME | CHAR(10) | System name of the schema containing the package. |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |