---
title: "Old software brought back into shape with AI, AS/400 too · Volcanic Minds"
description: "What AI really does on an old business system, AS/400 included: documenting code, checking the numbers, converting, the limits, the costs and where to start."
url: "https://volcanicminds.com/en/guides/legacy-software-ai"
lang: "en"
type: "second_level_page"
updated: "2026-12-03"
alternate: "https://volcanicminds.com/guides/legacy-software-ai"
summary: "Yes, AI helps bring old software back into shape, as long as it is used by people who can check its work: it reads and documents code nobody understands any more, maps the programs, writes the missing tests and speeds up conversion. The rules the code does not explain, checking the numbers and choosing the path stay with people. If the person who knows the system is retiring, start now, while they are still there."
---

# Old software brought back into shape with AI what it really does, on an AS/400 system too

For owners and for whoever runs operations in a company that works every day on an old business system, perhaps on AS/400, that few people can still change: what AI does, where it goes wrong, how it is checked, what it costs and where to start.

## What does AI actually do on old software?

It reads it faster than a person and explains it in plain words: what each program does, which files it touches, where it works out a price or a due date. From there it helps with almost all the rest of the work, and every result it produces has to be checked by someone who answers for it.

**Old software**, or legacy software, means a program the company uses every day that few people can still change: written in a language nobody teaches any more, without documentation, or grown for years in the hands of one or two people. AI works on it through a **code assistant**, a program based on a language model that reads and writes code in the developer's environment, such as Claude Code, GitHub Copilot or IBM Bob.

| Task | What AI does | What stays with people |
| --- | --- | --- |
| Understanding the code | describes in plain words what each program does | checking that the description is right |
| Map of the programs | lists calls, files and code nobody uses any more | deciding what can be switched off |
| Business rules | finds where prices, discounts and due dates are calculated | explaining why the exceptions exist |
| Tests | writes the tests that pin down today's behaviour | choosing the hard cases and the real data |
| Conversion | rewrites a program in a newer form or language | reviewing the code and testing it on the numbers |
| AI on top of the system | answers questions on the data without touching the code | deciding what it may read and do |

Compared with a few years ago, the first row is what changed most. Reading thousands of lines written twenty years ago by someone who has since left was the longest part of a modernization, and what pushed quotes up; today a code assistant gives a first reading in a few hours. The other rows change less, because the checking is still work for people.

