In brief
A bank's mainframe is worth keeping when it reliably runs key processes, has people who understand it, and new channels can be connected to it through APIs. You need to modernize when it blocks business change, when the people who know the code are leaving, when batch processing no longer fits in its window, or when the cost of maintenance grows faster than the value of the system. The sensible path is most often a middle one: exposing functions through APIs and gradually moving the parts that really need to change.
Why banks still have mainframes
For decades, mainframes have run accounts, posting, and settlement in many banks. COBOL code, transactions in CICS or IMS, data in Db2 for z/OS, and nightly job chains in JCL handle huge volumes of operations with high availability. This is not a technology that "stopped working". The problem is rarely the machine itself, more often the people, the knowledge, and the pace of change.
A bank asking whether to switch off its mainframe is in practice asking three questions: does the system allow the changes the business needs, does the bank have, and will it keep having, people who develop it, and how much does maintenance cost compared with the alternative. The answers can differ for different parts of the same system.
It is also worth remembering that a mainframe rarely works alone. Intermediate systems have grown around it: message queues, file transfers, nightly exports to the data warehouse, reports generated from batch jobs. Every modernization decision also concerns these connections, and taking inventory of them can be harder than analyzing the code itself, because some of them have no owner and no documentation.
When to leave the mainframe
Leaving a system on the mainframe is a sensible decision when these conditions are met:
- Stability. The system behaves predictably, and incidents do not stem from its architecture.
- People. The team knows the code, and the knowledge is not locked in the heads of two people about to retire.
- API access. New channels, the mobile app, or third-party providers can use the system's functions through a service layer, without changing the core.
- Pace of change. Functions the business changes often can be separated out of the mainframe, and the core keeps what changes rarely.
- Batch window. Nightly processing fits in the time with room for volume growth.
In such a situation, investing in documentation, automated tests, and an API layer gives a greater return than replacing the system. We describe integrating older platforms through REST using IBM i as an example in the article IBM i and modern applications.
When to modernize
Signals that it is time to start planning a change:
- People are leaving. The people who know the system's logic leave faster than the bank trains successors. How to pass on that knowledge is described in the article COBOL and mainframe.
- Every change takes months. A new product waiting for a change in the core blocks the business, and the queue of changes grows.
- The batch window is running out. Nightly processing does not fit in the time, while instant payments and 24/7 operation require a real-time balance.
- No tests. Nobody knows what a change will break, because the system has no regression tests and the documentation does not match the code.
- Cost. License fees and maintenance rise, while fewer and fewer processes use the system.
A single signal is rarely enough for a decision. Three or more mean that the cost of leaving the system unchanged is beginning to exceed the risk of modernization. The assessment is worth repeating every year, because signals build up gradually and it is easy to miss the moment when a planned change becomes a forced one.
Modernization options
| Option | What happens | When it fits |
|---|---|---|
| Exposure through APIs | Mainframe functions are exposed as services for new channels | The system works well, the problem is access |
| In-place refactoring | The code stays on the platform, but is tidied up, tested, and documented | The logic is valuable but hard to maintain |
| Code migration (rehost) | COBOL code runs on another platform, in emulation or after recompilation | The problem is platform cost, not the logic |
| Rewriting fragments | Selected functions are built anew outside the mainframe, the old code is retired | The functions the business changes most often |
| Replacement with a new system | A new core banking system takes over the functions of the whole system | The core blocks the bank's strategy |
The options can be combined. A common setup is an API in front of the mainframe, a rewrite of the most frequently changed functions, and leaving stable posting in place. We describe strategies for full core replacement in the article Core banking modernization, and moving batch processing in the article Batch processing from a mainframe in the cloud.
How to make the decision
The decision is worth basing on an inventory, not on convictions. For each module of the system, write down: which processes it serves, how often it changes, who knows it, whether it has tests, which systems use it, and how much maintenance costs. Such a map usually shows that the system is not uniform: some modules can be left for years, and some are worth separating right away.
The second thing is testing. Every option other than leaving the system unchanged requires checking that the new code calculates the same as the old. Comparison tests do this best: the same input data passes through the old and the new system, and differences go to analysis. Without them, modernization swaps the known risk of the old system for the unknown risk of the new one.
The third thing is people. A modernization project needs both engineers who understand the old code and those who build the new. Knowledge of a system without its authors starts with documentation reconstructed from the code, which we describe in the article Documenting an old system when its authors are gone. What works well is a setup in which a person who knows the old system works in a pair with an engineer building the new one, and every migrated function has its business rules and tests written down before the old code is switched off. The competencies we combine in such teams, from COBOL and RPG to Java and the cloud, are shown in the section What we do.
Questions and answers
Is a bank's mainframe technical debt?
Not by definition. A mainframe is debt when it blocks change, when there are no people who understand it, or when there are no tests and documentation. A stable system with a team, tests, and API access can keep working for many more years. We write about how to measure debt in the article Technical debt.
Where do you start modernizing a mainframe?
With an inventory of modules: which processes they serve, how often they change, who knows them, what tests and dependencies they have. On that basis you choose the first module to change, usually one that the business changes most often and that has few dependencies. Before the change, it is worth building comparison tests that show whether the new code calculates the same.
Does moving COBOL to another platform solve the problem?
It solves the problem of platform cost, but not the problem of knowledge and pace of change. After the move, the code is the same code nobody wants to change. A rehost makes sense when the logic is good and the bank wants to cut infrastructure costs. When the code is the problem, you need refactoring or a rewrite of selected functions.
How long does mainframe modernization in a bank take?
It depends on the scope. Exposing selected functions through APIs is a project of months, while replacing the whole core is a multi-year program. That is why most banks split modernization into phases, each of which delivers a result on its own, instead of waiting for a single cutover at the end.