Exercise 3.11: Searching multiple files

Before you begin, you must complete Exercise 3.10: Filtering lines by type.

If you would like to search through the members in a source physical file or through the files in a local directory, you can use the Search tool. The Multi-File Search utility allows you to search for a particular string of text in many members on the host. This function can also be used on local files.

To search multiple files:

  1. Click Search > iSeries from the workbench menu.
    Search > iSeries

    The Search window opens.

  2. In the Search string field, type ENHRS.
    File Search window

    The Connection field should contain your iSeries server name, otherwise enter it there.

  3. Under Target in the Library field, type RSELABXX.
  4. Under Target in the File field, type QDDSSRC to search all members in this source physical file.
  5. Under Target in the Member field, select *ALL.
  6. Click Search.

    The Multi-File Search window lists all the lines in all the files that reference ENHRS.
    Search result

  7. Double-click the last line in the list.
    A            ENHRS 3  1       TEXT('EMPLOYEE NORMAL WEEK HOURS')
    

    The member REFMST is automatically loaded into the editor and the cursor is placed on the correct line.
    REFMST loaded into the editor

  8. Click the X in the REFMST tab to close the REFMST file.

You have searched through members in a source physical file and now you are ready to begin Exercise 3.12: Comparing file differences from the Remote Systems view.