IBM i Reference Explorer
Interactive documentation of an IBM i code base, right inside VS Code, on your existing
Code for IBM i connection.
Pick a list of libraries, scan, and browse which programs use which files — and the other way round.
Version française

Features
- Programs → Files and Files → Programs trees built from
DSPPGMREF, with the usage of each
file (read, write, update…), called programs and bound service programs.
- Library list priority: libraries are scanned in the order you give, like a
*LIBL; an object
found in several libraries is taken from the first one, the others are listed.
- Exact object metadata (
DSPOBJD through QSYS2.OBJECT_STATISTICS): attribute (RPGLE, SQLRPGLE,
CLLE, CBLLE, PF, LF, DSPF, PRTF…), owner, size, creation, last change, last use, source member.
- Database relations (
DSPDBR): physical file ↔ logical files, views and indexes.
- File structure for PF, LF, DSPF and PRTF (DDS or SQL): fields from
DSPFFD, keys from
DSPFD *ACCPTH, grouped by record format. Copy a format as a table (for a spreadsheet), as a list of
field names, or as a free-form RPG dcl-ds … qualified template.
- Open the source of any object in the editor: source member, or one source per module for ILE
programs and service programs (member or IFS stream file).
- Filters by library, name or text, object type; hide objects; collapse utilities called by many programs.
- Light and dark themes, English and French (follows the VS Code display language).
- Scans are cached locally; export / import a scan as JSON.

Usage
- Connect to a system with Code for IBM i.
- Run IBM i Reference Explorer: Open the reference explorer from the Command Palette, or
right-click one or more libraries in the Object Browser or the User Library List and choose
Explore references (DSPPGMREF).
- Enter the libraries in order of priority, then Scan.
- Click any node to open its properties, its source and, for files, its structure.
Requirements
- Code for IBM i
(installed automatically), connected with its SQL job enabled.
- IBM i 7.3 or later. Service program bindings and ILE module sources use
QSYS2.BOUND_SRVPGM_INFO
and QSYS2.BOUND_MODULE_INFO (7.4, or 7.3 with a recent Db2 PTF group): without them you only get
a warning, everything else works.
*USE authority on the scanned libraries and objects.
What runs on your system
Everything goes through the SQL job of Code for IBM i: no password is asked, no other connection is
opened. The extension only reads: CL commands (DSPPGMREF, DSPDBR, DSPFFD, DSPFD) are run with
QSYS2.QCMDEXC and write their output files to QTEMP; the results are read with parameterized SQL
queries on QSYS2 services. Nothing is changed outside QTEMP.
Scans are cached in the extension's storage on your computer. The extension sends no telemetry.

License and trademarks
MIT. Source code and issues:
github.com/remystreich/ibmi-scanner.
This project is not affiliated with, endorsed or sponsored by IBM. IBM and IBM i are trademarks of
International Business Machines Corporation.
| |