LabHub

Blog

Mainframe & Legacy Systems in 2026 — IBM z17 (Sept 2025) / IBM i / COBOL / RPG / JCL / CICS / watsonx Code Assistant for Z Deep Dive

한국어English日本語

Prologue — They said it was dead, but it's still there

"Mainframes are dead" has been a yearly headline since the 1990s. And yet in May 2026, the moment you pull money from an ATM, swipe a credit card, book a flight seat, pay your taxes, or register a birth at a government office, the last line of that transaction will, with very high probability, run through a COBOL program on a mainframe.

And since 2023 this enormous legacy has met a new variable: AI. IBM's watsonx Code Assistant for Z translates COBOL into Java. GitHub Copilot supports COBOL completion. AWS Mainframe Modernization lifts mainframe workloads to the cloud.

This article covers mainframes as of 2026: how they didn't die, what the new hardware looks like, how AI is chipping at this enormous legacy, and — if you're a developer — why some people decide right now to learn COBOL.


1. The Mainframe in 2026 — A Giant That Refused to Die

Let's start with numbers. Estimates of the mainframe ecosystem as of 2026:

ItemEstimated scale
Production COBOL lines200~220B lines
IBM i installations130,000+ companies (Forrester/IBM estimate)
IBM Z systems deployed~10,000+ sites globally
Business transactions per day on IBM Z~30 billion
Fortune 500 using mainframes~70%
Top 50 global banks using mainframes~92%
Credit card transactions touching a mainframe~87%

(Sources: IBM, Forrester, Gartner market estimates — exact numbers vary by source. All figures in this post are estimates based on 2024~2025 public reports.)

"Why didn't they switch" is the wrong question. The right question is "why was not switching the rational decision?" The answer compresses to three things:

  1. Proven reliability — z/OS availability is often reported at 99.999% (5-nines) or higher. Around 5 minutes of downtime per year. Matching that on a new system takes years.
  2. Risk of untested change > value of change — imagine rewriting a 20-million-line insurance core in Java. Two years. A hundred million dollars. And no new features in that window. CFOs don't sign.
  3. Data gravity — DB2 z/OS, IMS, VSAM hold decades of accumulated data. Moving data is harder than moving code.

So the mainframe didn't die. Instead of dying, it evolves slowly. That's what this post is about.


2. IBM z17 (September 2025) — Telum II + Integrated AI

In September 2025, IBM announced z17. The previous generation (z16) launched in April 2022, so the cadence is roughly three years. The core of z17 is two things:

Telum II processor

In short: Telum II lets you embed AI inference into the transaction itself. The fraud-detection model runs on the same chip, at the moment the card payment happens. You don't ship data out to a GPU cluster.

Spyre accelerator (optional)

The IBM Spyre AI accelerator introduced with z16 (a separate PCIe card) is also available as an option for z17. Spyre handles larger models (generative AI inference) and can complement Telum II's on-chip acceleration.

What changed (vs z16)

Itemz16 (April 2022)z17 (September 2025)
ProcessorTelum ITelum II
On-chip AIYes (1st gen)Strengthened (2nd gen)
Spyre acceleratorOptional (later)Optional (expanded)
Memory bandwidth-Improved (see IBM material for details)
SecurityCrypto Express 8S, quantum-safe algorithmsSame plus enhanced
Availability99.999%+Same class

z17 is deeper AI integration rather than a revolution. IBM's message — transactions plus AI inference plus security all on one chip — gets stronger.

Who buys z17

Prices aren't public. The usual line is "starts in the millions of dollars." And the companies writing those checks believe it's reasonable.


3. IBM z16 — Still in Active Service

The arrival of z17 doesn't retire z16. Launched in April 2022, the z16 is still actively sold and installed in 2026. Mainframe lifecycles are long — once a machine is in, it stays for a decade.

z16 highlights:

If a bank just installed z16, the case to jump to z17 is weak. Many will run z16 plus firmware updates well into the early 2030s.


4. IBM i (formerly AS/400) — 130K+ Companies

