Exercise 2.5: Displaying an outline of a source member

Before you begin, you must complete Exercise 2.4: Opening a second source member.

The Outline view acts as an excellent resource when you want to edit RPG, COBOL and DDS source in the Remote Systems LPEX editor. The Outline view displays a structural outline of items defined in the file that you currently have open in the Remote Systems LPEX editor window. With the editor active, you can expand the file structure in the Outline view, and click various elements in the view to jump to that location in the source itself.

To see an Outline view of your COBOL source:

  1. Look at the Outline view to the right of the editor window.
    Note:
    If you have closed the Outline view, you can reset the perspective by selecting Window > Reset perspective from the workbench menu or Show view > Other then expand Basic and click Outline in the Show view dialog.

    The Outline view contains your source program in a tree view without the lines containing logic.
    Outline view

    Now you want to see more details of your source member.

  2. Expand ENVIRONMENT DIVISION.
  3. Expand the CONFIGURATION SECTION.
  4. Expand DATA DIVISION.
  5. Expand FILE SECTION.
  6. Double-click on any of the entries in the Outline view.

    This will position the source editor accordingly.
    Click the tab to give focus to the edit session

  7. Stay in the PAYROLLC tab to get the PAYROLLC Editor window in focus for the next module.

Now you are ready to review your knowledge of this module by taking the quiz. You can also apply what you have learned in this module by completing the practice tasks detailed in More practice.

Quiz

  1. When you first open Remote System Explorer, you are not connected to any system except your local workstation. To connect to a remote iSeries system, you need to:
    1. Start Remote System Explorer communication server
    2. Start a 5250 session
    3. Define a connection. Specify the name or IP address of a remote system.
    4. Define a profile
  2. Subsystems include:
    1. iSeries Objects
    2. iSeries Jobs
    3. IFS Files
    4. iSeries Commands
    5. All of the above
  3. The subsystem iSeries objects includes:
    1. Work with libraries
    2. Work with objects
    3. Work with members
    4. Library list
    5. All of the above
  4. The iSeries Table view is used to:
    1. Display a list of items, for example, members or objects in a table format similar to PDM
    2. Perform actions against a list of items, such as editing and compiling
    3. Both
  5. The lock icon controls the correlation between the Remote Systems view and the iSeries Table view. (T, F)
  6. You can maximize the Editor window by double-clicking on its window heading. You can get back to its original size, by double-clicking on the heading again (T, F).
  7. The Outline view:
    1. Displays a structural outline of items defined in the file that you currently have open in the editor
    2. Lists structural elements
    3. Shows editor specific contents and toolbar
    4. All of the above

More practice

Given that you have access to your own iSeries systems, configure a new connection and connect to this iSeries system. Now rename the connection, move the connection up or change the properties of the connection. Then use the iSeries objects subsystem to list the libraries in your library list. Use the iSeries Table View to see the objects in your library. Subset objects in the iSeries Table View. Open the Remote Systems LPEX Editor from the iSeries Table view. Use the product online help to assist you in these tasks.

Module recap

You have completed Module 2. Configuring a connection to an iSeries system and connecting to an iSeries. You have learned how to:

Now that you have a connection to an iSeries server and have opened a source member for edit, you can learn more about the Remote Systems LPEX Editor. Continue to the next module Module 3. Editing source .