Running a metrics analysis

You can run a metrics analysis from the Software Analyzer Configurations window or from a source program that is open in an editor.

About this task

For remote MVS files, you can run a metrics analysis for only one file. To run an analysis for a remote MVS file, open the file in an editor and run the metrics analysis in the editor.

From the Software Analyzer Configurations window

Procedure

  1. From the main menu, select Run > Analysis.
  2. In the Software Analyzer Configurations window, expand Software Analyzer, and then select a COBOL metrics configuration.
  3. Click Analyze. The analysis runs and the results are displayed in the Software Analyzer Results view.

In an editor

Procedure

  1. Open a COBOL source file in the COBOL Editor or System z LPEX Editor.
  2. Right-click and expand the Software Analysis menu.
  3. Select a COBOL metrics configuration from the list. The analysis runs and the results are displayed in the Software Analyzer Results view.

Results

The COBOL Software Metrics tab of the Software Analyzer Results view displays the metrics for each file, folder, and project.

COBOL Software Metrics tab

If a result exceeds the threshold set for a metric, the result is flagged:

COBOL Software Metrics tab with thresholds flagged

You can filter the results to show only results that exceed the threshold, export results to an XML file, or generate an HTML or PDF report for the results. For instructions for these tasks, see the related links.


Feedback