Service · Software development

Replacing a Cobol system.

A Cobol application on the mainframe that has run your core processes for decades: batch processing, financial administration, policy administration, payroll or government benefits. The system still runs reliably, but the people who understand its logic are retiring, the mainframe's licence and capacity costs keep rising, and connecting it to a modern API or cloud environment is barely feasible with the current architecture. We expose and replace Cobol mainframe systems step by step, preserving the underlying business rules and validating extensively against the existing batch processing.

↻

Switching off a Cobol mainframe strikes at the heart of your operations.

At banks, insurers, pension funds and government bodies, core processing often still runs on Cobol. Nightly batch jobs that update policies, calculate salaries or process benefits, controlled through JCL, with data in VSAM files or DB2 tables that were set up thirty or forty years ago. These systems are not fragile in the sense that they crash often; quite the opposite: they have proven for decades that they run reliably under a business-critical load. That is precisely why they are so hard to let go of, and why replacing them demands so much care.

Cobol is one of the stacks we encounter most often in our broader legacy software replacement work, but the mainframe context brings its own risks that call for a separate approach. The field is ageing, hardly any new Cobol developers are coming through, and the people who still know the logic have often already retired or are about to leave. Documentation is rare, or was written decades ago and never updated. Every change to the system is therefore riskier than it should be: nobody knows exactly what is going on under the bonnet.

The risk of not replacing it is not that the system will fall over tomorrow. The risk is gradual: knowledge quietly disappearing with every retirement, licence and capacity costs claiming a larger share of the IT budget year after year, and an ever-widening gap with the modern APIs and cloud services the rest of the organisation now works with. That is why we always start by understanding what is there, before deciding how and at what pace it gets replaced.

How we approach Cobol projects.

Documenting business rules
We reconstruct the batch logic and data sources before building anything
Phased decommissioning
Strangler pattern: migrating batch job by batch job while the mainframe keeps running
Parallel running and validation
Shadow run alongside the existing batch, with record-level comparison
Capturing knowledge
What sits in the heads of departing Cobol programmers gets put on paper

Three steps to replace a Cobol system.

In mainframe projects we rarely opt for a single intervention. The steps below follow on from one another and partly overlap: understanding what is there, phasing it out gradually, and thoroughly proving that the new application calculates the same as the old one.

Approach 01

Documenting business rules and batch logic

The foundation of every Cobol project

We reverse-engineer the existing system: reviewing Cobol programs and copybooks, following the JCL to see the order in which batch steps run and depend on each other, and analysing the underlying VSAM files and DB2 tables for structure, keys and implicit relationships. Where colleagues still understand the day-to-day workings, we capture their knowledge before they retire or leave. The result is a readable catalogue of business rules that does not depend on any one person.

This phase is deliberately thorough, because the most common mistake in Cobol replacement is that a seemingly simple batch job turns out to contain a silent exception rule that is written down nowhere. We would rather find those exceptions during discovery than after a cut-over.

Copybook analysisJCL reviewVSAM/DB2 analysisKey user interviewsBusiness rules catalogueBatch schedule mapping
Approach 02

Phased decommissioning using the strangler pattern

The usual route for business-critical mainframes

We set up an interface for the mainframe that lets batch flows and transactions be redirected module by module to the new application as soon as it is ready. The mainframe keeps running as long as it still hosts batch jobs that have not been replaced, and is emptied module by module. For situations where part of the landscape remains in place alongside a new layer for the time being, this ties in with our broader service modernising legacy software.

In practice, this means that for months on end the core processing runs partly on the mainframe and partly on the new platform, with no single moment at which everything switches over at once. That feels slower than a big bang, but for financially critical systems it is almost always the safer and ultimately faster route.

Mainframe interfaceBatch job by batch jobAPI layerFeature parity firstPhased rolloutAnti-corruption layer
Approach 03

Running in parallel and validating at record level

Essential for financially critical processing

New modules are first built for functional parity with the existing system, not for improvement. Once a module is ready, it runs as a shadow run alongside the existing batch: the same input, two systems, and a record-level comparison of the results, from balances to control totals to key fields. Only when a batch matches exactly over several consecutive cycles is it considered ready for cut-over.

