Rational Developer for System z

View PL/I program structure using Call Hierarchy

The Call Hierarchy view provides a tree-structure view of the procedure and function calls in a PL/I file. 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.

Results from Open Call Hierarchy are available in the Call Hierarchy view. The Call Hierarchy view is a tree graphic that displays functions and 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,

Navigating the Call Hierarchy view

The Call Hierarchy view contains the following toolbar buttons for filtering the contents of the view.

show callee hierarch icon
Callee Hierarchy
Displays in the view only the procedures that called the highlighted procedure.
show caller hierarch icon
Caller Hierarchy
Displays in the view only the procedures that are called by the highlighted procedure.
view menu icon
View Menu
Shows a list of functions to perform in the Call Hierarchy view. In addition to the Caller Hierarchy and Callee Hierarchy view, you can select to hide or show built in functions.

Limitations

There are several limitations associated with using the Call Hierarchy function within the editor:
  • 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 on a procedure name when the procedure definition is located in an expanded macro source results in being taken to the macro call.

Feedback