Mainframe modernization
27,300 lines of COBOL. Forty hours. Endpoints live and tested.
A large enterprise carries a portfolio of mainframe applications it cannot retire and cannot
safely touch. The estate is a standing tax: specialist contracts, licensing, and an
ever-shorter list of people who understand any given program. Every modernization proposal
comes back priced in years. We took one application and ran it through 1904 end to end.
Why mainframe migrations take years — and it is not the typing
Rewriting COBOL into a modern language is the small part. The reason these programs run one
to four years is that nobody knows what the system does anymore, and the specification
that would tell you was never written down. It has to be recovered from four places at once:
1The green screens
BMS maps define the terminal screens, and those screens encode the actual workflow — field order, field widths, which operations exist, what an operator is allowed to do and in what sequence. The screen layout is the undocumented user manual. Read them properly and you have recovered the use cases.
2The middleware
CICS is where the program actually lives: which module calls which, where transactions begin and commit, what happens on an abend, which paths are reentrant. A call graph across the transaction layer is what separates the business logic from four decades of plumbing built to keep it running.
3The copybooks
Copybooks are the type system. Every field width, sign convention, and packed-decimal declaration is a constraint the business depends on, whether or not anyone remembers why. Get one of these wrong and you do not get a crash — you get money that is quietly off by a cent, discovered in an audit.
4The data schema
The DB2 and VSAM definitions carry the rules the code assumes and never re-checks: key structures, cardinality, referential behavior, what cascades on delete. The schema is the most honest specification in the building, and it is the one nobody reads.
Conventionally, that recovery work is a consulting engagement: months of archaeology and
stakeholder interviews before a single line of replacement code is written, then a big-bang
cutover the business is right to refuse. 1904 treats discovery as a pipeline stage rather
than a project phase. It reads the COBOL, the copybooks, the BMS maps, the middleware call
graph, and the schema, and writes the specification that was never written — then
builds against that specification, with tests pinning behavior to the original before
anything is allowed to merge.
The run
The application was a classic three-tier transaction core: green-screen terminal maps in
front, a body of COBOL programs invoked through the transaction manager, and a data layer
the programs had been written against for decades. Twenty-nine programs, roughly 27,300
lines, and no current specification for any of it.
29 → 15COBOL programs replaced by REST endpoints
27,300 → ~1,300lines of code, COBOL to a modern stack
19parity tests covering the preserved business rules
40 hrsdiscovery to migrated, running, and tested
That last row is the whole discipline in one line. A migration that quietly “fixes”
behavior is not a migration; it is an unreviewed change to a production system, shipped
under a friendly name. Parity comes first and is locked by tests. Improvements land
afterward, deliberately, as their own reviewed change.
The old way
One to four years, per application
Discovery and documentationmonths of interviews
Migrationquarters of hand-rewriting
Cutover modelbig bang
Cost driverconsulting years
Typical outcomedeferred again
Most mainframe modernization programs are not cancelled because they fail. They are cancelled because they are still in discovery when the budget cycle ends.
With 1904
Under a month, start to cutover
Discovery → migrated & tested40 hours
Development cost~$700
QA and user acceptance~1 week
Cutover~1 week
Cost drivermodel tokens, per application
The expensive input stops being consulting time and becomes model tokens. That changes which applications are worth migrating — which is to say, all of them.
Walk the migration with us
This engagement is covered by its customer's confidentiality, so the source is not
published. Under NDA we will walk you through it properly — the recovered
specification, the endpoint map, the parity suite, and the decision log showing which
behaviors were preserved and why. Or skip ours entirely: bring one of your own programs
and we will run discovery against it, so what you evaluate is your estate rather than
someone else's.
The point of one migrated application is never the one application. It is the unit
economics of the next forty. When discovery is a repeatable pipeline stage priced in tokens
rather than a bespoke engagement priced in consulting years, the estate stops being a wall
and starts being a queue — and the applications that never justified a business case
individually can finally be done.