Exercise 2.2: Editing an iSeries source member

Before you begin, you must complete Exercise 2.1: Opening the Remote System Explorer perspective.

You will see a list of servers in the Remote Systems view.

To edit a member:

  1. Expand Library list. If you do not see WSSLABxx then complete these steps:
    1. Double-click Work with libraries.
      List of servers in Remote Systems View

      The Library Filter page opens.
      Library Name

    2. In the Library field, type WSSLABxx.
    3. Click Next.
      Filter Name
    4. In the Filter name field, type WSSLABxx.
    5. Click Finish to create the library filter WSSLABxx.

      Next you edit the source file.

  2. Expand WSSLABxx.*lib.prod.
    To edit the source file
  3. Expand QRPGLESRC.*file.pf-src.
  4. Select WDSCSRV.rpgle.
  5. Right-click WDSCSRV.rpgle.
  6. Click Open with > Remote Systems LPEX Editor on the pop-up menu.

    Tip: You can also double-click on a member to open the Remote Systems LPEX editor.

    The Editor window opens. You are ready to write your program.

  7. Add the following source changes:
    Text to add to the source file

    The logic you add will do the following. It will retrieve a changed record from a table component. The changed record is the selected record in the table. It will pass the customer number from this selected table record back to the caller.

  8. Now, add these source changes at the bottom of the source file:
    Text to add to the source file
  9. Save the file (Ctrl + S).

You have created a library filter, opened an ILE RPG source member for edit, and added code to this member and now you are ready to begin Exercise 2.3: Compiling source changes.