Rational Programming Patterns for System z

Quality Control of COBOL Specific Code

Rational Developer for System z provides an analysis engine that developers can use to analyze their COBOL code early in the development phase, to ensure that they are following their internal guidelines, best practices, coding standards.
Rational Programming Patterns for System z extends the Software Analyzer to provide analysis support for design entities and specific code.

With the COBOL analysis provider, you can run analysis during COBOL code development against a set of selected rules, view results (list of items that break rules) and apply quick fix where appropriate.

Implementation

Before invoking the analysis of the COBOL code, open the Software Analyzer Configurations dialog to define a configuration rules set and specify:
  • the scope (analyze entire workspace, a working set or one or more selected projects),
  • the COBOL rule set. You can change the severity for each rule (Recommendation, warning or Severe).

You can then start the analysis on a selected file or project by right-click, action Software Analyzer and select the rule set previously defined. The 'Software Analyzer Results' view displays the list of the non-respected rules in a tree-like structure. The first level represents the category, the second level is the rule, and the last level lists the instances in error. To see the details of a violation, right-click and select the View Result action. The COBOL file opens up in the editor and the line in violation is highlighted.

After correcting the violations and saving, you can start again the analysis to check that all rules are respected.

For a complete documentation on the Software Analyzer, see the Rational Developer for System z online help, in the 'COBOL Code Review' item of the 'Developing' section.

Design Entities Analysis

Software Analyzer has been extended to provide analysis support for Rational Programming Patterns for System z design entities.

There are two categories of rules for this analysis:

Specific COBOL Code Review

The standard rules in Software Analyzer Configurations have been completed with Rational Programming Patterns for System z rules. These rules apply only to specific code inserted by the user in a generated COBOL program.
To differentiate them from the Rational Developer for System z standard rules, they are all prefixed by RPP /.

There are four categories of RPP rules. The Pattern Driven Programming rules are specific and have no equivalent in Rational Developer for System z.
However, the rules of Naming Conventions, Performance, and Program Structures are equivalent to the rules existing in Rational Developer for System z, but they restrict the control to specific code portions.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)