Refining the list of selected members
You can further refine the list of selected members in the Process List by using the FIND command to search for a specific string. The Process List is then reduced to only those members that contain the specified string.
For example, having created a Process List of members whose name start with “TRAN”, to refine the list to members that contain the string “salesperson-code”:
- Enter
FIND SALESPERSON-CODE
on the Command line. - Press Enter. File Manager displays a panel showing the records within each member that contain the string “salesperson-code”.
- Press F3 (Exit). The Find/Change Utility panel is redisplayed showing the refined list of members in the Process List.
Alternatively, you can use the FINDNOT command to reduce your list of members to only those that DO NOT contain a string. The FINDNOT command can only be used for a PDS or PDS/E data set.
The output listing displayed after the FINDNOT command is issued, is similar to that displayed for the equivalent FIND command, except that:
- The summary section contains the list of members that were excluded from the process list as a result of the search string being found.
- When LIST=LONG is specified, only the first occurrence of the specified string in each member is displayed.
- The summary section contains an extra statement indicating that the search was initiated by the FINDNOT command and showing the count value of the number of members NOT satisfying the search criteria.
You can also exclude members from the Process List by entering
S
in the Sel field for the members you want to exclude.
You can toggle between excluding a member or not by entering
S
in the Sel field.
To refresh the Process List to its original state (that is, the list of members as determined by the combination of the Data set name, Member, and Volume serial entry fields), press the Refresh function key (F5).
When you have generated the desired Process List, you can use the FIND or CHANGE primary commands to find or alter data in the selected members.
Related topics