Case studies
Insurance solution · Technical case study

Insurance software rebuilt.
15,935 matching steps.

A COBOL insurance solution rebuilt in TypeScript, NestJS, PostgreSQL and React, with a step-by-step comparison against the original implementation.

Evidence dated 4 November 2026COBOL / CICS → TypeScript / NestJSDb2 / VSAM → PostgreSQL
15,935compared steps, all matching
108use cases verified
374business scenarios compared
24/24browser flows matching
Behavioural evidence15,935 of 15,935 compared steps matched.
Performance acceptanceLatency, throughput and batch duration are a separate release gate.

The challenge

Preserve an insurance operation,
down to the exceptions.

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.

Original and target environments

OriginalCOBOL · CICS · Db2 · VSAM · 3270

Unmodified source compiled with GnuCOBOL on an emulated CICS / Db2 / VSAM / 3270 platform.

TransformedTypeScript · NestJS · PostgreSQL · React

A modern service, data and browser-interface implementation, running alongside the reference in Docker.

The approach

Compare the transaction.
Then compare everything it touched.

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

A complete record of the compared runs.

SuiteScenarios / flowsCompared stepsMatched
Business suites · counter server off37880880 / 880
Business suites · counter server on37880880 / 880
Large randomised business run30014,00714,007 / 14,007
Browser vs 3270 screen flows24168168 / 168
All compared steps374 scenarios + 24 flows15,93515,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

Small differences. Real consequences.

Data fidelity

Leading spaces changed a record.

The first comparison found two house numbers whose leading spaces had changed. The transformed implementation was corrected.

Transaction semantics

A failed insert still affected identity.

Failed inserts initially did not consume an identity number in the new system. The behaviour was aligned with the documented reference rule.

Original quirks

A comment was not the contract.

Deleting a missing policy returns a database-error code, although a source comment suggests success. The actual behaviour was reproduced.

Reference fidelity

The comparison platform needed checks too.

The report records corrections to emulated numeric, date, transaction and screen behaviour, with assumptions stated explicitly.

Performance

The right answer must arrive
at the right speed.

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.

Review the performance acceptance criteria

Scope of the evidence

Precisely defined. Open to inspection.

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.

Open the full verification report

Define the evidence for your system.

Agree the behaviour and performance a replacement must deliver.

Scope a first workload