Viewing program data flow for a COBOL file

Program data flow provides a graphical and hierarchical view of the data flow within a COBOL program. You can use this feature to examine how a data element is populated, modified, or written elsewhere.

About this task

Supported Editors:
  • COBOL Editor
  • z Systems® LPEX Editor

The program data flow can be viewed in both a diagram and hierarchy.

The data elements that can be selected include declarations in the data division (data items, renames, file descriptors, and conditions) or their references in the procedure division.

Restriction: This feature has several restrictions:
  • The data flow analysis supports COBOL programs only. PL/I is not supported.
  • Base COBOL language elements and some embedded languages (such as CICS® and SQL) are supported. DLI is not supported.
  • User-defined functions are not supported.
  • On Windows platforms, you can save diagrams in Scalable Vector Graphics (SVG) format or Portable Network Graphics (PNG) format. On macOS, you can save diagrams in SVG format.

Procedure

  1. Open a COBOL file in the editor.
  2. Right-click on a data element to open the menu.
  3. Click Show In > Data Flow.
    The Data Flow view opens with a diagram that shows a set of nodes and a set of arcs connecting the nodes. See the following example.
    Figure 1. Example of program data flow diagram
    Program data flow sample
  4. Optional: Click Show In > Data Flow Hierarchy.
    The Data Flow Hierarchy page is displayed. See the following example.
    Figure 2. Example of program data flow hierarchy
    Program data flow hierarchy sample