Creating a software analysis configuration for COBOL metrics

To gather metrics for COBOL programs, create a software analysis configuration that implements COBOL Software Metrics rules.

Before you begin

Before you can create an analysis configuration, you must complete these steps:
  1. Open one of the following perspectives: z/OS Projects, Enterprise Development, or AIX COBOL.
  2. Create a project and add COBOL source code files to it.

Procedure

To create a software analysis configuration:

  1. To open the Software Analyzer Configurations window, on the main menu bar, click Run > Analysis.
  2. In the left pane, right-click Software Analyzer and click New. The Scope and Rules tabs open on the right side of the window.
  3. In the Name field, type a name for the new software analysis configuration, such as COBOL Metrics.
  4. On the Scope tab, select Analyze entire workspace.
  5. On the Rules tab, select COBOL Software Metrics.
    Tip: Hover over a rule to display a description of it. You can also get information by selecting a rule and pressing F1.
    1. In Analysis Domains and Rules, expand the COBOL Software Metrics domain.
    2. Expand a metrics category, such as Basic Metrics.
    3. Select a metric, such as Lines of code.
    4. To set a threshold for the metric, on the Properties tab, select Analyze with threshold, and then set the value of any custom parameter.
  6. To save or undo your selections, do one of the following actions:
    • To save your analysis configuration, click Apply.
    • To undo the changes since the most recent Apply, click Revert.
  7. To close the software analysis configuration window, do one of the following actions:
    • To close the window and run the software analysis configuration, click Analyze.
    • To close the window without running the configuration, click Close.

Feedback