The code that's still in COBOL is likely mission-critical and must run exactly correctly. The processes it implements are also probably complex enough (e.g. due to the number of workflows and their special cases) that the code is exceptionally difficult or risky to rewrite.
Even if the amount of labour required to produce the bulk of the code could be cut significantly with LLMs, maintaining correctness (or verifying it) doesn't become trivial.
You can't vibe the kinds of applications that still run in COBOL.
You would introduce new problems.
what is the problem that warrants solving?
A legacy COBOL code base that runs on expensive and proprietary hardware doesn't sound like a big enough problem?
It is quite likely NOT running on legacy hardware though.
COBOL codebases are actively updated, maintained, and expanded.
Instead of wholesale rewrites (which is high-risk), one strategy is adapting a COBOL code base to interact with other cloud software.
Sure there might still be some CNC machine or proprietary interface that exists, but this is so far in a tiny minority that its not economically viable to pay attention to
The truth is that COBOL, particularly on IBM System/390 and z/Architecture, has some rather unusual data representations and capabilities.
For example, PIC 9(18) DISPLAY occupies 144 bits! There are also packed-decimal representations (COMP-3), native decimal arithmetic supported directly by the processor, and other specialized representations. Modern Enterprise COBOL even supports decimal fields of up to 31 digits.
These aren't necessarily exclusive to COBOL or IBM hardware, but the combination of language features, hardware support, and ecosystem integration makes the environment quite distinctive.
And then there's the ecosystem itself. I'm going to keep this deliberately vague for simplicity, but imagine an airline or a bank with millions of lines of COBOL, deeply integrated with databases, transaction processing, messaging, batch systems, and decades of accumulated business logic.
Porting that isn't simply a matter of translating source code. You have to preserve behavior, data representations, transaction semantics, and integrations. Verification alone would be an enormous undertaking. You really don't want to accidentally introduce a rounding error into a banking system or break an airline's reservation system.
Much of this software is also extremely close to the underlying hardware and operating environment. That's part of what makes these systems so difficult to replace.
I’d be interested to hear from anyone doing work in this field, if I’m right or not. I only have one personal observation, of an IBM system which was still in use in the 2010’s but the TUI was accessed from a web browser and the execution was (reportedly) in an emulator on a modern PC server.
This is the tip of the iceberg, there are other bugs in the handling of network interfaces, dasds etc. They also have limitations which real hardware do not have. I recommend emulators (free and commercial) for developing, but I'd say, unless you are a hobbyist, stay away from those to run production software; it will work until it breaks.
(*) Some are not fixed to this day, and I've lost hope that they ever will be.
IBM has mainframe revenues of $6 billion annually. No need for emulators.