Exercise 6.3: Creating an object filter

Before you begin, you must complete Exercise 6.2: Creating a library filter.

Now create an object filter. Object filters list a set of objects from your iSeries host in the Remote Systems view.

To create an object filter:

  1. In the Remote Systems view, expand your connection and then expand iSeries Objects if not already expanded.
    Create object filter
  2. Expand Work with objects. You can also right-click iSeries Objects and click New > Object filter on the pop-up menu.
    Note:
    Expanding Work with objects corresponds to the WRKOBJPDM command.

    The Create a new iSeries object filter page opens:

    Now create a filter to show all your source files in your RSELABXX library.
    Specify filter string

  3. In the Library field, type RSELABxx.
  4. Click Browse beside the Object type field.

    The Select Object Type window opens.
    Select Object type

  5. Select *FILE under the Select an object type list.
  6. Click OK.

    The Create a new iSeries object filter page displays with the object type updated.
    Object filter

  7. Click Browse beside the Object attribute field.

    The Select Object Attribute window opens.

  8. Select PF-SRC under the Select an object attribute list.
  9. Click OK.
    Select Object Attribute dialog
  10. Click Next.

    The Name the new filter page opens.
    Object filter

  11. In the Filter name field, type My source files.
  12. Click Finish.

    The new object filter displays in the Remote Systems view under iSeries Objects:
    Object filter shows all source files in library

    Note:
    If you end up with too many filters, you can create filter pools. They allow you to group filters.

    Now you know how to create filters and tailor your development environment. Filters can also be specified for non iSeries servers and your local system.

    Now you can work with the objects you have in your Remote Systems view like you worked in PDM with a subset of libraries, objects, or members.

Let's assume you want to edit the member PAYROLL in the source file QRPGLESRC using this object filter.

Editing a member from your own object filter

To edit a member:

  1. Expand QCBLLESRC.
  2. Right-click member PAYROLLC.
  3. Click Open With > Remote Systems LPEX Editor on the pop-up menu.

    This will download the source member and open the editor with this member. After you have edited the member you could save it and then compile it from the Remote Systems view by using the pop-up menu options on this member. You can also create your own actions in addition to the default actions.

You have created a filter to show all the source files in your library and accessed members to edit from your filter and you are ready to begin Exercise 6.4: Creating a user action.