Viewing program control flow for a COBOL file
Program control flow provides a graphical view of the logical flow within a COBOL program. You can use this feature to identify potential logic problems or locate code that is not being used.
About this task
- COBOL Editor
You can run program analysis on a COBOL file while it is in edit mode. After you start the analysis, the Program Control Flow view opens with a hierarchical graph of the parts within the program file. Each node represents a callable statement, such as a section or paragraph. The following example shows several paragraphs. To navigate from one node to another, click the node in the tree. The corresponding code is visible and highlighted in the file.

- The program control flow diagram does not display control flow
nodes for control transfers that are generated by the following statements:
EXEC CICS HANDLEEXEC CICS IGNOREEXEC CICS PUSHEXEC CICS POPEXEC SQL WHENEVER
- Quick fix is not available.
- On Windows platforms, you can save diagrams in Scalable Vector Graphics (SVG) format or Portable Network Graphics (PNG) format. On MacOS and Linux platforms you can save diagrams in SVG format.
Procedure
Navigating the flow diagram
About this task
Features on the diagram control area provide zoom in, zoom out, and return to original size. The save feature creates a bitmap of the diagram that you specify where to save it.
: Move to next node in the diagram.
: Move to previous node in the diagram.
: Enlarge the diagram.
: Reduce the diagram.
: Reset the diagram to the original size.
: Enlarge or reduce the diagram to fit the size of the
: Refresh the diagram.
: Save the diagram in PNG or SVG format to the specified location.