Finding and changing data in multiple PDS members
When you need to search for or change a string in more than one PDS member, the Find/Change Utility provides an efficient way to work with multiple members. You can use the panel to select and refine a list of data set members, then enter FIND or CHANGE commands on the Command line. While you can use this utility to find and change data in VSAM and sequential data sets, it might be simpler to make changes in these types of data sets via the Edit panel.
You can also use the Find/Change Utility in conjunction with a REXX procedure, allowing you to create sophisticated find and change routines.
When you specify a PDS, File Manager allows you to search for or change a string across a list of selected members within the PDS. When working with compressed non-VSAM extended format data sets (compressed PSE data sets), the CHANGE command is not supported, however, the FIND command can be used.
The overall process for using this utility is to:
- Select the Find/Change Utility option from the Utility Functions panel. The Find/Change Utility panel (shown in Figure 1) is displayed.
- Build a list of PDS members to be processed (or specify a single VSAM or sequential data set).
- Specify the number of records to be searched in each data set or PDS(E) member.
- Specify where a listing of the results of your changes is to be stored.
- Select your processing options.
- Enter a FIND or CHANGE command in the Command line or specify a REXX procedure to be used.
- Press Enter to process the panel and command. Note: If your PDS data set list has over 1,000 members or your sequential data set has over 10,000 records, you will see a progress indicator in the upper right corner of the screen, displaying the count of members or records processed in the FIND or CHANGE action. For example:
When the command has finished running, the Listing data set, showing the results of your command, is displayed in a Browse session.
- Press F3 to return to the Find/Change Utility panel.