DBPedias

All your database knowledge are belong to you

DB2 zOS

SYSIBM.SYSSTMT (V8)

Description: Contains one or more rows for each SQL statement of each DBRM.

Tablespace: SYSPLAN

Indexes(Fields):
None

Column name Description Data type
NAME Name of the DBRM.
NOT NULL
PLNAME Name of the application plan.
NOT NULL
PLCREATOR Authorization ID of the owner of the application plan.
NOT NULL
SEQNO Sequence number of this row with respect to a statement of the DBRM. The numbering starts with zero.
NOT NULL
STMTNO The statement number of the statement in the source program. A statement number greater than 32767 is stored as zero. If the value is zero, see STMTNOI for the statement number.
NOT NULL
SECTNO The section number of the statement.
NOT NULL
IBMREQD A value of Y indicates that the row came from the basic machine-readable material (MRM) tape.
NOT NULL
TEXT Text or portion of the text of the SQL statement.
NOT NULL WITH
DEFAULT
FOR BIT DATA
ISOLATION Isolation level for the SQL statement: ; R
RR (repeatable read)
T
RS (read stability)
S
CS (cursor stability)
U
UR (uncommitted read)
L
RS isolation, with a
X
RR isolation, with a
blank
The WITH clause was not specified on this statement. The isolation level is recorded in SYSPACKAGE.ISOLATION and in SYSPLAN.ISOLATION.

NOT NULL WITH
DEFAULT
STATUS Status of binding the statement: ; A
Distributed - statement uses DB2 private protocol access. The statement will be parsed and executed at the server using defaults for input variables during access path selection.
B
Distributed - statement uses DB2 private protocol access. The statement will be parsed and executed at the server using values for input variables during access path selection.
C
Compiled - statement was bound successfully using defaults for input variables during access path selection.
D
Distributed - statement references a remote object using DB2 private protocol access (a three-part name), but DB2 will implicitly use DRDA access instead because the statement was bound with bind option DBPROTOCOL(DRDA). This option allows the use of three-part names with DRDA access, but it requires that the package be bound at the target remote site.
E
Explain - statement is an SQL EXPLAIN statement. The explain is done at bind time using defaults for input variables during access path selection.
F
Parsed - statement did not bind successfully and VALIDATE(RUN) was used. The statement will be rebound at execution time using values for input variables during access path selection.
G
Compiled - statement bound successfully, but REOPT is specified. The statement will be rebound at execution time using values for input variables during access path selection.
H
Parsed - statement is either a data definition statement or a statement that did not bind successfully and VALIDATE(RUN) was used. The statement will be rebound at execution time using defaults for input variables during access path selection. Data manipulation statements use defaults for input variables during access path selection.
I
Indefinite - statement is dynamic. The statement will be bound at execution time using defaults for input variables during access path selection.
J
Indefinite - statement is dynamic. The statement will be bound at execution time using values for input variables during access path selection.
K
Control - CALL statement.
L
Bad - the statement has some allowable error. The bind continues but the statement cannot be executed.
M
Parsed - statement references a table that is qualified with SESSION and was not bound because the table reference could be for a declared temporary table that will not be defined until the package or plan is run. The SQL statement will be rebound at execution time using values for input variables during access path selection.
blank
The statement is non-executable, or was bound in a DB2 release prior to Version 5.

NOT NULL WITH
DEFAULT
ACCESSPATH For static statements, indicates if the access path for the statement is based on user-specified optimization hints. A value of 'H' indicates that optimization hints were used. A blank value indicates that the access path was determined without the use of optimization hints, or that there is no access path associated with the statement. For dynamic statements, the value is blank.
NOT NULL WITH
DEFAULT
STMTNOI If the value of STMTNOI is zero, the column contains the statement number of the statement in the source program. If both STMTNO and STMTNOI are zero, the statement number is greater than 32767.
NOT NULL WITH
DEFAULT
SECTNOI The section number of the statement.
NOT NULL WITH
DEFAULT
EXPLAINABLE Contains one of the following values: ; Y
Indicates that the SQL statement can be used with the EXPLAIN function and may have rows describing its access path in the userid.PLAN_TABLE.
N
Indicates that the SQL statement does not have any rows describing its access path in the usid.PLAN_TABLE.
blank
Indicates that the SQL statement was bound prior to Version 7.

NOT NULL WITH
DEFAULT
QUERYNO The query number of the SQL statement in the source program. SQL statements bound prior to Version 7 have a default value of –1. Statements bound in Version 7 or later use the value specified on the QUERYNO clause on SELECT, UPDATE, INSERT, DELETE, EXPLAIN, and DECLARE CURSOR statements. If the QUERYNO clause is not specified, the query number is set to the statement number.
NOT NULL WITH
DEFAULT –1

Adapted from material found in the IBM DB2 Universal Database for z/OS V8 SQL Reference (SC18-7426-02).