RPG Metrics – Automated Code Analysis for IBM i
A fast, secure way to understand the health of your RPG codebase without needing to upload source code.
What RPG Metrics Gives You
Local IBM i Agent Scans
RPG Metrics now supports a local-first IBM i Agent. The agent runs on your IBM i, scans RPG source locally, generates XLSX reports locally, and can optionally sync calculated metrics to the RPG Metrics dashboard.
This means your RPG source code can stay on your own IBM i system while still giving you useful code quality insight.
Dashboard Metrics
When dashboard sync is enabled, the IBM i Agent sends calculated metrics only to the RPG Metrics dashboard. The dashboard gives you a central view of scanned programs, including complexity, maintainability, comment levels, RPG Free compatibility and trends over time.
Dashboard sync is optional. The agent can also be run in local-only mode to produce a basic XLSX report on IBM i without sending metrics to the dashboard.
Cyclomatic Complexity Hotspots
Identify high-complexity routines and subroutines so you can see risk areas quickly and prioritise refactoring.
Hotspots help highlight the parts of the codebase that are likely to be harder to test, change or modernise.
Maintainability Index
Use Maintainability Index scoring to understand how maintainable a program is and to track whether code quality is improving or regressing across scans.
RPG Free Conversion Insight
- Percentage of executable lines per program
- Counts and percentages for lines that may not convert cleanly to RPG Free
- Line-level analysis in the local XLSX report
- Detection of common legacy opcodes such as
MOVE,MOVEL,Z-ADD,GOTO,TAG,LOOKUP,TESTBand others
Ideal for planning and de-risking RPG Free modernization projects.
Local XLSX Reports
The IBM i Agent creates XLSX reports directly on IBM i. Reports are organised by team, library and source file, and can include summary metrics, source line analysis, hotspots and RPG Free compatibility findings.
This gives developers, managers and technical leads a shareable report without needing to move source code off the IBM i.
CSV and Dashboard Reporting
For dashboard-connected users, RPG Metrics also provides filtered views, CSV exports and trend charts depending on the enabled features and subscription level.
IBM i Workflow Integration
For teams that want analysis built into their normal workflow, the IBM i Agent can be integrated directly into IBM i development and change-control processes:
- Create stream files from a custom PDM option
- Trigger scans from post-promotion or deployment scripts
- Run the agent as a background job in its own IBM i subsystem
- Organise reports by team, library and source file
- Optionally sync calculated metrics to the RPG Metrics dashboard
No manual upload is required for the normal IBM i Agent workflow. Analysis can happen as part of the development or promotion process.
Manual Upload for Testing
A manual upload option is still available for quick tests and sample scans. For production or sensitive RPG source, the IBM i Agent is the recommended approach because it keeps source code on your IBM i system.
Security Considerations
- RPG source can be scanned locally on IBM i
- Local XLSX reports remain on IBM i
- Dashboard sync sends calculated metrics only
- Source code is not stored in the RPG Metrics dashboard by the IBM i Agent metrics flow
- Sensitive identifiers such as library, source file and program names are protected at rest
- Manual upload is intended for testing and sample scans
Designed for teams that need useful code quality insight without exposing source code unnecessarily.
Who RPG Metrics Is For
- IBM i development teams maintaining large or legacy RPG applications
- Shops planning a conversion to RPG Free
- Teams that want clearer insight before refactoring or modernization
- Environments using change-control tooling such as MDCMS, TurnOver, Aldon, Implementer or in-house scripts
- Teams that want automated code quality checks during promotions to DEV, TEST or UAT
- Developers who want local reports without uploading RPG source code
What You Get
- Local IBM i Agent for scanning RPG source on IBM i
- Local XLSX reports generated on IBM i
- Optional dashboard sync for calculated metrics
- Per-program breakdown of complexity, maintainability and comment levels
- Hotspot analysis for risky or complex routines
- Maintainability Index tracking
- RPG Free conversion blockers highlighted at line level
- Executable line analysis
- CSV export and dashboard reporting, depending on enabled features
- Team, library and source-file organisation
- Support for integration into IBM i promotion workflows
Try RPG Metrics During Beta
RPG Metrics is currently available during beta. The IBM i Agent beta package is available to users who want to test local IBM i scanning and optional dashboard sync.
During beta, available agent features are enabled so local scanning, local reports, dashboard sync and team workflows can be tested end-to-end.
Create an account on the RPG Metrics SaaS platform
Download the IBM i Agent Beta Package
Visit our downloads page to get a copy of the IBM i Agent beta package.
The beta package includes the Python agent, local scanner, XLSX report writer, example configuration and installation notes.
Want a Walkthrough?
If you would like a guided walkthrough or want to see how RPG Metrics could fit into your IBM i development workflow, please get in touch via the contact page on this site.