**We use AI to read, document and test code, and what it writes is reviewed by a person who answers for it: [a model is never the last check before production](/frequently-asked-questions#ai-nel-nostro-lavoro).**

## The person who knows it is retiring: where do you start?

You start now, while that person is still there: AI writes the documentation of the code, and whoever knows the system corrects it and adds the reasons the code does not contain. The steps, in order:

1. secure the system: source code and the contract that says who owns it, credentials, a full copy restored on another machine, as the guide on old software explains under [what to do if the person who knows it retires](/guides/legacy-software-modernization#what-if-the-person-who-knows-it-retires);
2. export the sources to text files, so a code assistant can read them off the machine, and first remove passwords and customer data written inside the programs;
3. AI documents the programs that handle the numbers first: accounting closes, invoices, warehouse, production;
4. whoever knows the system rereads every document and adds what the code does not say: why an exception exists, for which customer, since when;
5. write down the operations only that person knows how to run, such as the night jobs, the month-end close and what to do when a job gets stuck; the sessions where they show them can be recorded, with their consent, and AI turns them into procedures;
6. whoever will take over the system works alongside them on small changes, with the code assistant explaining error messages and the parts they do not know.

Securing the system starts at 5,000 €. The step that decides the quality of the result is the fourth: documentation written by AI and never reread looks complete, describes confidently what the code does and does not know why it does it. **AI writes the documentation and whoever knows the system rereads it, while they are still in the company: the reasons behind a rule are not in the code.**

## Can you trust what AI writes?

As much as you trust a capable colleague who has just joined: fast, sometimes confidently wrong, and their work gets checked. On old software the typical mistakes are these:

- documentation that is plausible and wrong, when the code is ambiguous or a piece of it is missing;
- rules a program's code does not show: a night job that starts another only after the warehouse closes, a file updated by a different program, an exception agreed verbally years ago;
- a conversion that changes a result without any visible error, such as a rounding, a date or a sort order;
- systems too large for the model's **context**, the amount of text it reads at once: AI sees one piece at a time and can lose the link between two distant programs.

Thoughtworks, which in January 2026 described an application brought back into shape with Claude Code, writes that the assistant performs much better alongside an expert and that it sometimes ignored the guidelines it had been given, so the developer kept reviewing the generated code. **Tests on real data and a person who answers for the result decide, before a change reaches production.**

## How do you check the numbers still add up?

With parity tests: the same data go to the old program and to the new one, and the results are compared to the cent. Before that come **characterization tests**, which pin down what the program does today, mistakes included, so every change is measured against real behaviour.

You compare amounts, VAT, rounding, due dates, currencies, tiered discounts and error messages, on real data made anonymous: a month of invoices, a year-end close, the customers with the oddest terms. For a few weeks the two programs run side by side on the same data, and an automatic check flags every difference.

AI writes these tests quickly, and it tends to pick the easy cases: a generated test covers lines of code and can leave out the rules that matter. The hard cases are chosen by people who know the customers and the accounts. And if the old program has had a calculation wrong for years, the test shows it: that is when you decide, with the accountant or whoever knows the rule, whether the new one should fix it.

**Before changing a line we pin down with tests what the program does today, and the new one goes into production only when it gives the same results on real data.**

## Convert it, extend it or rewrite it?

The path is chosen as before, with the guide on [rebuilding, modernizing or migrating](/guides/legacy-software-modernization): AI changes its time and risk, above all by shortening the reading of the code and the writing of tests.

| Path | What AI does | Risk |
| --- | --- | --- |
| Keep it, with documentation | reads, documents, helps with maintenance | low |
| AI on top of the system | answers on the data through APIs or MCP, without touching the code | low, the code stays old |
| Tidy it up in the same language | converts, removes dead code, splits into modules | medium-low |
| New interface on the same data | writes web screens in place of terminal ones | medium |
| **Replace it one module at a time** | rewrites a module, the old one runs until the parity tests pass | medium, and it can stop at every step |
| Rewrite it all in one go | translates everything, defects included | high |

**MCP** (Model Context Protocol) is the standard through which an AI assistant uses another software's functions: connected this way, the system answers on real data and [does only what you allow it](/frequently-asked-questions#ai-su-software-esistente). To [renew only the interface](/frequently-asked-questions#frontend-legacy) the work runs on the APIs the system exposes, or on ones added for it.

With AI, the temptation is the last row: hand all the code to a model and ask for the same system in Java. Almost every AI assistant's answer advises against it, and rightly so: a line-by-line translation carries the defects and the forgotten exceptions into the new language, and a calculation error turns up on an invoice. **We replace one module at a time, and each module goes into production on its own: if you stop, what is done stays in use.**

**Would you rather talk it through?**

Book a call with people who work on these topics every day: we will look together at your system and where to start.

- [Book a call](https://vms.srl/booking)

## What if the system runs on AS/400?

Everything above applies, with three additions: IBM still updates the platform, the language is a niche one, and dedicated AI tools exist. **AS/400** is the IBM system released in 1988 on which many Italian companies run their business software; today its operating system is called **IBM i**, and the latest release, 7.6, has been available since 18 April 2025. The programs are almost always written in **RPG**, IBM's language for business software, with CL for commands and DDS to describe files and screens.

The problem is usually the software written on top, and who knows it, more than the machine. The first thing to check is the release: according to IBM's life cycle table, standard support for IBM i 7.4 ended on 30 September 2026, and for 7.3 on 30 September 2023. Releases, backups and authorities are work for an IBM i system administrator, which AI does not replace.

The oldest RPG code is written in fixed columns, where the position of each character has a meaning; more recent code is in **free-format**, which reads like a modern language. Converting the first into the second is where AI pays off most on AS/400: the program stays on the same machine, does the same things, and becomes readable by people who learned to program in the last twenty years.

AI assistants often name watsonx Code Assistant for i, but on 3 December 2026 its Italian page on ibm.com led to IBM Bob, IBM's code assistant. Its IBM i package connects to the system, reads, compiles and tests RPG, COBOL, CL and DDS code, and cost 40 $ a month, on top of a plan of at least 20 $ a month per user, at indicative prices excluding taxes; installing it on your own servers, air-gapped ones included, is only in the Enterprise plan. General assistants, such as Claude Code or GitHub Copilot, also read RPG from exported sources.

The quickest path on AS/400 often leaves the RPG alone. The data live in the Db2 for i database, and an AI assistant can read them read-only, through ODBC, JDBC or an MCP server, with a user that sees only the tables you grant it: office staff ask in plain words for a customer's open orders, and the system stays as it was.

A constructed example, with numbers to replace with yours. A 40-person distributor runs its business software on AS/400, written in RPG in the 1990s, and the programmer who looks after it retires in eighteen months. In the first two months the system is secured and AI documents invoicing, warehouse and closes, which the programmer rereads. In the third, parity tests are written for invoicing. Then the programs changed most often are converted to free-format, while a read-only assistant answers the sales team on orders. Whether to stay on IBM i or migrate is decided afterwards, with the feasibility study, and without hurry.

## Can you give your code to an AI?

Yes, with a service that by contract does not use it to train models, or with a model running on your own servers. The code of a business system holds your commercial rules, and often passwords and customer names written inside the programs: it deserves the same care as the company's data.

[We choose Enterprise-grade cloud services](/frequently-asked-questions#dati-aziendali) that contractually exclude the use of your data for training, and Zero Data Retention services, which keep nothing of what they receive, when more is needed. If the code must not leave the company, the models are installed on private infrastructure, as the guide on [AI in the cloud or on your own servers](/guides/ai-on-premise-vs-cloud) explains.

**If you prefer that we do not use AI tools on your code, just say so: we explain the impact on the timeline and we respect the choice.**

## What does it cost, and what does it save?

The cost depends on the path more than on AI, which shortens the work; [the hours saved are not invoiced to you](/frequently-asked-questions#ai-nel-nostro-lavoro). Our figures are the same as in the guide on old software, under [how much it costs to keep it and to change it](/guides/legacy-software-modernization#how-much-does-it-cost-to-keep-it-and-how-much-to-change-it).

| Item | Cost |
| --- | --- |
| Securing the system, while the person who knows it is there | from 5,000 € |
| Feasibility study | up to 2,500 €, in 1-2 weeks, deducted from the first piece of work if you sign |
| **Replacing the first module** | from 10,000 €, in 6-8 weeks |
| Rebuilding it in one go | from about 15,000 € for an essential management system, from 45,000 € for a platform, plus data migration |
| IBM Bob with the IBM i package | 40 $ a month plus a plan of at least 20 $, per user, indicative prices |

How much time AI will save cannot be known in advance. Percentages circulate in AI assistants' answers, such as a 40-50% cut in timelines attributed to McKinsey: on 3 December 2026 it came from a Reddit post, without the original document, and the other figures from vendors' sales pages. The best documented case among those cited is Thoughtworks': a web application estimated at six months of work went into production in six weeks, with about 20% of the planned effort. It was a dashboard written in Angular, used every day by thousands of people, with an expert reviewing all the code: a business system with twenty years of accounting rules is a different job.

The way to find out, on your software, is a pilot: one medium-risk module, with parity tests, measuring how long it took against the estimate.

## What to ask before you start

These questions apply to anyone who offers to bring your business system back into shape with AI. Ask them in writing.

1. Which AI tools do you use on our code, and under what contract for the data?
2. Who rereads the documentation and the code written by AI?
3. How do you prove the new system does the same sums as the old one, and on which data?
4. What happens if we find a rule that has been wrong for years?
5. Do the hours AI saves you show up in the quote?
6. Who owns the documentation, the tests and the new code?
7. Which systems like ours have you already worked on?
8. Can we stop after the first module, and what do we keep?

On question 6, with us code and documentation pass to you [milestone by milestone](/frequently-asked-questions#proprieta-codice). If the system is looked after today by a software house that no longer answers, there is the guide on [switching software house](/guides/switch-software-house); if someone in the company has already rebuilt a piece of it with AI, the one on [bringing a prototype built with AI into the company](/guides/ai-prototype-to-production).

## Where we have done it

Even before language models, on large systems the analysis was done with automated tools. For an automotive company we analysed the code quality of a couple of applications that ran to tens of thousands of files: by hand it would have taken too long and cost too much. How the debt accumulated in a system is measured is told in the article [on technical debt](/insights/tech-debt-strategic-risk).

For [technical field interventions](/case-studies/field-service-management-dashboard) the operational frontend was built on simulated responses and connected to the client's endpoints as soon as they were ready. For a [telecare and security monitoring centre](/case-studies/telecare-monitoring-dashboard) the partner's backend already existed: we designed and built the interface connected to its APIs. It is the path of a new interface on the same data, with the existing system staying where it is.

The founder has worked in software for more than twenty years, and every collaborator is a senior professional with at least ten years of practice: [the experience](/frequently-asked-questions#esperienza) it takes to read a business system written by others, years ago.

## Frequently asked questions

### Can AI rebuild our business system on its own?

No. It can translate the code, but without people who know the rules and without tests on real data it translates the defects too, and the errors show up on invoices. It works one module at a time, with a person reviewing the code and tests comparing the old program with the new one.

### The person who knows our system is retiring. What do we do?

Start now, while they are still there. Secure sources, credentials and a restored copy, have AI document the programs that handle the numbers and have that person reread every document, adding the reasons behind the exceptions. With us, securing the system starts at 5,000 €.

### Is there an AI for AS/400?

Yes. IBM sells IBM Bob with an IBM i package that connects to the system and reads, documents, converts and tests RPG, COBOL, CL and DDS code; on 3 December 2026 it cost 40 $ a month plus a plan of at least 20 $ per user. General assistants, such as Claude Code or GitHub Copilot, also read RPG from exported sources.

### Can I give our code to an AI?

Yes, with a service that by contract does not use it to train models, or with a model installed on your own servers. First remove from the sources any passwords and customer data written inside the programs. A free chatbot used with a personal account is not the right place.

### How much does it cost to bring a business system back into shape with AI?

It depends on the path. With us the feasibility study costs up to 2,500 € in 1-2 weeks, deducted from the first piece of work if you sign, and replacing the first module starts from 10,000 € in 6-8 weeks. AI shortens the work, and the hours saved are not invoiced to you.

### How much time does AI save?

It depends on the code, on how well it is documented and on who checks it. The percentages going around have no verifiable source. The best documented case, from Thoughtworks, is a web application estimated at six months that went into production in six weeks. On your software, a pilot on one module measures it.

### Do we have to leave AS/400?

Not necessarily. If your IBM i release is supported and the problem is code nobody can read any more, you can document it, convert the RPG to free-format and open the data to AI while staying on the same machine. Whether to migrate is decided by the feasibility study, on costs and on people.

## Does only one person know your system?

Tell us what it runs on, what language it is written in and who looks after it today: we will tell you where to start, before the quote.

- [Let's talk about your project](/en/contacts)

## Articles on the same topics.

*Continue*

- [Per-seat SaaS and AI agents: buy the software or have it built?](/en/insights/per-seat-saas-ai-agents-buy-or-build.md): Per-user licenses, credits and AI agents in 2026: what changes for a company choosing between SaaS and custom software, and what to check at renewal.
- [GraphRAG or hybrid RAG: when the graph is worth what it costs](/en/insights/graphrag-vs-hybrid-rag.md): GraphRAG, vector RAG and hybrid RAG on the 2024-2026 benchmarks: which questions the graph wins and what it costs to build and keep up to date.
- [Web Bot Auth: visitors with no eyes](/en/insights/web-bot-auth-agentic-traffic.md): AI agents read your site and convert better than organic, yet they never show up in analytics. How to measure them and verify them with Web Bot Auth.