Less famous than IBM Z but equally important: IBM i, the successor to the AS/400 of 1988.

History of the name

The hardware runs on IBM Power servers. So IBM i in 2026 is Power Systems hardware plus the IBM i OS, with versions like IBM i 7.5 / 7.6 running on Power10.

Why 130,000 companies still use it

Who runs it

ERP packages like JD Edwards, Infor (formerly SSA Global), and BPCS run on IBM i.

RPG — the main language of IBM i

The dominant programming language on IBM i is RPG (Report Program Generator). We'll dive in next.


5. COBOL — An Estimated 200~220B Lines in Production

COBOL was designed by a committee in 1959 that included Grace Hopper. The name means COmmon Business Oriented Language. A language older than 60 years still has 200B lines running.

Why so much

The 200B figure is cumulative. New COBOL written each year decreases, but old code rarely gets deleted. So the line count grows.

What COBOL code looks like

       IDENTIFICATION DIVISION.
       PROGRAM-ID. INTEREST-CALC.
       AUTHOR. YJ.
      *
       ENVIRONMENT DIVISION.
       CONFIGURATION SECTION.
       SOURCE-COMPUTER. IBM-Z.
       OBJECT-COMPUTER. IBM-Z.
      *
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01  WS-PRINCIPAL       PIC 9(7)V99 VALUE 1000000.00.
       01  WS-RATE            PIC 9(3)V99 VALUE 3.50.
       01  WS-YEARS           PIC 9(2) VALUE 5.
       01  WS-INTEREST        PIC 9(9)V99.
       01  WS-TOTAL           PIC 9(9)V99.
      *
       PROCEDURE DIVISION.
       CALC-INTEREST.
           COMPUTE WS-INTEREST = WS-PRINCIPAL * (WS-RATE / 100) * WS-YEARS.
           COMPUTE WS-TOTAL    = WS-PRINCIPAL + WS-INTEREST.
           DISPLAY "Principal : " WS-PRINCIPAL.
           DISPLAY "Interest  : " WS-INTEREST.
           DISPLAY "Total     : " WS-TOTAL.
           STOP RUN.

COBOL hallmarks:

COBOL standards over time

COBOL compilers


6. RPG / JCL / CICS / DB2 z/OS / IMS / PL/I

COBOL is just the most famous mainframe language. The environment has other essentials.

RPG (Report Program Generator) — the main IBM i language

The name says "report generator" but modern RPG is a general-purpose business language. Timeline:

Modern free-format RPG example:

**free
ctl-opt main(main);

dcl-proc main;
  dcl-s principal packed(9:2) inz(1000000);
  dcl-s rate     packed(5:2) inz(3.50);
  dcl-s years    packed(2:0) inz(5);
  dcl-s interest packed(11:2);
  dcl-s total    packed(11:2);

  interest = principal * (rate / 100) * years;
  total    = principal + interest;

  dsply ('Total: ' + %char(total));
end-proc;

RPG is very tightly coupled to the database. Embedded SQL inside RPG is the norm.

JCL (Job Control Language)

The language for defining batch jobs on z/OS. People call it "an unpleasant ancient shell script," but it is the lifeline of mainframe operations.

//PAYROLL  JOB  (ACCT1234),'PAYROLL JOB',
//             CLASS=A,MSGCLASS=X,REGION=4M
//STEP1    EXEC PGM=PAYCALC
//STEPLIB  DD   DSN=PROD.LOADLIB,DISP=SHR
//INPUT    DD   DSN=PROD.PAYROLL.MASTER,DISP=SHR
//OUTPUT   DD   DSN=PROD.PAYROLL.NEWRUN,DISP=(NEW,CATLG,DELETE),
//              SPACE=(CYL,(10,5)),
//              DCB=(LRECL=200,BLKSIZE=27800,RECFM=FB)
//SYSPRINT DD   SYSOUT=*

JCL features:

JCL is an operations asset. A good JCL line can save a company. A bad JCL line — like the eternal joke of using DISP=NEW,DELETE on a production master — can bankrupt one.

CICS (Customer Information Control System)

The transaction monitor on z/OS, in operation since 1969. CICS:

Modern CICS, called CICS Transaction Server, runs on z/OS and supports REST/JSON interfaces.

DB2 z/OS (IBM Db2 for z/OS)

The relational database of z/OS. It is a different codebase from Db2 in other environments (Db2 LUW, Db2 for i). As of 2026, Db2 for z/OS V13 and later run in production.

Db2 for z/OS identity:

IMS (Information Management System)

Built in 1968 for the Apollo program, IMS is a hierarchical database plus transaction monitor. It predates relational databases (Db2) and a number of large banks, airlines, and manufacturers still run IMS DB and IMS TM. "Old" does not mean "unused" — old means proven and fast.

PL/I (Programming Language One)

In 1964 IBM tried to merge COBOL and Fortran into one language. It never replaced either, but parts of large systems (notably European banks and some operating-system code) still use it.

TEST: PROC OPTIONS(MAIN);
  DCL PRINCIPAL FIXED DEC(9,2) INIT(1000000);
  DCL RATE      FIXED DEC(5,2) INIT(3.50);
  DCL YEARS     FIXED BIN(15)  INIT(5);
  DCL INTEREST  FIXED DEC(11,2);
  DCL TOTAL     FIXED DEC(11,2);

  INTEREST = PRINCIPAL * (RATE / 100) * YEARS;
  TOTAL    = PRINCIPAL + INTEREST;

  PUT SKIP LIST('Total: ', TOTAL);
END TEST;

PL/I is more expressive than COBOL but has a steeper learning curve. "If it's there, it's there; nobody starts new in PL/I."


7. Fujitsu BS2000 / NEC ACOS / Unisys ClearPath — The Non-IBM Mainframes

People often equate "mainframe" with "IBM." That's inaccurate. Japan, parts of Europe, and parts of the US still run non-IBM mainframes.

Fujitsu BS2000 (Japan/Germany)

NEC ACOS (Japan)

Unisys ClearPath

Summary — what non-IBM mainframes share

ItemCommon pattern
Market shareSmaller than IBM, but non-zero
WhereRegional concentrations (Japan, Germany, US)
Migration pressureHigher than IBM Z; next-gen support is less assured
Modernization pathOften to IBM Z, or to Linux and cloud

8. AWS Mainframe Modernization

In 2022, AWS launched AWS Mainframe Modernization (AWS MMA) — a managed service to help move mainframe workloads onto AWS.

Two patterns

The two official migration strategies AWS pushes:

  1. Replatform — leave the COBOL alone, but move the mainframe environment somewhere else (AWS containers or EC2). AWS exposes an option backed by the Micro Focus runtime (now OpenText).
  2. Refactor — auto-convert COBOL into Java. AWS acquired and integrated Blu Age, a tool that translates COBOL to modern Java/Spring/Angular.

Replatform is the more common path

Most large migrations are replatform projects, because:

But there are traps:

Flow

[Mainframe]                  [AWS]
   COBOL source ────────▶    COBOL source (or Java conversion)
   JCL batch    ────────▶    AWS Batch / EventBridge Scheduler
   CICS         ────────▶    Mainframe Modernization Runtime
   Db2 z/OS     ────────▶    Aurora PostgreSQL / Db2 LUW
   VSAM         ────────▶    DynamoDB / S3 / Aurora
   IMS          ────────▶    Custom mapping (hardest)

AWS provides assessment, analysis, and cutover support as a managed service. You still need mainframe veterans paired with AWS solution architects.


9. Micro Focus → OpenText (2022) → Visual COBOL

For a long time, the center of mainframe modernization was Micro Focus — a UK-headquartered company and one of the largest suppliers of COBOL compilers and runtimes.

2022 — The OpenText acquisition

In 2022, the Canadian information-management company OpenText acquired Micro Focus for roughly six billion dollars. The Micro Focus brand is being phased into OpenText as the deal completes.

Visual COBOL — the flagship product

Micro Focus's (now OpenText's) flagship is Visual COBOL. What it does:

