Viewing the Procedure View


When you open a program in the editor and the Code Insights perspective, the program is parsed and analyzed to build the program structure chart and provide in-depth information about the program. The Procedure View displays the detail view for a particular procedure so that you can view all procedure view listing metrics for all the procedures in the program.

To view the Procedure View, right-click the PLI or COBOL program, and select Code Insights > Show Procedure View. The Procedure View <procedure name> tab opens for the selected program.

image-2024-8-12_14-46-16.png

You see the following fields.

Field

Description

Procedure Name

Name of the procedure.

Performs

The number of performs in the procedure.

Program Calls

The number of external program calls in the procedure.

File I/O

Number of file I/O statements in the procedure.

SQL Statements

The number of SQL calls in the procedure.

Statements

The number of statements in the procedure.

Conditionals

The number of conditional statements in the procedure.

Starting Line

Starting line of the procedure.

McCabe

The metric that relates to the number of decision points (points where the logic path splits) in the procedure. A high number indicates that the procedure is complex.

Blocks

Number of code blocks in the procedure. These code blocks are found in the logic flow chart.

GOTOs

Number of GO TO statements.

Perform Range Violations

Indicates whether any GO TO statements branch outside their procedures, which would be a perform range violation. This column only appears for COBOL programs. 

Group Returns

Indicates whether control returns to the statement following the procedure. Yes indicates that the procedure returns control. No indicates that the procedure does not return control. Maybe means the procedure contains a conditionally executed GOBACK, STOP RUN, or EXIT PROGRAM and potentially does not return control.

Click Export to export the procedure details in CSV format. Right-click on the procedure and select Show in Editor to view the selected procedure in the editor.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*