Working with the Logic Flow Chart
The Code Insights perspective also includes a logic flow chart that shows the flow of the code in whatever paragraph or procedure has been selected in the program structure chart. That selected paragraph or procedure is presented as a collection of code blocks, rounded rectangular boxes representing a sequential group of statements in the program. These nodes are connected by lines representing their logical sequence within the program, with arrowheads indicating the direction of the execution path. Symbols in each node indicate the type of program resource as follows:
Each code block in a logic flow chart has one entry point and one exit point. The entry point is indicated visually with a and a bold border around the node, and the contents of the entry point is shown at the top of the view. Each node displays the line number and action associated with that node, and hovering over the node temporarily displays the associated line of code. If the code block represented is an invisible statement (an internally generated statement), the line number shown is replaced by ellipses (.....). This is the case with generated scope terminators, periods, and label-returns.
Clicking a logic flow chart node selects and highlights it with a bold border while synchronizing to the corresponding statement in the Workbench COBOL Editor or Workbench PL/I Editor. Ctrl+clicking one or more additional nodes selects and highlights them while also highlighting the logical path between the selected nodes.
Nodes can be arranged top to bottom (the default), left to right, or bottom to top by right-clicking anywhere in the logic flow chart and selecting Layout > Top Down, Layout > Left to Right, or Layout > Bottom Up.
Logic flow chart nodes can be collapsed to hide subsequent nodes by right-clicking and selecting Collapse. The collapsed node includes a red indicator in the lower right corner showing the number of levels that have been collapsed. To redisplay nodes hidden under a collapsed node, right-click the node and select Expand, Expand All, or Expand Levels. Selecting Expand expands the collapsed node one level. Selecting Expand All fully expands all nodes under the collapsed node. Expand Levels provides sub-menu choices to expand the collapsed node by 3, 5, or 7 levels. If the node has been collapsed more levels than it is expanded, subsequent nodes that remain collapsed include a red indicator showing the number of levels that could still be expanded. For easier viewing after the desired nodes have been collapsed, the chart can be redrawn without the hidden nodes by right-clicking anywhere in the logic flow chart and selecting the desired Layout> option.
If "dead code" that can never be executed exists in the program, the corresponding nodes appear separated from the main portion of the logic flow chart and are indicated by a and gray shading. The nodes with dead code can be toggled between hidden and visible (the default) in both the logic flow chart and the related program structure chart at once by clicking the
toolbar button. The display of dead code in other open charts remains unaffected until one of those charts is selected. Dead code in a logic flow chart is associated with code problem I005 (Inexecuteable statement). See Code-Problem-Descriptions for more information.
Preferences can be used to customize node size and line wrapping of node content in the logic flow chart. To change your preferences, click Window>Preferences. The Preferences dialog box appears. Expand BMC and select Data Visualizer. The Preferences for the Data Visualizer, which also control the logic flow and data flow charts, are shown. See Specifying-Preferences.
For more information, see: