The INCLUDE and EXCLUDE subcommand options define a list of identifier values that are included or excluded.
The INCLUDE and EXCLUDE subcommand options are used to include or exclude data associated with specific OMEGAMON® XE for DB2® PE identifiers. If you omit this subcommand option, all records are included.
Use INCLUDE to define a list of identifier values that are included in processing. Use EXCLUDE to define a list of identifier values that are excluded from processing.
INCLUDE/EXCLUDE block: |--+-INCLUDE-+--(--PE_identifier--(--+-value------------------+--)--)--| '-EXCLUDE-' +-L(list name)-----------+ +-G(set name)------------+ +-R(from_value,to_value)-+ +-GT(value)--------------+ +-LT(value)--------------+ +-GE(value)--------------+ '-LE(value)--------------'
The following options are available with INCLUDE and EXCLUDE:
If you do not specify an identifier when using the REDUCE, REPORT, TRACE, or FILE subcommand, OMEGAMON XE for DB2 PE uses the identifiers specified for GLOBAL INCLUDE or EXCLUDE.
You can use an OMEGAMON XE for DB2 PE identifier in either INCLUDE or EXCLUDE, but not with both in the same command or subcommand.
Identifier values must consist of the following characters: A -- Z, #, $, @, >, <, or 0 -- 9. If the value you want to include contains a character that is not in this list, use an asterisk in its place.
If a set name is specified in a value block, only that set is processed. If you want all identifier values that are not contained in any set specification to be reduced and reported individually, enter an asterisk (*) in the INCLUDE or EXCLUDE options following the last set name. For example:
·
·
·
INCLUDE ( PRIMAUTH (G(AUTHGRP1) G(AUTHGRP2) *))
·
·
·
This indicates that the authorization IDs contained in the sets AUTHGRP1 and AUTHGRP2 are processed as sets, and all other authorization IDs are processed individually.
This is only valid for SQLCODE.
This is only valid for SQLCODE.
This is only valid for SQLCODE.
This is only valid for SQLCODE.
The following table shows which OMEGAMON XE for DB2 PE identifiers can be used with the different commands and subcommands.
| OMEGAMON XE for DB2 PE identifier | ACCT | AUD | I/O | LOCK | RT | SQL | STAT | UTIL |
|---|---|---|---|---|---|---|---|---|
| ACE (Agent control element address) | t,f | r,t,p | ||||||
| CLASS (DB2 trace class) | t,f | |||||||
| CONNECT (Connection ID) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p | |
| CONNTYPE (Connection type) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p | |
| CORRNAME (Correlation name) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p | |
| CORRNMBR (Correlation number) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p | |
| DATABASE (Database name) | r,p | r,t,p,f | ||||||
| DATASET (Data set name) | r,p | |||||||
| ENDUSER (End user ID) | r,t,p,f | r,t,p,f | r,t,p,f | t,f | r,t,p,f | |||
| FIELD (Comparison with data in a record field) | t,f | |||||||
| GROUP (Group name) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p,f | r,t,p |
| IFCID (Instrumentation Facility Component Identifier) | t,f | r,t,p | ||||||
| INSTANCE (Instance number) | r,t,f | r,t,p,f | t,f | t,f | r,t,p | r,t,p | ||
| LOCATION (Location name) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p,f | r,t,p |
| MAINPACK (Main package) | r,t,p,f | |||||||
| MEMBER (Member name) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p,f | r,t,p |
| ORIGAUTH (Original authorization ID) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p | |
| PACKAGE (Package information) or PROGRAM (Program information) | r,t,p,f | |||||||
| PAGESET (Page set name) | r,p | r,t,p,f | ||||||
| PLANNAME (Plan name) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p | |
| PRIMAUTH (Primary authorization ID) or AUTHID (Authorization ID) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p | |
| REQLOC (Requester location) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p | |
| RESOURCETYPE (Resource type) | r,t,p,f | |||||||
| RMID (Resource manager identifier) | t,f | |||||||
| SQLCODE | t,f | t | ||||||
| SUBSYSTEMID (Subsystem ID) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p,f | r,t,p |
| THREADTYPE (Thread type) | r,t,p,f | r,t,p,f | r,p | r,t,p,f | t,f | r,t,p | r,t,p | |
| TRANSACT (End user transaction name) | r,t,p,f | t,p,f | r,t,p,f | t,f | r,t,p,f | |||
| TYPE (Event type) | r,t,f | |||||||
| WSNAME (End user workstation name) | r,t,p,f | t,p,f | r,t,p,f | t,f | r,t,p,f | |||
|
Note:
|
||||||||
If you use the INCLUDE or EXCLUDE subcommand option with one of these OMEGAMON XE for DB2 PE identifiers, note that the scope of these identifiers affects only the relevant parts of trace records, but not the entire trace records. This means that all records are processed, but only the parts of the records specified by one of the identifiers are included in or excluded from processing. Consequently, remaining record information (specifically included or not excluded) from all trace records is shown in the resulting reports.
As an example, take Accounting trace records that might contain information about packages P1, P2, and P3:
With these identifiers, specified parts of the trace records are included, respectively excluded. The trace records themselves, with the remaining parts, pass the filter. Consequently, this information is shown in the resulting reports.
The following example produces an Accounting long report. The only plan reported is QMF311. All primary authorization IDs are reported except those on the list called PRODUSER.
·
·
·
LIST (PRIMAUTH(PRODUSER(USER1,USER2))) ACCOUNTING REDUCE REPORT LAYOUT (LONG) INCLUDE (PLAN(QMF311)) EXCLUDE (PRIMAUTH(L(PRODUSER)))
·
·
·