Query Editor

Use a query to search for resources based on their criteria against a set of expressions. 
You create, delete, edit, execute and view Queries in the Query window pop-up menu.
Results of running a query are displayed in the Resources View.

You can specify two main criteria in a query, which parts of an interaction you want to see and which interactions you want to include.

What parts of an interaction to see

Every CICS interaction consists of a transaction, a program, and the resource being used.  You can specify which of these you wish to see in the query's results using the checkbox buttons in the query editor.

Resource Types

Which interactions to include

When you have selected which types of resources from each interaction you want to see, expressions can be created to filter the list of interactions that will be included for analysis.

To create a new expression use the Add Icon button above the table of all expressions, and to remove an expression use the Delete icon button on a selected expression.

If there is more than one expression, these are combined together in a Boolean AND fashion. 
For example, if you select the Program Name checkbox button, and create expressions for type of FILE and resource name of CAM, you will see all programs that use files starting with CAM.  If you select the CICS resource button, you will also see the files themselves included in the results.

When you select an expression on the right side of the query editor, the dialog changes to show an area allowing the expression to be altered.  

This kind of list is used if the set of allowable values is known, such as Command Resource Type, or TBC.  Values selected are OR'd together.
Command
An editable table is used for expressions that can take a list of arbitrary values. 
Type values into rows, similar to a spreadsheet. Multiple values are OR'd together and there is an implicit trailing wildcard
Resource Name
For expressions that have Yes or No as possible values select in the Possible Affinity window.
Possible Affinity