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. 

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
- In the editor, select the element that you want to view.
- Right-click and click Open Call Hierarchy from
the menu. The Call Hierarchy view opens.
Navigating the Call Hierarchy view
Procedure
The Call Hierarchy view contains the following toolbar buttons for filtering the contents of the view.
Callee Hierarchy: Displays in the view only the procedures that called the highlighted procedure.
Caller Hierarchy: Displays in the view only the procedures that are called by the highlighted procedure.
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.