Blog

    Eliminating Mainframe Woes Using Legacy Transformation and Cloud Modernization: COBOL Claims Behind APIs and the Cutover

    By GauravSeptember 26, 20269 mins read
    On this page

    Eliminating mainframe woes in a payer's claims system rarely means switching the mainframe off in one move. The COBOL programs that adjudicate claims hold years of benefit rules, and the safer path is to put them behind APIs, move work off them in stages, and plan a cutover that can be reversed.

    Payer technology leaders, startup founders and engineering teams will find how legacy transformation and cloud modernization fit together for claims, what the API layer does, how to prove old and new pay the same way, and how to plan the cutover.

    How do you eliminate mainframe woes in a payer claims system?

    You eliminate mainframe woes in a payer claims system by putting the COBOL claim programs behind APIs, moving new channels and then whole functions to cloud services in stages, and running old and new side by side until results match. The mainframe is retired last, after a cutover with a tested way back.

    Modernizing a mainframe claims system?

    We put COBOL claim programs behind APIs and plan the staged move to cloud services.

    Agnotic Technologies plans and builds these programs with payer teams. The order of the stages matters more than the target platform, because each stage has to leave claims paying correctly.

    Why do payer claims systems stay on the mainframe?

    Payer claims systems stay on the mainframe because the risk of change is concentrated there: benefit rules, payment runs and partner interfaces all depend on the same programs.

    • Rules in code: benefit, pricing and edit rules live inside COBOL programs and copybooks.
    • Batch cycles: nightly runs feed payments, finance, reporting and member letters.
    • Partner interfaces: clearinghouses, banks and vendors exchange files on fixed schedules.
    • Knowledge: few people still know why particular rules exist.

    Under 45 CFR 162.1102, the HIPAA standards for health care claims transactions are the ASC X12N 837 implementation guides for professional, institutional and dental claims, and the NCPDP Telecommunication and Batch standards for retail pharmacy drug claims.

    Those transactions are fixed points in the system. Whatever runs adjudication, claims still arrive and leave in the same standard formats, which makes the X12 boundary a good place to anchor comparison tests.

    How do COBOL programs get behind APIs?

    COBOL programs get behind APIs through an integration layer that maps REST requests to the existing transactions, so the programs keep running unchanged.

    IBM's documentation describes z/OS Connect as a framework that exposes z/OS assets as RESTful APIs, giving access to applications and data hosted in subsystems such as CICS and IMS, along with IBM MQ and Db2. It also lets CICS, IMS and other z/OS applications call RESTful endpoints, acting as an API requester.

    Payer claims modernization flow in four stages: portals, provider tools and cloud services call REST APIs, an API layer such as z/OS Connect maps requests to CICS or IMS transactions, the existing COBOL claim programs run unchanged against Db2 and batch, and change data capture feeds a cloud data store for reporting while new services take over functions one at a time

    With the API layer in place, portals, provider tools and new cloud services call claim status, eligibility or pricing over REST. Channels move first and logic moves later, which spreads the risk across several smaller changes.

    • Read APIs first: claim status, member eligibility and provider lookups.
    • Write APIs with care: adjustments and holds, each with an idempotency key so retries do not duplicate.
    • One mapping: translate copybook fields to clear API names in one place only.
    • Stable contract: keep the API the same while what sits behind it changes.

    What moves off the mainframe first?

    Work moves off the mainframe in order of risk, starting with channels and read-only uses and ending with payments.

    A staged order for moving claims work off the mainframe
    StageWhat movesWhy this order
    1Channels: portals, provider and member APIsRemoves screen-scraping and file drops without touching adjudication
    2Reporting and analytics, fed by change data captureRead-only, so errors cannot change claim outcomes
    3Claim intake and front-end editsValidation rules are easier to test on their own
    4Pricing and adjudication, one line of business at a timeHighest risk, so it moves in small slices
    5Payment and finance batchLast, because it ties to the general ledger and bank files

    Each stage ends with the mainframe doing less, and each can pause without leaving claims stuck between two systems.

    How do teams prove the new system pays claims the same way?

    Teams prove it with parallel runs: the same claims go through old and new adjudication, and every difference is explained before cutover.

    • Replay history: run past claims with known outcomes, including adjustments and reversals.
    • Compare by line: allowed amount, paid amount, denial codes and remark codes.
    • Classify each difference: a bug in the new system, a known defect in the old one, or an agreed policy change.
    • Shadow production: run the new system alongside live processing for an agreed period before switching.

    Agree with the business who signs off each class of difference. A known defect in the old system that the new one fixes is still a change in what members and providers are paid.

    How do you capture the rules before they move?

    You capture the rules before they move by reading them out of the COBOL into a form the business can review, then turning each one into a test case that both systems must pass.

    • Trace from outcomes: start from denial codes, remark codes and pricing results, and find the code paths that produce them.
    • Write each rule plainly: the condition, the result and the plan or product it applies to.
    • Confirm with the business: claims and benefits staff decide whether each rule is still wanted.
    • Turn rules into tests: a claim that should trigger the rule, and one that should not.

    Some rules will turn out to be workarounds for problems that no longer exist. Retiring them is a business decision, made before migration, not a side effect discovered after it.

    Moving claim history and reference data

    Claim history and reference data move separately from logic, and the new system cannot adjudicate correctly without them.

    • Claim history: needed for duplicate checks, accumulators, appeals and adjustments to older claims.
    • Accumulators: deductibles and out-of-pocket totals must be exact on the day of cutover.
    • Reference data: fee schedules, provider contracts and benefit tables, with their effective dates.
    • Reconciliation: counts and totals by member, plan and period, checked after each load.

    Accumulators deserve the most attention. A member whose deductible total is wrong by one claim will see an incorrect payment on the very next visit.

    How should the cutover be planned?

    The cutover should be planned one line of business at a time, with written rollback criteria and a rollback that has been rehearsed.

    • Scope: cut over one product or plan type first, not the whole book.
    • Timing: avoid plan-year changes and peak claim periods.
    • Rollback criteria: written thresholds, such as unexplained payment differences, that trigger a return to the old path.
    • Rehearsal: run the cutover and the rollback in a full test environment first.
    • Partners: tell clearinghouses, banks and vendors what changes and when.
    • Hypercare: daily reconciliation of claim counts and payments until both are stable.

    In-flight claims at cutover

    In-flight claims need a written rule before cutover, because some will be half processed when the switch happens.

    • Pended claims: finish them on the old system, or migrate them with their full history and pend reasons.
    • Adjustments: decide which system adjusts a claim first paid on the old one.
    • Claims received during the switch: hold them in the intake queue and release them to the new path.
    • Reconciliation: match counts and amounts between systems at each step.

    How should the API layer be tested?

    The API layer should be tested as its own product, because every new channel and service depends on it while the mainframe is still doing the work.

    • Contract tests: each API returns the documented fields for known claims and members.
    • Field mapping: copybook values, packed decimals and dates convert correctly, including edge cases.
    • Load: peak portal and partner traffic does not exhaust mainframe transaction capacity.
    • Failure: a timeout or an unavailable region returns a clear error rather than a partial answer.

    Agree capacity limits with the mainframe operations team early. Exposing a claim status transaction to a busy portal can change its load far beyond what the original screens ever produced.

    Rewrite, replatform or keep the COBOL

    The choice between rewriting, replatforming and keeping the COBOL depends on how stable the rules are and how often the business needs to change them.

    • Keep behind APIs: rules rarely change and the main pain is access from new channels.
    • Replatform: the code is sound but the hosting or licence cost is the problem.
    • Rewrite in slices: rules change often and few people can safely edit the COBOL.

    What are the common mistakes in mainframe claims modernization?

    The common mistakes in mainframe claims modernization come from moving too much at once and from comparing totals instead of claim lines.

    • Big-bang cutover: every line of business switches together, with no way back.
    • Comparing totals only: small differences on individual claims cancel out in the totals.
    • Ignoring batch: online APIs work, but the nightly payment run still depends on old files.
    • Losing the rules: business logic is rewritten without anyone recording why it existed.
    • No owner for differences: parallel run results pile up with nobody deciding which are acceptable.

    What does it mean for your build plan?

    Mainframe claims modernization turns into a sequence of smaller projects, each with its own tests and sign-off.

    • Inventory the COBOL programs, transactions, copybooks and batch jobs behind each claims function.
    • Build the API layer and the change data capture feed before moving any logic.
    • Set up the parallel run tooling and difference classification early, because every later stage uses it.
    • Plan cutovers per line of business, with partners and finance involved from the start.

    How can Agnotic help with mainframe claims modernization?

    Agnotic maps your claims programs and batch jobs, builds the API layer and data feeds, sets up parallel runs, and plans each cutover with your claims, finance and partner teams.

    Off the mainframe, one safe stage at a time

    We put COBOL behind APIs and plan each cutover with a way back.

    Sources

    Frequently Asked Questions

    Technology and operations leaders at health plans and third-party administrators whose claims run on COBOL, and founders building products that must connect to those systems.

    Talk to an engineer about your project

    Tell us which claims functions run on the mainframe and where the pain is. We will propose the first stage and the parallel run approach.