Skip to content

Insurance legacy systems on mainframe and IBM i: modernization paths

B2Bnetwork team · · 7 min

IT in insurance

In brief

An insurer with a policy system on a mainframe or IBM i has five paths: keep the system and open it up through APIs, move it to another platform without changing the logic, convert the code automatically to a new language, replace modules gradually, or replace the whole thing with a packaged system. The choice depends on where product knowledge lives, how many product versions remain in the portfolio and how much risk the board accepts in a single step. The gradual path is usually the safest.

Why these systems still run

Policy and claims systems on the mainframe (COBOL, CICS, JCL batch) and on IBM i (RPG, Db2 for i) have run at insurers for decades because they do well what they were built for: processing large transaction volumes, overnight batches and settlements without downtime. Life policies written twenty years ago are still serviced under the terms in force on the day they were written, and those terms often exist only in code.

The platform itself is rarely the problem. The problem is three things around it:

  • people: COBOL and RPG developers are retiring, and newcomers know neither the language nor the products;
  • pace of change: a new product or tariff change requires code changes and long regression testing;
  • integrations: the portal, mobile app, comparison sites and partners need real-time APIs, while the system thinks in terminal screens and overnight files.

So the first question is not "how do we switch off the mainframe" but "which of these three problems hurts most". A general overview of strategies for policy systems is in Policy administration systems: how to modernize an insurer's core. Here we focus on the platform.

Five modernization paths

PathWhat changesMain riskWhen it makes sense
Opening up through APIsnothing in the logic; transactions and programs get a service interfacethe old system remains a bottleneck for performance and knowledgethe problem is integration, not product changes
Rehostingthe code runs in an emulator or on different hardwarelicense costs and batch performance after the movethe problem is cost and hardware, and the code is stable
Automated code conversionCOBOL or RPG rewritten by a tool into Java or C#converted code is hard to read, logic still undocumentedno people for the old language, but the logic is sound
Gradual replacementnew modules take over functions and products one by onetwo systems for years and data synchronizationa large portfolio, many product versions, low risk tolerance
Full replacementa packaged or custom-built system, migration of the whole portfolioone big cutover, migrating data from many yearsa small portfolio or products in run-off

Paths can be combined. A common sequence is opening up through APIs as the first step, because it gives digital channels what they need, followed by gradual replacement once the API separates channels from the core.

Knowledge hidden in the code

Every path except rehosting requires understanding what the system really does. At an insurer, the most important part is product rules: how the premium is calculated for each tariff version, the surrender value, the refund on termination, profit participation. Documentation usually describes the state of years ago, and changes since then exist only in the code and in the heads of a few people.

An inventory works best in four steps:

  1. Program and data map: which programs read and write which files and tables, and which transactions and batch jobs run them.
  2. Product map: which product versions have policies in force and which programs service them.
  3. Business rules: rules written down for each product version, with numerical examples checked against production.
  4. External dependencies: files exchanged with banks, partners, the supervisor and the data warehouse.

Code analysis tools and language models speed up steps 1 and 3, but the result must be checked by someone who knows the product. Methods are covered in Documenting a legacy system when its authors are gone and Documenting RPG with AI.

The gradual path in practice

Gradual replacement relies on a pattern where the new system grows next to the old one and takes over functions until the old one can be switched off. It is described in the article on the strangler fig pattern. At an insurer it usually goes like this:

  1. An API layer in front of the old system. On the mainframe, CICS transactions can be exposed as services, as described in CICS transactions as APIs. On IBM i, RPG programs can be called as web services. Digital channels stop depending on terminal screens.
  2. New products in the new system. Sales of new products go straight to the new platform, and the old system services the portfolio in force.
  3. Shared functions moved one by one: first those that change most often, such as rating or documents.
  4. The portfolio in force: policies expire naturally or move to the new system in batches, with results compared. The plan and rehearsals for such a migration are covered in Migrating a policy portfolio to a new system.
  5. Decommissioning the old system once it no longer services any policies, with a data archive available for complaints and inspections.

Throughout this time, data must stay consistent between systems. A customer with two policies, one in the old and one in the new system, sees both in the portal, and supervisory reports add up the portfolio from both sources.

Risks, parallel runs and DORA

Modernizing the core is a change with a large impact on an insurer's operational resilience. DORA (Regulation (EU) 2022/2554) requires financial entities to have exit strategies for ICT services supporting critical or important functions (Article 28(8)) and sets out key contractual provisions for ICT providers (Article 30). When moving the platform to an external provider or buying a packaged system, these requirements must be met before the cutover, not after. How legacy platforms relate to DORA is covered in Mainframe and DORA.

The best protection against an error in the new system is a parallel run: the same events processed in the old and new systems, with results compared automatically, policy by policy. Differences are expected and must be sorted into three groups: an error in the new system, an error in the old system that someone decided to fix, and rounding differences. Without a parallel run, switching off the old system is a decision taken on faith.

Where to start

The first step is a decision, not a project. An analysis of a few weeks should give the board what it needs to choose a path:

  • an inventory of programs, data and products in the portfolio;
  • a list of problems the modernization should solve, with measures (time to launch a product, maintenance cost, number of people who know the code);
  • a comparison of paths for this specific portfolio, with risks and the order of steps;
  • an architecture decision record with reasons, so that two years later everyone knows why this path was chosen.

We run this kind of analysis as part of our analysis and architecture service: analysts document processes and product rules using examples, and architects turn them into a plan for the system, integrations and data migration.

Questions and answers

Do you have to switch off the mainframe to modernize?

No. Some insurers keep the core on the mainframe or IBM i and modernize everything around it: APIs, digital channels, data and reporting. This path makes sense when the system is stable and integration is the main problem. Switching off the platform is a separate decision that depends on cost, people and the pace of product change.

How long does modernizing a policy system take?

Opening up a few key transactions through APIs usually takes months. Gradual replacement of the whole core takes years, because it covers product after product and the portfolio migration. Full replacement can look faster on paper, but the risk concentrates in a single cutover. A reliable schedule only emerges after the inventory of products and code.

Does automated COBOL or RPG to Java conversion solve the problem?

It solves the language problem, not the knowledge problem. Converted code executes the same rules, often in a structure that Java developers find hard to read. It makes sense when the logic is sound but people for the old language are scarce, and when the team has time after conversion to clean up the code and run full regression tests.

How do you check that the new system calculates the same as the old one?

With a parallel run and comparison of results at policy level: premiums, surrender values, refunds, reserves, documents. This requires a set of test policies covering every product version in the portfolio and a tool that compares results automatically and points to the first difference in the policy history.

Changing a policy or claims system? Talk to an engineer who knows insurance products.

Let's talk

Read more: IT in insurance

All in IT in insurance →