The problem
Large insurers, pension funds and retailers still run core systems on mainframes. The code is decades old, the licences are expensive, and the people who can maintain it are retiring. Rewriting millions of lines by hand takes years and introduces new errors into logic that has been correct for a long time.
The approach
A programmatic migration translates the old code by machine. The translated program must behave exactly like the original, so the business does not notice the change.
- A three-stage toolchain. A parser reads the legacy source into a syntax tree, and a code generator writes Java from it. I redesigned this architecture for a functional legacy language at the German insurer.
- A runtime that behaves like the mainframe. An emulation layer preserves the behaviour of the original environment, so the generated Java produces the same results.
- Tests from end to end. The migrated system is checked against the original with end-to-end tests. The testing standards we set were adopted across the organisation.
My part
I joined as a software engineer in Austin, Texas, and worked onsite with Target and Walmart on mainframe-to-Java migrations: Cobol parsing, the custom runtime and end-to-end tests.
I then moved to Ulm, Germany, and was promoted to lead within 24 months. There I led the migration for a major German insurer, grew the team from 3 to 20 engineers and coordinated with offshore teams in India.
Result
- 16 million lines of legacy code migrated to Java.
- 6 million EUR saved per year in licence costs for the insurer.
- Two production go-lives on separate projects: the German insurer, and a US state pension fund and social security agency.
This was work as an employee of Deloitte, in teams. I name it here because the same skills apply to contract work today: reading a large legacy system, changing it safely and proving that it still does what it did.