jacksonyang.dev AboutWorksInsightsContact 中文

COBOL can move, but the all-or-nothing guarantee mostly isn’t in the code

Enterprise AI · 20 November 2026 · Jackson Yang

When COBOL on a mainframe is split into services and part of it is moved elsewhere, the business logic really can go with it. But the guarantee that a failed transaction is backed out as a whole is mostly not written in the COBOL. CICS, together with the Db2 and MQ resources it coordinates, provides it on the program’s behalf. Once a transaction is cut across two platforms, that guarantee does not move with the code. Someone has to redesign it.

On 17 November, Rocket Software launched Rocket Transaction Platform, which runs COBOL and PL/I applications on distributed and cloud environments and turns their capabilities into services that can be called through APIs. DevOps.com’s coverage notes that teams can move only selected functionality and keep the rest on the mainframe. Earlier in the month, a 3 November update to AWS Transform for mainframe made the way it splits COBOL and PL/I applications into “business functions” more precise: functions are now grouped only when they affect the same data fields.

By these vendors’ own accounts, tools are drawing these splits at an ever finer grain. What I think gets underestimated in the process is not the business logic, but the promises that are not in the code.

A claim payment whose program has no backout logic

Imagine an insurer whose claims system runs on CICS. Once a claim is approved, a COBOL program does two things in a single transaction: it sets the claim status in Db2 to “paid” and puts a payment instruction on an MQ queue for the disbursement system. If the program fails between the two steps, neither side is left half done. The status does not change, and the payment instruction is never sent.

Yet whoever reads this program, whether a new engineer or an AI brought in to write up the specification, will usually not find any code that handles this case. It was never in the program.

Backout is done by the platform, so reading the code will not show it

IBM’s CICS documentation is clear about this. A unit of work is the unit of recovery: its changes are either all committed or all backed out. When a transaction ends abnormally, CICS performs dynamic transaction backout, and a program can also request it explicitly with SYNCPOINT ROLLBACK. When Db2 and MQ are involved, this relies on two-phase commit with CICS as the coordinator: the Db2 documentation states that when Db2 interacts with CICS, Db2 is always a participant, and the MQ documentation likewise states that under CICS or IMS, MQ is always the participant.

There is a detail that is even easier to miss. The page describing dynamic transaction backout also says that nonrecoverable resources are never backed out. For a VSAM file, whether it counts as recoverable is decided by the RECOVERY attribute of its CICS file definition or by settings in the data set catalog, which is not in the COBOL either.

In the DevOps.com interview, Rocket’s Phil Buckellew says one difficulty in converting COBOL is that much of the functionality of the underlying platform is often undocumented. I agree, and transaction backout is the clearest example: it does its job every day, and nobody normally has to think about it.

Once a transaction crosses the network, backout has to be written by hand

Go back to the claims example. Suppose the team moves the disbursement step off the mainframe into a service in the cloud, and the mainframe now calls it through an API. What used to be one piece of work under one coordinator becomes two pieces of work, each committed on its own side.

The usual way distributed systems handle this is a saga. The microservices.io write-up is plain about the cost: there is no automatic rollback, so developers must design compensating transactions that undo the steps already completed, and there is no isolation, so concurrent transactions can see each other’s intermediate states.

Where teams actually get stuck is often a timeout. The mainframe calls the disbursement service, waits a few seconds without a reply, backs out the claim status and plans to retry later. But the disbursement service may already have committed the payment in its own database; only the reply was lost. Retry, and the same claim may be paid twice. Do not retry, and the claim status no longer matches what was actually paid out. Situations that CICS used to coordinate, without the program having to care, now have to be stopped one by one with idempotency keys, compensation flows and reconciliation jobs, all of which are new code that needs new tests.

Rocket says the platform preserves transaction processing capabilities including coordination and recovery, which describes applications running inside its own runtime. My concern is a different boundary: one business transaction with half of it left in place and half of it moved somewhere else. At that boundary, the guarantee has to be redesigned by someone. It cannot be assumed to still be there.

Draw the split along transactions first, then along functions

So I think the transaction boundary should be the first line drawn when splitting a mainframe application, not the last item checked. Which steps share a unit of work today, and which resources are defined as recoverable, should be listed before anyone decides how to split. Steps that share a unit of work are best moved together or left together. If they really must be separated, compensation, retries and reconciliation are part of the formal scope of the project, not patches added after go-live.

Rocket’s press release quotes October research from Gartner: for mainframe exit initiatives, replatforming remains the only approach demonstrated to succeed for a significant enough number of Gartner clients. I can only see the part quoted in the press release, and it does not say why that approach succeeds. Seen from the transaction boundary, though, moving the whole thing, execution semantics included, at least means nobody has to reinvent the all-or-nothing guarantee.

My worry is that the more precisely tools split business functions, the easier it is to believe that the system has been understood. But splitting functions precisely is not the same as splitting transactions correctly. A system that has gone years without ever making half a payment may not owe that to carefully written code. It may simply never have had to handle the case itself.

These are my personal views and do not represent IBM. For product details and timelines, each company’s public information is authoritative.