Getting Started
Follow these steps to start scanning your RPG source code with RPG Metrics.
Ensure your RPG source code is available as a text file (RPG, RPGLE, or RPGFREE). If you're uploading from your PC, these must be saved as plain text files with correct extensions (e.g., .rpg
, .rpgle
).
If your source members are in traditional source files (e.g. QRPGLESRC
), convert them into stream files on the IFS using this command:
CPYTOSTMF FROMMBR('/qsys.lib/&l.lib/&f.file/&n.mbr')
TOSTMF('/home/User/Source/&l.lib/&f/&n.&t')
STMFOPT(*REPLACE) CVTDTA(*AUTO)
DBFCCSID(*FILE) STMFCCSID(*STDASCII)
- &l = Library name
- &f = Source file (e.g.,
QRPGLESRC
) - &n = Member name
- &t = Extension (e.g.,
rpgle
)
mkdir -p /home/User/Source/MYLIB/QRPGLESRC
If you have a netserver share
- Map a share on your PC
- Navigate to the share
- Scan the source directly from the share
Alternatively
Download files to your PC
Once the stream files are on the IFS, use WinSCP or FileZilla to download them to your local machine:
- Connect using SFTP
- Navigate to
/home/User/Source/
- Download the file to your PC for scanning
Go to Scan RPG Source and submit your file for scanning. You’ll be prompted to enter:
- Library
- Source File
- Program Name
Analysis will begin immediately in the background.
Once scanned, results are visible on the View Files page. You’ll see:
- Cyclomatic Complexity
- Maintainability Index
- Comment %
- Subroutine/Procedure Hotspots
Once the scan is complete the application will email you a report in XSLX format.
Advanced users can also export to CSV or view trend and hotspot charts.
To submit feedback or scan your code, log in or create an account.