Jump to main content

# Adding a Group to a Query

This task explains how to add one or more groups of rules to a query.

There are four parts in a rule (filter):

- Column name (required)
- Comparison operation (required)
- Comparison value (required for some operations)
- Not checkbox (optional)

1. Select one of the following sections:
   - Pool/Volume
   - Datasets
   - DFSMShsm Mgmt
   - Tape
   The branch expands to show subsections and saved queries.
2. Select a saved query by clicking on it once.
   Important: Double-clicking on the query runs the query and does not open it.
3. Click ADD GROUP.
   If you have not created a rule yet, see Adding a Rule to a Query. If you do not have a rule already set up, you can add it in later.
   A new row displays underneath the rule.
4. From the drop-down menu, select a column name.
5. If applicable, select a comparison operation from the second drop-down menu, and then a comparison value if needed.
6. OPTIONAL: Check or uncheck Not to apply reverse rule.

If applicable: use Setting Up the And/Or Statement in a Query to set up an and/or statement.