RPG / IBM i Modernization Playbook
Modernize RPG / AS/400 / IBM i apps via the four strategies (replatform on PowerVS, refactor, rewrite, replace) — with a deep walkthrough of the rewrite path most projects need.
Tell us what you're building
We use these answers to surface the prompts, skills, and MCP configs that fit your stack — and to substitute stack values like {{database}} into the prompts you copy. Content (PRDs, code, etc.) stays in your repo. Everything you enter here is stored in your browser — nothing is sent to a server.
Steps you'll go through
- 01
Audit and Inventory
6-12 weeksInventory programs, service programs, modules, CL programs, DDS / SQL files, display files (5250), job streams, data, environment dependencies, and people.
- 02
Business Rule Extraction
3-6 quarters (the longest phase)Convert each in-scope RPG program (and CL program) into structured business rule catalogs — including indicator analysis, the most RPG-specific concern.
- 03
Target Architecture Design
8-12 weeksDesign the modern target — including the 5250 UI strategy, which is the IBM i-specific architectural decision that drives much of the rest.
- 04
Data Migration Design
8-12 weeksPlan how DB2 for i moves to a modern relational target. DB2 for i is more migration-friendly than VSAM/IMS but has its own quirks (multi-member files, logical-file roles, DDS extensions, CCSID, journaling).
- 05
Build the Coexistence Layer
8-12 weeksBridge IBM i and the new system: API gateway, data sync, federated auth, observability that spans both worlds. Easier than mainframe coexistence — IBM i has good ODBC/JDBC drivers and Integrated Web Services.
- 06
Migrate the First Capability (Vertical Slice)
4-6 months for the first sliceShip one complete capability through the new stack. For RPG specifically, slice 1 should be read-only or low-stakes with limited 5250 redesign — exercise the infrastructure, not the riskiest UX.
- 07
Continue Migrating Slices
1-3 years (the dominant phase)Migrate the remaining capabilities — backend, UI, and tests in parallel. Track progress visibly: % programs migrated, % transactions on new, % 5250 screens replaced, % users on new UI.
- 08
Decommission IBM i
4-12 monthsTurn off IBM i. Sequence: read-only IBM i → selective subsystem shutdowns → data archive → hardware decommission (or contract termination if PowerVS) → license cancellation.
- 09
Workforce Transition
Throughout the program, intensifying in the last 6-12 monthsCapture institutional knowledge before retirement; retrain transferable RPG developers; transition operations; lead the culture change. Failed modernizations often fail here.
- 10
Post-Migration Validation and Optimization
6-12 months post-cutoverVerify the modernization actually delivered (cost, performance, reliability, agility, compliance). Then optimize the parts that were rushed.