This documentation is not maintained. Please refer to doc.castsoftware.com/technologies to find the latest updates.
Although this extension is officially supported by CAST, please note that it has been developed within the technical constraints of the CAST Universal Analyzer technology and to some extent adapted to meet specific customer needs. Therefore the extension may not address all of the coding techniques and patterns that exist for the target technology and may not produce the same level of analysis and precision regarding e.g. quality measurement and/or function point counts that are typically produced by other CAST AIP analyzers.

What's new?

RPG 1.0

RPG 1.0.1

RPG 1.0.2

RPG 1.0.3

Function Point, Quality and Sizing support

This extension provides the following support:

  • Function Points (transactions): a green tick indicates that OMG Function Point counting and Transaction Risk Index are supported
  • Quality and Sizing: a green tick indicates that CAST can measure size and that a minimum set of Quality Rules exist
Function Points
(transactions)
Quality and Sizing
(tick)(tick)

CAST AIP compatibility

CAST recommends that you always install the latest release of an extension.


Extension Version

AIP 7.3.xAIP 8.0.xAIP 8.1.xAIP 8.2.x
1.0.3(tick)(tick)(tick)(tick)
1.0.1 and 1.0.27.3.0 - 7.3.2(error)(error)(error)
1.0

(error)

(error)(error)(error)

Supported DBMS servers

DBMSSupported
CSS2(tick)
Oracle(tick)
Microsoft SQL Server(error)

Supported Versions of RPG

This version of the extension provides partial support for the following RPG versions:

  • RPG III - GAP 3
  • RPG IV - GAP 4

Partial support is also provided for the code generated for these versions by:

  • ADELIA
  • SYNON
Please note that this extension only supports RPG in AS400 and ILE format: Free-Format RPG is not supported.

Documentation of RPG Quality Rules and Metrics

Documentation of all CAST Metrics and Quality Rules specific to the extension is delivered via a compiled HTML Help file (CHM). Please ensure that once the CHM has been downloaded you right-click on the CHM file in Windows Explorer and choose Properties > Unblock. This will ensure that the CHM is readable on your own PC.

VersionCHM
1.0.1 and abovemetrics_RPG_1-0-1.chm
1.0metrics_RPG_1-0.chm

Grade values following upgrading from CAST AIP 7.0.x

If you are installing the extension while upgrading from a CAST AIP 7.0.x please note that when consulting the results of your snapshot immediately after the migration, you will see that the grade values of multiple Quality Rules have been modified even though the number of failed and total checks is exactly the same as before the migration.

The difference in grade values is due to the different grade threshold values that are used in the the two releases of CAST AIP: the new grade threshold values are applied by during the Assessment Model import. Since no specific grade threshold values are specified for any RPG Quality Rules, CAST applies the default grade threshold values during the Assessment Model import. Please note that the default grade threshold values have been also updated in CAST AIP 7.2.x and above.

Take the following example for the Quality Rule: Avoid Subroutines with a very low comment/code ratio (RPG400)

CAST AIP 7.0.x

  • 2 failed checks
  • 78 total checks
  • 97.44, grade = 2.61

CAST AIP 7.2.x and above

  • 2 failed checks
  • 78 total checks
  • 97.44, grade = 3.83