Because this often involves financial administration, policies or benefit payments, we deliberately allow more room for this validation phase than we would for an average application. A discrepancy that would be acceptable in an internal tool is not acceptable here.

Shadow runRecord-level reconciliationFinancial validationRollback pathParallel batch comparisonCut-over plan

What you have at the end.

A modern system in production, documented business rules that no longer live in the heads of a handful of people, and a mainframe that has been emptied step by step.

Production + staging

Two environments on a modern, supported stack, in your own cloud or on-premise.

Documented business rules

Readable documentation of what the Cobol logic did, independent of individual knowledge.

Data migration report

What was migrated from VSAM and DB2 to the new database, and which validations were carried out.

Mainframe decommissioning plan

How the mainframe is emptied batch by batch and eventually switched off, with a read-only archive.

Management (optional)

Monitoring, backups, security patches and further development under a maintenance contract.

When a Cobol project becomes unavoidable.

Four patterns in which postponing is no longer the safe choice, and in which we are usually invited to a discovery meeting first, before anything concrete is planned.

Knowledge

The last Cobol programmers are retiring

The field is ageing and hardly any new Cobol developers are being trained. The people who truly understand your system's logic are often the same people who will be leaving in the near future. Once that knowledge walks out of the door, every change to the system becomes a risky search rather than a routine job.

Costs

Mainframe licence and capacity costs keep rising

Mainframe processing is usually charged by usage and capacity, and those costs rise while the system's functionality stays the same. For organisations that look critically at their IT budget, this eventually becomes a recurring topic of discussion with nothing new to show for it.

Integration

Cobol is difficult to integrate with APIs and the cloud

A mainframe's batch-oriented architecture was not built for real-time integrations. Customers, partners and internal departments now expect direct APIs and cloud integrations. Every new integration with the old system requires a detour via file exports, intermediate layers or overnight batch processing.

Documentation

Nobody knows exactly what the system does any more

After decades of successive changes by different teams, the original documentation is outdated or missing altogether. Changes get postponed because nobody can say with certainty what a modification will affect elsewhere. That is precisely the point at which the risk of doing nothing outweighs the risk of replacing.

Risks we address explicitly.

Replacing Cobol is not a technical project; it is a change that touches financially critical processes. Four risk categories that top the list in every project.

Knowledge

Business rules disappear with departing employees

We begin every project with discovery and interviews, before the last people who still know the logic leave. We capture what they know in a rules catalogue, so that knowledge no longer depends on one person or team.

Data

Errors when migrating VSAM and DB2 data

Legacy data structures often contain implicit relationships, invalid characters and exceptions that the mainframe always tolerated. We carry out a data audit up front and build a validation suite that compares every migration with the original, down to record level.

Continuity

Disruption of business-critical batch processing

We phase every transition so that one batch job or module moves over at a time, run extensive shadow runs before cut-over and keep a rollback path open until a sub-process has run stably for several cycles.

Compliance

Financial and insurance data subject to retention requirements

For data covered by a statutory retention obligation, we maintain a documented, read-only archive of the old system and record the migration itself with an audit trail, so traceability is never lost.

How a Cobol project works.

01Introduction→ 02Discovery & documentation→ 03Build & parallel running→ 04Cut-over & decommissioning
Step 01

Introduction

Which system is in place, how old is it, who still knows the logic, and which pain point is the most acute. A no-obligation conversation with IT and the business.

Step 02

Discovery & documentation

We reverse-engineer the Cobol code, JCL and data structures, interview key users and capture the business rules in a rules catalogue.

Step 03

Build & parallel running

Building modules in sprints to functional parity, with shadow runs alongside the existing batch and record-level validation for every module.

Step 04

Cut-over & decommissioning

A phased transition per batch job, rollback path ready, then clearing out and eventually switching off the mainframe, with a read-only archive.

From Cobol mainframe to a modern stack.

Some organisations run an AS/400 environment alongside the Cobol mainframe; for that combination we have a separate approach under replacing AS/400. And because the batch output of Cobol systems is often made available through a legacy reporting layer, this project regularly touches replacing Crystal Reports as well.

