A nightly job on your IBM i has run for decades, and it finishes before anyone in the building asks about it. That job calls programs that share one copy member, and ten programs pull that member in when they compile. Change one field in that member, and all ten programs pick up the change at their next compile. Legacy system modernization on IBM i starts from facts like that one, because your business rules live in the code.
You want a plan you can approve with the program list in front of you. A useful plan says which programs change first and what else each change touches. The risk in any change is a job nobody mapped. A map of the source turns that risk into a list of programs and files your team can check one at a time. We build that map and that plan through the IBM i modernization assessment, and you choose the path the plan follows.
What legacy system modernization means on IBM i
IBM i is the current name of the operating system once sold as AS/400, and it runs on Power hardware. Between those two names, IBM sold it as iSeries and then as System i. Your team may use any of those names, and the RPG programs in your source libraries are the same programs under each one.
On this platform, legacy system modernization changes the RPG programs where your business rules live. You can clean up fixed-format RPG into free-format RPG and stay on IBM i, or you can convert the RPG to another language. You can also keep your green screens exactly as your users know them while we modernize the programs behind them.
A source library often contains fixed-format RPG III beside free-format RPG IV, with DDS-defined files, display files, printer files and copy members threaded through it. RPG IV arrived in 1994, and it also goes by the name ILE RPG. A plan has to cover every dialect in the library, because a count built from the newer code alone leaves the older programs out.
When someone asks why a program comes early in the order, the plan shows the files and programs tied to it. Your team can then check each of those files and programs against the source before anyone approves the order.
Do you have to leave IBM i to modernize? No, and we put the choice this way: “Some shops want to move off RPG entirely. Others want to stay on IBM i and clean up fixed-format code into free-format. Plenty of buyers want to keep their green-screen workflows exactly as they are while modernizing what sits behind them. All of those are valid outcomes.”
The choice belongs to you once you see what your code contains. Every one of those outcomes starts with a full read of your production source.
The parts of an IBM i system the work touches
The work reaches five parts of an IBM i source library. A plan needs a few facts about each part before anyone edits a line of code.
| Part of the system | What it contains | What the plan records |
|---|---|---|
| RPG programs | Your business rules, in fixed-format or free-format RPG | What each program does in plain English, and the files and programs it depends on |
| DDS-defined database files | The record layouts your programs use | Every program that takes data from the file, and every program that writes to it |
| Display files | The green screens your users work in | The programs behind each screen |
| Printer files | The reports and forms your system prints | The programs that feed each report |
| Copy members | Shared source that programs pull in at compile time | Every program that pulls the member in, and whether each member was found |
A change to one program can reach a database file, a display file, a printer file or another program. A plan that tracks only the programs misses the screens and the printed forms your users see first. One change to a database field, for example, can reach a form that prints at the end of the nightly job.
Copy members need the closest look, because one edit to a member reaches every program that pulls it in at compile time. An unresolved copy member is one that a program pulls in and the ingestion layer could not find when it took in your source. Each unresolved member leaves a gap in the map, and that gap goes on the plan as an open question until a person finds the source.
The paths a plan can take
Your plan can keep the code on IBM i or move it to another language, and we do the work on both paths. The target comes from you, and the plan follows it.
If the code stays on IBM i, we clean up fixed-format RPG into free-format RPG and keep it on the platform you run today. Free-format RPG is still RPG, and your developers keep working in the language they maintain now. Our page on fixed-format to free-format RPG covers that conversion in more detail.
If the code moves, AS/Forward converts your RPG to the language you pick, and Python is one example. Our guide to converting RPG to Python covers that target if your team leans toward it. The map lists what each program depends on. Your team uses that list to plan which programs move together and which can move alone.
Legacy system modernization on IBM i can end at either path, and both paths start from the same map. The screens add one more decision to the plan. Our guide to the four architectures for an AS/400 with green screens sets out the tradeoffs of each option. Two of those architectures deal with the screens directly. One keeps the green screens and modernizes around them, and the other wraps the 5250 screens for a browser.
The assessment comes first, the target decision comes second, and the second decision is yours. AS/Forward does not force a rewrite you did not ask for.
What to count before you pick a path
Before any change, your team asks one question: if we touch this, what else moves? The answer comes from four things a plan needs from the code first.
- The program count comes from your production source libraries, and it sets the size of the plan.
- The map shows what depends on what across the whole codebase, and your team can pick a file and see what else moves when it changes.
- The plain-English descriptions say what each program does before anyone changes it.
- The readiness split sorts every program into ready or review, and the order of the work follows that split.
Say your team plans to change a field length in one DDS-defined file. The map lists every program that uses that file, and each of those programs goes on the plan before the change does. Some of those programs write to the file and some only take data from it, and the plan keeps both lists. The field length change stops being a guess and becomes a list of programs and print jobs your team can check. The map also works in the other direction. Pick one program, and the map lists the files and programs it depends on.
With those four in hand, you can forward the program list behind each path to your risk officer and your CFO. Each of them sees which programs a path changes before anyone approves the work.
We go further into the count itself in our post on counting the source before a bid. The count comes first because every later number in the plan depends on it.
Where AI fits in the work
Today, what a program does lives in two places. It lives in the source, and it lives in the memory of the people who maintain that source. A plain-English description puts it in a third place, where your whole team can look it up. Anyone who approves a change can learn what the program does first, and nobody has to learn RPG to do it.
Your security team may ask what the model works from and where it runs.
We don’t hand raw code to a language model and hope for the best. AS/Forward reads all six RPG dialects through a proprietary ingestion layer, and it builds interconnection graphs across the whole codebase from that structured read. Then it writes a plain-English description of every program from the ingested source. When the ingestion layer cannot resolve something, the program page shows a warning.
The language model works from what the ingestion layer built. In the recommended deployment, AS/Forward runs air-gapped inside your own infrastructure with a local model, and your source code stays on your network. AS/Forward also works with Claude, OpenAI or Gemini. You choose the model that fits your security rules.
A description built from the ingested source gives a developer something to check against the code. When a description and the source disagree, the developer sees both on the same program page and settles the question there.
How readiness orders the work
Each program page in AS/Forward pairs the source with its description, its dependency edges, warnings for anything unresolved and a readiness status. Your developers check the work on that page before anyone converts a line.
Clean programs are marked ready, and those programs go into the work first. Programs with gaps go to human review before anyone converts them, and an unresolved copy member is one kind of gap. A review means a person opens the program page and checks the warning against the source. After that person resolves the gap, the program joins the work.
Go back to the nightly job and the copy member that ten programs pull in. The map ties those ten programs together, and your team sees them as one group before anyone edits the member. The ready programs in that group go first. The rest wait until a person has checked them, and then they follow. Our application modernization roadmap for IBM i turns that order into eight steps.
Migration-impact reporting scopes the work program by program, before you commit to anything.
What to check on your own system
You can start this work on your own system with five checks, and each one uses what you already have on the system and on your team.
- Count the programs in each production source library, and note which programs are fixed-format and which are free-format.
- Run DSPPGMREF on a program you know well, and compare its output with the source you have today.
- List the copy members each program pulls in, and mark any member your tools could not find.
- Pick one nightly job and list every program it calls, because that list is a small version of the map.
- Ask your team which jobs build a program name from a parameter at run time.
The first check gives you the size of each library and the share of fixed-format code that a free-format cleanup would touch.
DSPPGMREF reports references at the file level, and it captures them at compile time. Its output reflects each program as it was last compiled, which is why the second check compares that output with today’s source.
The third check shows you some of the gaps before the assessment starts. Each member you find early is one fewer open question on the plan.
Set the program list from the fourth check beside the copy members from the third check. You can then see which programs in that nightly job share a member, and those programs change together when someone edits that member.
The last check covers one thing a tool that reads source cannot find. A program name assembled from a parameter at run time never appears in a static cross-reference. AS/Forward cannot see that value. Your team knows which jobs work that way, and we add those calls to the plan from your team’s list.
Bring your notes from these five checks to the first call. We use them to point the assessment at the source libraries you run in production. On that call, we also ask whether your users need the green screens to stay as they are.
How we run the assessment
Every legacy system modernization plan we build starts with the assessment, because it sizes the work before you commit to a path. The assessment follows these steps.
- We set up AS/Forward inside your own infrastructure.
- The proprietary ingestion layer takes in your production source libraries.
- AS/Forward builds the map and the descriptions.
- Each program gets a readiness status.
- Migration-impact reporting scopes each path program by program.
You see what a free-format cleanup touches and what a conversion to another language touches. You compare the paths with the same program list in hand. Then you pick the path, and we do the work on it.
AS/Forward has one US patent pending. Your security team can read our AS/Forward page before the assessment starts, because it covers how AS/Forward deploys and which models it works with.
Tell us what your system runs
Our team builds enterprise software in Hot Springs Village, Arkansas. Call us at 501-232-7188 and tell us about your system. Tell us roughly how many programs your production source libraries contain and which path you lean toward today. If writing suits you better, send the same details through our contact page.
When your plan moves programs in stages, our guide to strangler pattern migration shows how to retire the old code one service at a time.