Qualification fields for READS requests
Monitor programs can use the qualification area of READS requests to specify constraints on the data that is to be returned by the request.
If the qualification area does not exist (length of binary zero), information is obtained from all active allied threads and database access threads. Information is not obtained for any inactive database access threads that might exist.
Certain trace records cannot be qualified. Any qualifications are ignored for the following for the trace records that have the following IFCIDs: 1, 2, 106, 202, 217, 225, 230.
All other synchronous records can be qualified. However, certain trace records can use only certain qualifications fields. For information about the qualifications that particular trace records can use, see Table 4.
Qualification area fields for READS requests
Unless the qualification area has a length of binary zero (in which case the area does not exist), the address of the qualification area supplied by the monitor program points to an area that is formatted by the monitor program, as shown in the following table.


Name | Hex offset | Data type | Description |
---|---|---|---|
WQALLEN | 0 | Signed two-byte integer | Length of the qualification area, plus 4. The following constants set the qualification area length field:
For information about the qualification fields that particular trace records can use, see Table 4. For more information about the locations of qualification fields in the qualification area, see member DSNDWQAL of the prefix.SDSNMACS data set. |
2 | Signed two-byte integer | Reserved. | |
WQALEYE | 4 | Character, 4 bytes | Eye catcher for block, WQAL. |
WQALACE | 8 | Address | Thread identification token value. This value indicates the specific thread wanted; binary zero if it is not to be used. |
WQALAIT2 | C | Address | Reserved. |
WQALPLAN | 10 | Character, 8 bytes | Plan name; binary zero if it is not to be used. |
WQALAUTH | 18 | Character, 8 bytes | The current primary authorization ID; binary zero if it is not to be used. |
WQALOPID | 20 | Character, 8 bytes | The original authorization ID; binary zero if it is not to be used. |
WQALCONN | 28 | Character, 8 bytes | Connection name; binary zero if it is not to be used. |
WQALCORR | 30 | Character, 12 bytes | Correlation ID; binary zero if it is not to be used. |
WQALREST | 3C | Character, 32 bytes | Resource token for a specific lock request when IFCID 149 is specified. The field must be set by the monitor program. The monitor program can obtain the information from a previous READS request for IFCID 150 or from a READS request for IFCID 147 or 0148.
|
WQALHASH | 5C | Hex, 4 bytes | Resource hash value that specifies the resource token for a specific lock request when IFCID 149 is specified. The field must be set by the monitor program. The monitor program can obtain the information from a previous READS request for IFCID 150 or possibly from a READS request for IFCID 147 or 0148.
|
WQALASID | 60 | Hex, 2 bytes | ASID that specifies the address space of the process. |
WQALFOPT | 62 | Hex, 1 byte | Filtering options for IFCID 150:
|
WQALFLGS | 63 | Hex, 1 byte | Options for 147/148 records:
|
WQALLUWI | 64 | Character, 24 bytes | LUWID (logical unit of work ID) of the thread wanted; binary zero if it is not to be used |
7C | Character, 16 bytes | Location name. If specified, data is returned only for distributed agents that originate at the specified location. Example: If site A is located where the IFI program is running and SITE A is specified in the WQALLOCN, database access threads and distributed allied agents that execute at SITE A are reported. Local non-distributed agents are not reported. Example: If site B is specified in the WQALLOCN and the IFI program is still executing at site A, information on database access threads that execute in support of a distributed allied agent at site B are reported. Example: If WQALLOCN is not specified, information on all threads that execute at SITE A (the site where the IFI program executes) is returned. This includes local non-distributed threads, local database access agents, and local distributed allied agents. |
|
WQALLTYP | 8C | Character, 3 bytes | Specifies the type of log data access. 'CI ' must be specified to obtain log record control intervals (CIs). |
WQALLMOD | 8F | Character, 1 byte | The mode of log data access:
|
WQALLNUM | 90 | Hex, 2 bytes | The number of log CIs to be returned. The valid range is X'0001' to X'0007'. |
WQALCDCD | 92 | Character, 1 byte | Data description request flag:
|
93 | Hex, 1 byte | Reserved. | |
94 | Hex, 8 bytes | Reserved. | |
WQALGBPN | 9C | Character, 8 bytes | Group buffer pool name for IFCID 254. Buffer pool name for IFCID 199. To specify a single buffer pool or group buffer pool, specify the buffer pool name in hexadecimal, followed by hexadecimal blanks. Example: To specify buffer pool BP1, put X'C2D7F14040404040' in this field. To specify more than one buffer pool or group buffer pool, use the pattern-matching character X'00' in any position in the buffer pool name. X'00' indicates that any character can appear in that position, and in all positions that follow. Example: If you put X'C2D7F10000000000' in this field, you indicate that you want data for all buffer pools whose names begin with BP1, so IFI collects data for BP1, BP10 through BP19, and BP16K0 through BP16K9. Example: If you put X'C2D700F100000000' in this field, you indicate that you want data for all buffer pools whose names begin with BP, so IFI collects data for all buffer pools. IFI ignores X'F1' in position four because it occurs after the first X'00'. |
WQALLCRI | A4 | Hex, 1 byte | Log Record Selection Criteria: Indicates what types of log records are returned:
|
WQALLOPT | A5 | Hex, 1 byte | Processing options relating to decompression and data conversion:
|
WQALFLTR | A6 | Hex, 1 byte | For IFCID 316 requests, WQALFLTR identifies the filter method:
|
WQALFLTR (continued) |
For IFCID 401 requests:
For IFCID 317 requests, WQALFLTR identifies the filter method:
For IFCID 306 requests, WQALFLTR indicates whether Db2 merges log records in a data sharing environment:
|
||
WQALFFLD | A7 | Character, 1 byte | For an IFCID 316 request, when WQALFLTR is X'01' or X'02', this field specifies the statistics field that is used to determine the cached statements about which Db2 reports. You can enter the following values:
(Continued in the following row.) |
WQALFFLD
(continued) |
A7 | Character, 1 byte |
(Continued from the previous row.)
(Continued in the following row.) |
WQALFFLD
(continued) |
A7 | Character, 1 byte |
(Continued from the previous row.)
|
WQALFVAL | A8 | Signed 4-byte integer | For an IFCID 316 request, when WQALFLTR is X'02', this field and WQALFFLD determine the cached statements about which Db2 reports. To be eligible for reporting, a cached statement must have a value for WQALFFLD that is no smaller than the value that you specify in WQALFVAL. Db2 reports information on as many eligible statements as fit in the return area. |
WQALSTNM | AC | Character, 16 bytes | For an IFCID 317 request, when WQALFLTR is not X'04', this field specifies the name of a cached statement about which Db2 reports. This is a name that Db2 generates when it caches the statement. To obtain this name, issue a READS request for IFCID 316. The name is in field QW0316NM. This field and WQALSTID uniquely identify a cached statement. |
WQALSTID | BC | Unsigned 4-byte integer | For an IFCID 316 or IFCID 317 request, this field specifies the ID of a cached statement about which Db2 reports. Db2 generates this ID when it caches the statement. To obtain the ID, use the following options:
|
WQALEUID | C0 | Character, 16 bytes | The first 16 bytes of the user's workstation user ID. This value can be different from the authorization ID that is used to connect to Db2. |
WQALEUTX | D0 | Character, 32 bytes | The first 32 bytes of the name of the transaction or application that the user is running. This value identifies the application that is running, not the product that is used to run the application. |
WQALEUWN | F0 | Character, 18 bytes | The first 18 bytes of the user's workstation name. This value can be different from the authorization ID used to connect to Db2. |
WQALPLOC | 102 | Character, 128 bytes | The package location name. |
WQALPCOL | 182 | Character, 128 bytes | The collection name of the package that the user is running. |
WQALPPNM | 202 | Character, 128 bytes | The program name of the package that the user is running. |
WQALROLE | 282 | Character, 128 bytes | The connection role of the user. This field contains binary zeros if the client does not supply this information. |
WQALRTBL | 302 | Character, 128 Bytes | The name of the referenced table. |
WQALEXCD | 382 | Character, 4 bytes | This field specifies the level of exclude filtering to be performed, according to the following values:
Continues in the following row. |
WQALEXCD (continued) |
Continued from the previous row.
|
||
386 | Character, 2 bytes | Reserved. | |
WQALFVAL64 | 388 | Signed integer, 8 bytes | 64-bit threshold value for IFCID 316 and 0401 requests. If the value is non-zero and the target system is DB2® 10 or higher, this value is used in place of WQALFVAL. |
WQALLRBA | 390 | Character, 12 bytes | For IFCID 129, the third through twelfth bytes are the starting log RBA of the CIs to be returned. The two high-order bytes are not used. For IFCID 306:
|
WQALWQLS | 3A0 | Address, 4 bytes | Reserved for future. Must be 0. |
WQALWQL4 | 3A4 | Address, 4 bytes | Address of WQLS or 0. |
reserved | 3A8 | Character, 8 bytes | Reserved |
- The only valid filters for DDF/RRSAF 147/148 rollup records are WQALEUID, WQALEUTX, and WQALEUWN. For a 147/148 request, DDF/RRSAF records are not processed if any of the following WQAL fields are not X'00':
- WQALACE
- WQALAUTH
- WQALOPID
- WQALPLAN
- WQALCORR
- WQALLUWI
- WQALLOCN
- WQALASID
- WQALCONN
- WQALPLOC
- WQALPCOL
- WQALPPNM
- WQALROLE
WQLS maps the area used to filter IFCID 306 records. Unless the qualification area has a length of binary zero (in which case the area does not exist), the address of the qualification area supplied by the monitor program points to an area that is formatted by the monitor program, as shown in the following table.
Name | Hex offset | Data type | Description |
---|---|---|---|
WQLSLEN | 0 | Signed integer, 4 bytes | Length of WQLS. |
WQLSEYE | 4 | Character, 4 bytes | Eye catcher for block, WQLS. |
WQLSFLG | 8 | Hex, 1 byte | Flags:
|
reserved | 9 | Character, 47 bytes | Reserved |
WQLSTYPE | 38 | Character, 4 bytes | Type of qualification items:![]()
![]() |
WQLSITEM | 3C | Signed integer, 4 bytes | Number of qualification items |
The fields that are mapped by WQLSDBPS are located at offset X'40' in WQLS.
Name | Hex offset | Data type | Description |
---|---|---|---|
WQLSDBID | 0 | Hex, 2 bytes | DBID of database. |
WQLSPSID | 2 | Hex, 2 bytes | PSID of the table space for filtering at the table space level, or OBID of the table for filtering at the table level. |
If your monitor program does not initialize the qualification area, the READS request is denied.
Qualification fields that are used by IFCIDs
The following table lists the qualification fields that can be used for certain IFCIDs that contain synchronous data. For descriptions of these IFCIDs, see Trace fields for READS requests
These IFCIDs | Are allowed to use these qualification fields | Minimum length (WQALLEN constant) to use all qualifications 3 |
---|---|---|
0001, 0002, 0104, 0106, 0202, 0217, 0225, 0230, 0373 | None. All qualifications are ignored. | Not applicable. |
0124, 0147, 0148, 0150, 0346 | WQALLN9 | |
0129 |
|
WQALLN23 |
0149 |
|
WQALLN6 |
0150 |
|
WQALLN21 |
0185 |
|
WQALLN4 |
0199, 0254 |
|
WQALLN5 |
0306 |
|
WQALLN11 |
0316 |
Filtering by the following fields apply, only after all other filters for IFCID 316 are applied:
|
WQALLN9 |
0317 |
|
WQALLN5 |
0401 |
|
WQALLN9 |
- Db2 allows you to partially qualify a field and fill the rest of the field with binary zero. For example, the 12-byte correlation value for a CICS® thread contains the 4-character CICStransaction code in positions 5-8. Assuming a CICS transaction code of AAAA, the following hexadecimal qual-area correlation qualification can be used to find the first transaction with a correlation value of AAAA in positions 5-8: X'00000000C1C1C1C100000000'.
- X'00' in this field indicates a pattern-matching character. X'00' in any position of the field indicates that IFI collects data for buffer pools whose names contain any character in that position and all following positions.
- The specified WQALLEN constant represents the minimum qualification area length that is required for the use of all qualifications for the specified IFICIDs. A longer length can also be specified for any IFCID. However, the length must match one of these constants.