Editing source with help from the Outline view

The Outline view acts as an excellent resource when you want to edit ILE RPG, COBOL, CL, or 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 area. 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.

Here are some of the ways that the Outline view can make editing source easier and faster for ILE RPG source:
The Outline view is enabled for the following types of native IBM® i source:

ILE RPG

When you edit ILE RPG source, the Outline view displays up to three high-level nodes:
Depending on how you have coded your RPG source, the Global Definitions and Local Definitions node in the Outline view may display the following types of items when expanded: Clicking any of the elements in this tree takes you to the place in your source where the item is defined. If you click a subprocedure in the Subprocedures section of the Outline view, the positioning in the source will span the whole procedure definition section.

The ILE RPG outline view refreshes in the background so you can continue using the editor and RSE while it updates. The refresh action is disabled while the outline view is refreshing.

With the Update the Outline view when text is changed in the editor preference on the Remote Systems > Remote Systems LPEX Editor > IBM i Parsers > ILE RPG preference page selected, the Outline view contents are automatically updated when text is changed in the editor. To update external information that changes, such as database files, press the Refresh button. If this preference is not selected, the Refresh button needs to be pressed to update the contents of the Outline view. Changing the preference setting will not effect source files already open in the editor.

With the Update the Outline view when text is changed in the editor preference selected, there are some changes in the Outline view: There are some changes when working in the editor when the preference is selected: For additional information about the Outline view when the preference is selected, see http://www.ibm.com/support/docview.wss?uid=swg21592728
Notes about the Outline view for ILE RPG source:

COBOL

You work with COBOL source in the outline view just as you would with ILE RPG source:

CL

You can also work with CL source members in the Outline view. The view displays labels and subroutines in the source.

DDS Source

You can also work with DDS source members in the Outline view. The view offers more detail to reflect the DDS source member structure. In particular, icons are provided to indicate the type of element in the source, such as a record or a keyword. The view displays the hierarchy of files, records, fields, help specifications, keys, and keywords in the selected DDS object.

The root node for a DDS object in the Outline view is the name of the file, with an icon indicating the type of file, (also indicated by the extension on the file name). The rest of the elements beneath the root node reflect the structure of the DDS object, for example, a record group or a set of keywords. Double-clicking on any of these elements will position your cursor at the appropriate place in the DDS source.

Notes® about the Outline view for DDS source:

Feedback