AWS Builder Center
From PDFs to EBCDIC Part 2: Why enterprise AI must feed the mainframe, not replace it

From PDFs to EBCDIC Part 2: Why enterprise AI must feed the mainframe, not replace it

Analyze the unit economics of legacy banking reconciliation, uncover the hidden costs of manual data entry, and discover why deterministic AI gateways are the true solution to mainframe modernization.

The core thesis of modern enterprise cloud migration is fundamentally flawed. For the last decade, the technology sector has operated on a premise that legacy mainframes must be ripped out and replaced. The industry has lost tens of billions trying to use artificial intelligence to translate legacy COBOL into Java  to migrate core banking systems to the cloud.
These initiatives routinely fail. The complexity does not lie in translating the code; it lies in preserving transaction integrity across systems that process billions of operations daily. In Tier-1 banking, a hallucinated translation during a migration is not a bug. It is a severe compliance violation.
The reality is that enterprise banks do not want to delete their mainframes. They want to figure out how to ingest modern, unstructured data into them safely.

The mainframe reality

Mainframes are not an antiquated technology fading into obscurity; they are the bedrock of global commerce. Today, 45 of the top 50 global banks still run their core ledgers on IBM Z-Series mainframes .
These systems are highly resilient calculators. IBM mainframes process roughly $3 trillion in daily commerce, handling billions of ATM and credit card transactions annually.
Ripping out a mainframe costs millions in upfront capital, requires years of engineering, and carries a catastrophic risk of operational downtime. Enterprises are looking for integration, not replacement.

The broken baselines of reconciliation

While the core banking system demands rigid, structured, EBCDIC-encoded data, the physical world operates on messy, unstructured PDFs, scanned invoices, and complex supply chain documents.
To bridge this data gap, enterprises currently rely on two highly inefficient baselines.

The human baseline

According to industry accounts payable benchmarks, the average cost to process an invoice manually ranges from $12.88 to $19.83 per document  when factoring in labor, data validation, exception handling, and error resolution. At scale, manual data entry costs businesses tens of thousands of dollars per employee annually, while taking days to clear.

The legacy OCR baseline

Legacy optical character recognition (OCR) is one of the largest complaints in enterprise procurement. First-generation platforms rely on rigid zonal templates. If a vendor moves a table down one inch, the OCR reads empty space and outputs corrupted data . Legacy OCR is too brittle for modern enterprise velocity, requiring dedicated engineering teams simply to maintain the templates.

The deterministic AI gateway

Recently, a wave of new AI document extractors have hit the market. They are incredibly powerful, but they fail to complete the last mile. They use a large language model (LLM) to extract the PDF into a modern JSON file, and then they stop, leaving it up to the bank to figure out how to securely transform that JSON into the legacy COBOL formats their systems actually accept.
I built Anathis to be the autonomous last mile for enterprise finance. In my previous technical breakdown , I detailed the exact AWS architecture powering this system.
It accomplishes three things standard extraction tools do not:
  1. The deterministic chokehold: LLMs are great readers, but terrible calculators. Anathis uses Amazon Bedrock Data Automation and Amazon Nova to read the PDF, but forces the variables through a hard-coded Python ledger to guarantee the math is flawless to the exact penny before it ever reaches the mainframe.
  2. Native cross-compilation: It physically compiles the verified data into EBCDIC CP500 hex code, the exact native language of the IBM mainframe.
  3. Zero-touch integration: It bypasses the need for the bank to build their own integration bridge.

The unit economics

If a human clerk or a probabilistic LLM wrapper hallucinates a decimal point and enters $140,628.63 as $14,062.86 into a banking core, it triggers a compliance violation and requires days of manual ledger reconciliation.
I built a pipeline that physically refuses to compile the EBCDIC hex code unless the multi-variable ledger perfectly matches the grand total.
  • The old way: $15.00+ per invoice, days of processing time, high compliance risk.
  • The Anathis architecture: Under $0.50 per transaction, 29 seconds of processing time, and mathematical certainty.
By establishing this zero-trust barrier, Anathis allows the enterprise to drastically cut their operational burn rate while completely neutralizing the compliance risk of AI-generated accounting errors.
AI is not going to replace the mainframe. It is going to feed it.

Additional resources

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article