Filtering data on panels
When you run queries to display information about Db2 objects or authorizations, you can
filter the information that is displayed by using search arguments in certain input fields.
After the query is run, you can also filter the resulting information that is displayed on
the table display panel.
About this task
Filtering data before running a query to display object or authorization information
Procedure
On the System Catalog (ADB21)
panel, specify the
filtering criteria at the bottom of the panel.
Use the following guidance:
- Wildcard characters: In your search argument, you can specify a percent sign (%) or an asterisk (*) as a wildcard character. If you use an asterisk as a wildcard character, Db2 Admin Tool translates it to a percent sign. The asterisk is displayed as a percent sign when the panel is re-displayed.
- Case: Lowercase characters in the search argument for Name, Owner, In DB/Coll, Grantor, and Grantee are translated to uppercase characters unless you change the Db2 Admin Tool default setting. To change the default setting, navigate to the Admin Defaults (ADB2P2) panel and set the Capitalize object names field to NO. With this setting, lowercase characters are not translated to uppercase characters where Db2 rules allow the name to contain lowercase letters. Lowercase characters cannot be translated to uppercase characters in database names, table space names, plan names, and package names that are not for trigger packages
Example
For example, the following panel shows how you can use a search argument with wildcard characters in the Name field on the System Catalog (ADB21) panel to display all the databases in the Db2 system catalog with names that contain the characters DSN.
When you press Enter, Db2 Admin Tool generates
an SQL statement that searches the Db2 catalog using an SQL LIKE
operator to qualify the search with the search criteria. The following figure shows
the ISPF table display that Db2 Admin Tool returns. All databases that
meet the search criteria (have a name that contains the characters 'DSN') are
displayed.
Filtering data on a panel after the query result is returned
After Db2 Admin Tool returns the results of a query, you can filter the rows that are displayed on a table display panel.
Procedure
Complete one of the following actions: