Architecture ·

Legacy Mainframe Integration Patterns

Bridging the gap between COBOL/CICS and REST/JSON using IBM ACE. Modernizing banking infrastructure without touching the core.

The Modernization Dilemma

Banks run on Mainframes. Startups run on Cloud. How do you connect them? You build an Integration Layer (ESB) that translates protocols.

Pattern 1: CICS Transaction Gateway (CTG)

IBM ACE interacts with Mainframe CICS via CTG nodes.

  • Input: REST API (JSON)
  • Transformation: JSON to COBOL Copybook (Binary)
  • Transport: IPIC implementation over TCP/IP.

ESQL Logic for Copybook Mapping

Mapping strings to fixed-length COBOL fields requires precision.

-- Pad with spaces for COBOL text fields
SET OutputRoot.CICS.Commarea.CUSTOMER_NAME =
    CAST(InputRoot.JSON.name AS CHARACTER FORMAT 'X(30)');

-- Pad with zeros for packed decimal
SET OutputRoot.CICS.Commarea.BALANCE =
    CAST(InputRoot.JSON.balance AS DECIMAL(10,2));

Pattern 2: MQ Bridge to IMS

For asynchronous processing, put a queue between them. The Mainframe reads from the queue, processes, and writes back. This decouples the frontend from the "slow" legacy system and handles burst traffic better.

Conclusion: Legacy integration is about translation. Understand the data format (EBCDIC vs ASCII) and the protocol.