Skip to main content

Mainframe modernization · confidential customer

A 27,300-line COBOL transaction core migrated and tested in 40 hours

The source application combined COBOL programs with CICS transactions, BMS screens, copybooks, and DB2 or VSAM data access. The task was to recover its observable behavior and reproduce that behavior in a smaller modern service without naming the customer or its industry.

Evidence reviewed August 31, 2026

Measured outcome

  • Source: 29 programs · 27,300 COBOL lines
  • Discovery through migrated and tested: 40 hours
  • Modern service: about 1,300 lines · 15 REST endpoints
  • Verification and model usage: 19 parity tests · about $700

How behavior was recovered

1904 read the program flow, transaction boundaries, screen definitions, shared copybooks, and persistence behavior as one specification source. The migration focused on preserving externally observable rules rather than translating every source line literally.

The resulting service exposed 15 REST endpoints and used 19 parity tests to compare important source and replacement behaviors. The approximately 1,300-line figure describes the replacement implementation inspected for this publication.

What the timeline and cost mean

The 40-hour measurement runs from discovery through a migrated, tested implementation. It does not represent a complete enterprise cutover, production data migration, organizational acceptance program, or retirement of the original mainframe environment.

The approximately $700 figure is model-token usage for analysis and implementation. It excludes hosting, customer labor, production cutover, and any downstream integration work outside the recovered scope.

Evidence basis

Program counts, source and replacement line counts, endpoint counts, and parity-test counts are derived from the confidential migration repository. Timeline and model usage come from the associated run record. Customer identity, industry, repository, and business rules are intentionally withheld.

Limitations

This is evidence for one bounded application migration, not a claim that every mainframe estate can be modernized in 40 hours. Complexity varies with program coupling, undocumented dependencies, data conversion, integrations, availability requirements, and regulatory validation.

Read the 1904 methodology or compare all three success stories.

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
Layer-by-layer replacement
Mainframe layerMigrated toWhat had to be recovered first
BMS terminal mapsSingle-page web applicationThe operator workflow encoded in screen and field order
EXEC CICS LINK15 REST endpointsThe call graph and transaction boundaries between programs
COBOL copybooksTyped request and response modelsField widths, sign conventions, packed-decimal precision
DB2 / VSAMRelational schemaKeys, cardinality, and cascade behavior on delete
29 COBOL programs~1,300 lines of modern service codeWhich logic was business rule and which was plumbing
Behavior carried forward on purpose
Class of ruleWhy it was preserved exactly
Fixed-point arithmetic held as scaled integersMirrors the packed-decimal declarations exactly. Floating point would have been the obvious modern choice and the wrong one — the drift shows up in an audit, not a crash
Operations refused for certain record typesRestrictions the original programs enforced deliberately. They read as arbitrary until you find the policy behind them, so they are preserved and left for the business to review
Hierarchical delete cascading to dependentsMatches the original's ordering, so no orphaned records appear in the migrated data
A limit the original chose not to enforceThe old system permitted it. Parity first — relaxing or tightening a rule is the business's decision to make later, not the migration's to make silently

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.

About the figures on this page. The ~$2,500 for Havn is the complete bill for the build: the API credits 1904 consumed producing the code, plus one month of AWS hosting to run the three applications. The ~$700 for the migration and the ~$760 for the manufacturing rebuild are the model tokens consumed reading the original system and producing the replacement; both exclude hosting. None of these is an hourly rate or a licence — all are metered usage, billed as consumed. Timelines are elapsed calendar time from kickoff to running software; where a customer's own team carried the work further — into pilot, QA, cutover, or their own software onboarding review — that is called out separately rather than folded into the build number. Comparison figures for the “old way” are the customers' own prior spend, their received vendor quotes, and their documented estimates for the conventional path. The frontier API cost on the success stories page is an estimate rather than a bill: it prices a single pass at the same system by a coding agent driven straight against each provider's API, at that model's published rate, blended 85% input to 15% output, against the token volume it needs for the work. Those list prices were current in September 2026. The manufacturing engagement predates our current usage telemetry, so its figures are the customer's own and are deliberately limited to what they can confirm — which is why that section carries no system-scale counts. Your results will differ with scope, integration count, and how much of an existing system has to be recovered. The consumer platform is public, so you can judge that claim against the work directly; the other two are confidential engagements, and we will walk through what we can under NDA on request — or run discovery against one of your own systems instead.

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.