Viewing a PL/I program structure

Use the Open Call Hierarchy action to see a tree-structure view of the procedure and function calls in a PL/I file.

About this task

The Call Hierarchy view is a tree graphic that displays functions and procedures. This view provides a way to navigate a large or complex PL/I file that contains many procedures and assists you with determining the call flow between the procedures. The Call Hierarchy view provides information from both a called and caller perspective.
Example of call hierarchy view
There are two sections in the Call Hierarchy view,
  • The left column contains the tree structure of the specified function or procedure
  • The right column shows the line number for the code. When you click a node in the tree structure, the corresponding line number is displayed.
Restriction:
The Call Hierarchy function has several limitations:
  • Only static calls to procedures and functions are supported. Variable references to function names and procedure names are not supported.
  • Multiple labels for a single procedure or function definition are not supported.
  • Multiple entry points into a procedure are not supported.
  • Double-clicking a procedure name when the procedure definition is in an expanded macro source results in being taken to the macro call.

Procedure

  1. In the editor, select the element that you want to view.
  2. Right-click and click Open Call Hierarchy from the menu.
    The Call Hierarchy view opens.