Enterprise Server / Enterprise Developer

OpenText's mainframe lineup usually includes:

Some replatform options inside AWS Mainframe Modernization run on this OpenText stack.

What it means

OpenText is not in the business of killing the mainframe. They are in the business of letting mainframe code keep running elsewhere. Their model assumes COBOL is alive into the 2030s.


10. IBM watsonx Code Assistant for Z (August 2023) — AI for COBOL Modernization

In August 2023, IBM announced watsonx Code Assistant for Z, an AI tool for helping convert mainframe COBOL into Java.

What it does

How it works

watsonx Code Assistant for Z combines an LLM (built on IBM's granite code model family) with mainframe-specific domain knowledge. Not just generic ChatGPT, but a model trained on COBOL/JCL/CICS patterns.

Limits and reality

Don't take IBM marketing at face value. In practice:

Still, as a starting point, it has value. Rather than starting from zero, humans refine an AI-generated first pass.


11. GitHub Copilot COBOL Support

GitHub Copilot went GA in 2021, initially known for JavaScript, Python, and TypeScript. Language coverage has expanded over time, and COBOL completion is supported.

What it feels like

How Copilot helps in COBOL:

Limits

Copilot vs watsonx Code Assistant for Z

These are less competitors than different layers. Use Copilot for everyday coding and watsonx for large conversion programs.


12. zCX (z/OS Containers) + Linux on Z + LinuxONE

Another stream pulling the mainframe into the cloud era is containers and Linux.

zCX (z/OS Container Extensions)

A z/OS feature introduced in 2019. It runs Docker containers inside z/OS by spinning up a Linux on Z environment as a built-in virtual machine and running containers inside that.

Why this matters:

Linux on Z

Linux running natively on z hardware. Coexists with z/OS via LPAR partitioning, so a single mainframe can host both environments.

IBM LinuxONE

A Linux-only mainframe. Same hardware family as IBM Z, but no z/OS. So: "mainframe reliability for Linux." Use cases:

IBM Cloud Hyper Protect

IBM Cloud's confidential computing offering. Brings mainframe security technology (Crypto Express, Secure Service Container) to the cloud as services — key management, trusted virtual servers, databases hosted at mainframe-grade security.


13. Hercules + GnuCOBOL — Open-Source Emulation

Can you try a mainframe at home? Yes.

Hercules — a System/370 / ESA/390 / z/Architecture emulator

An open-source mainframe emulator that mimics z/Architecture on regular PCs/Macs/Linux. Caveats:

GnuCOBOL

An open-source COBOL compiler. It transpiles COBOL to C, then builds with a normal C compiler.

# Install (e.g., macOS Homebrew)
brew install gnu-cobol

# Compile
cobc -x -o interest interest.cob

# Run
./interest

Learning path


14. Modernization Patterns — Strangler Fig and Anti-Corruption Layer

Replacing legacy systems is not unique to mainframes. The two most famous and practical patterns:

The Strangler Fig pattern (Martin Fowler)

Named after the Australian strangler fig — a vine that grows around another tree and eventually replaces it. Martin Fowler used the metaphor for system renewal in a 2004 article.

Strategy:

  1. Put a proxy/facade in front of the legacy system.
  2. Route some traffic to a new system.
  3. Gradually route more traffic to the new system.
  4. One day, legacy traffic is at 0%. Only then remove it.
[Client] ──▶ [Facade / Proxy] ──▶ [Legacy mainframe]
                  └──────────────▶ [New microservice]
                                   (gradually more routes)

Pros:

Cons:

Anti-Corruption Layer (Eric Evans, DDD)

A pattern from Domain-Driven Design. Place a translation layer between the legacy and the new system.

[New domain model] ──▶ [Anti-corruption layer] ──▶ [Legacy model]
   (clean model)        (translate/map/insulate)    (old model)

Goals:

Strangler Fig and Anti-Corruption Layer go together. Strangler is the routing pattern, Anti-Corruption is the domain-model insulation behind that routing.

In practice — where to start

  1. Draw boxes — group modules running on the mainframe by domain.
  2. Prioritize by change frequency and risk — split the most-changed and risky parts first.
  3. Start with reads — moving query traffic to a new (read-only replica) database is the easiest.
  4. Slowly add writes — dual-write (legacy plus new) for a period, then end on the new system only.
  5. Monitor and observe — shadow traffic, compare responses across both systems.
  6. Rollback plan — always.

15. Korean Financial Sector — KB / Shinhan / Woori / Hana / IBK / NongHyup Mainframes

Korean financial-sector mainframe operations are partly public, partly estimated. Based on 2024~2025 public information and industry estimates:

(The text below is a general summary based on publicly known patterns. Many bank-specific system details are non-public. Some content is estimated.)

The big picture

General per-bank flow (based on public reports and industry knowledge)

BankGeneral flow (industry knowledge)
KB KookminMainframe plus an in-house next-gen system. Actively reviewing cloud transition.
ShinhanMainframe operations. Active AI integration.
WooriNext-gen system project underway.
HanaIn-house next-gen system plus some mainframe.
IBK IndustrialMainframe operations.
NongHyupIBM Z operations. Given its scale, one of the largest mainframe users.

(Note: The table above is a general summary of publicly known patterns. Exact system configurations are largely non-public, and the contents include estimates.)

Korean mainframe talent market

Korean non-financial


16. Japan — MUFG / SMBC / Mizuho / NTT Data / Fujitsu BS2000

Japan is another stronghold of mainframes. Unlike Korea, Japan has its own mainframe industry (Fujitsu, NEC, Hitachi). That uniqueness shapes the story.

Three megabanks — general flow

(General summary based on public sources and industry knowledge. Exact system configurations are largely non-public.)

BankGeneral flow (industry knowledge)
MUFG (Mitsubishi UFJ)Mainframe operations. Stable after a large integration in the 2010s.
SMBC (Sumitomo Mitsui)Mainframe plus in-house next-gen systems.
MizuhoFamous for system outages in 2002, 2011, and 2021. Has since focused on stability.

NTT Data

The hub of Japan's SI market. Partner for building and operating public-sector and financial core systems. NTT Data executes mainframe migrations and outsourced operations at scale.

Fujitsu — its own mainframe

NEC ACOS

Hitachi

Japan's talent market


17. Who Should Learn COBOL — Finance / Insurance / Government / Academia

If you're picking up a new language in 2026, COBOL probably isn't number one. But for specific people, it can be number one. Who and why.

Good candidates

Less good candidates

A practical learning path

  1. Install GnuCOBOL — compile and run locally.
  2. COBOL fundamentalsIDENTIFICATION / ENVIRONMENT / DATA / PROCEDURE DIVISION. PIC clauses. PERFORM.
  3. File handling — sequential, indexed, relative files.
  4. DB integration — embedded SQL.
  5. JCL — how mainframes actually run work.
  6. CICS basics — transaction processing.
  7. Mainframe environment experience — IBM Z Xplore / Master the Mainframe (names and offerings change over time — check IBM's official pages).
  8. Modernization tools — Visual COBOL, evaluation/demo of watsonx Code Assistant for Z.

Time investment

The language itself isn't hard. The environment is. That's the barrier and, simultaneously, the opportunity.


Epilogue — The Giant Moves Slowly, Very Slowly

The mainframe isn't dying. Not until at least the mid-2030s.

TimeEvent
April 2022IBM z16 launched (Telum I, quantum-safe crypto)
August 2023IBM watsonx Code Assistant for Z announced
2022OpenText acquired Micro Focus (new owner of Visual COBOL)
2022AWS Mainframe Modernization GA
September 2025IBM z17 launched (Telum II)
2026+AI-assisted modernization expands in earnest

The big picture

Next post ideas

Candidates:

"Old code is alive somewhere. We don't kill it — we plant a new tree beside it and let it slowly take over." — In the spirit of the metaphor that gave us the Strangler Fig.

— Mainframes 2026, fin.


References

Comments

No comments yet.

Sign in to leave a comment