Leading spaces changed a record.
The first comparison found two house numbers whose leading spaces had changed. The transformed implementation was corrected.
A COBOL insurance solution rebuilt in TypeScript, NestJS, PostgreSQL and React, with a step-by-step comparison against the original implementation.
The challenge
Customer records, policy transactions, claims and operator workflows contain years of accumulated behaviour. Data formats, error handling, transaction boundaries and runtime semantics matter as much as the intended business rules. A replacement also needs to handle the workload at least as well as the legacy system.
Unmodified source compiled with GnuCOBOL on an emulated CICS / Db2 / VSAM / 3270 platform.
A modern service, data and browser-interface implementation, running alongside the reference in Docker.
The approach
Every request was sent to both implementations with the same data, clock and terminal identity. After every step, the harness compared the complete 32,500-byte response, abend and commit outcome, every database table, both VSAM files, queues and counters.
The interface comparison ran operator flows based on IBM workload-simulator scripts: original 3270 screens versus the new UI in a real browser. Fields, messages and final data were compared.
Results
| Suite | Scenarios / flows | Compared steps | Matched |
|---|---|---|---|
| Business suites · counter server off | 37 | 880 | 880 / 880 |
| Business suites · counter server on | 37 | 880 | 880 / 880 |
| Large randomised business run | 300 | 14,007 | 14,007 / 14,007 |
| Browser vs 3270 screen flows | 24 | 168 | 168 / 168 |
| All compared steps | 374 scenarios + 24 flows | 15,935 | 15,935 / 15,935 |
The evidence covers 108 use cases, 12 reproduced original quirks and 127 of 139 reachable in-scope COBOL paragraphs. Matching every compared step does not mean every possible code path has been exercised.
Findings
The first comparison found two house numbers whose leading spaces had changed. The transformed implementation was corrected.
Failed inserts initially did not consume an identity number in the new system. The behaviour was aligned with the documented reference rule.
Deleting a missing policy returns a database-error code, although a source comment suggests success. The actual behaviour was reproduced.
The report records corrections to emulated numeric, date, transaction and screen behaviour, with assumptions stated explicitly.
Performance
For a production replacement, equivalent behaviour and performance parity or better are independent acceptance requirements. Response times, sustained throughput, concurrency and batch windows must be benchmarked under agreed, comparable conditions.
Evidence boundary: the supplied insurance report records functional and screen comparisons. It contains no latency, throughput or load-test measurements. The full report sets out the performance acceptance protocol separately; it does not present unmeasured performance as a result.
Scope of the evidence
Reference environment. The original source is IBM’s CICS General Insurance Application running on an emulated platform, rather than z/OS. Some IBM behaviours remain documented assumptions; replaying the corpus on IBM ZD&T or z/OS would close those gaps.
Concurrency and excluded paths. Tasks ran one at a time. Setup, monitoring, VSAM browse and six database/VSAM error-logging paths are outside the compared scope.
Source and provenance. Figures are transcribed from the supplied run report dated 4 November 2026. The full report includes the use-case inventory, quirks, coverage, reproduction commands and source-document fingerprint.
Agree the behaviour and performance a replacement must deliver.
Scope a first workload