Mainframe stack we encounter
CobolJCLCICSIMSVSAMDB2PL/IAssemblerRACF
Target stack, frontend & backend
Java.NET 8PythonNode.jsReactPostgreSQLKafkaREST/GraphQL
Migration, infrastructure & integration
Strangler routingETL pipelinesBatch-to-eventAnti-corruption layerAWS/Azure/GCPTerraformDocker

Frequently asked questions.

How are the business rules preserved if there is no documentation for the Cobol system?
We reconstruct the business rules from the code itself, not from documentation that is often missing or barely exists. We read the Cobol programs and copybooks, follow the JCL to see in which order batch steps run, analyse the VSAM and DB2 structures to work out which fields and references really matter, and interview the staff who still know how the system works day to day. We record the outcome in a readable rules catalogue. Where the code itself is ambiguous, we set up a shadow run in which the new system processes the same input as the mainframe, so that deviations become visible before any cut-over takes place.
Can we run the mainframe in parallel with the new system?
Yes, with Cobol projects this is almost always the route we take. We put an integration layer in front of the mainframe so that batch processing and transactions can be redirected, module by module, to the new application as soon as it demonstrably performs the same. The mainframe keeps running for as long as there are components that have not yet been replaced, and is only switched off once the last batch job has been taken over. This way there is never a moment when the entire core processing switches over in one go.
What happens to the data in the VSAM files and DB2 tables?
We start with a data audit: which files and tables exist, which fields are actually still in use, and which references between VSAM files and DB2 tables are handled implicitly in the code rather than captured in a key. On that basis we build a migration path to a modern relational or distributed database, with a validation suite that compares every migration run against the original on counts, totals and key fields. Well beyond the cut-over, we keep the mainframe archive available read-only, including for data subject to a statutory retention obligation.
How long does the discovery phase take before building starts?
That depends on how many Cobol programs, copybooks, JCL jobs and data structures there are, and on how much knowledge is still held by the people who use or maintain the system. For a compact, reasonably documented system, discovery is a shorter phase; for an extensive mainframe landscape with decades of successive changes, reconstructing the logic takes more sprints. We only give a concrete plan once discovery is complete, because any estimate before that is guesswork.
Is the risk of batch processing downtime during the project manageable?
Manageable, provided we work in phases rather than switching over all at once. Batch jobs are migrated one by one, each time only after the new version has run stably alongside the existing processing for several cycles with identical results. The biggest risk is not the switch itself, but a side effect that nobody anticipated. That is why we run extensive shadow runs and keep a rollback path open until a sub-process has proven reliable.
Do you work with the last Cobol programmers in our organisation?
Very much so, and where possible from the discovery phase onwards. They know the exceptions and workarounds that are written down nowhere and that would otherwise only come to light after the cut-over. We plan their involvement so that it does not become a full-time burden on top of their regular work, and we capture what they know in documentation so that this knowledge does not disappear when they retire. If nobody is available internally any more, we reconstruct the logic entirely from code, data and interviews with the user groups who work with it every day.
How can we be sure the new application calculates correctly from a financial perspective?
Through extensive validation before any cut-over. New modules are first tested for functional parity with the existing system, not for improvements. We then run shadow runs, in which the same input goes through both the mainframe and the new application, and we compare the results at record level: amounts, balances, control totals and key fields. Only when a batch or module matches exactly across several cycles is it considered ready for cut-over. For financially critical processing, we deliberately make this validation phase more extensive than in a typical legacy project.
Do we have to replace the entire mainframe in one go?
No, and we advise against it. Replacing an entire Cobol mainframe in one go is rarely justifiable for business-critical processing. We almost always opt for the strangler pattern: batch job by batch job, module by module, each is migrated once it is ready and validated, while the rest of the mainframe keeps running as normal. This stretches the project into phases, but significantly lowers the risk compared with a big-bang switchover.

Talk to us about your Cobol system.

A no-obligation introductory call of half an hour. We listen to what is running now, who still understands the logic, where it hurts and what has prompted you to look at it now, even if it turns out that replacement is not the right route at this point.

Edit content