Skip to content

Equivalence harness: CICS online programs (EXEC CICS stub runtime on the COBOL side) #3754

Closed

Description

@squid-protocol

Part of epic #3755. Extends #3624.

Problem. The harness runs batch programs natively under GnuCOBOL. CICS online programs can't run there as-is: EXEC CICS needs a translator and a runtime. Most of CBSA and CardDemo's online half are CICS, so equivalence for them is unproven.

Needs:

  • COBOL side.
    • Translate EXEC CICS into CALLs to a stub runtime, a small GnuCOBOL library. It serves recorded inputs: the COMMAREA / channel on entry, RECEIVE MAP fields, READ / READNEXT from files loaded like the batch harness's KSDSs, TS / TD queue contents, and LINK / XCTL targets (stubbed or chained).
    • It records every output: the COMMAREA on RETURN, SEND MAP fields, WRITE / REWRITE / DELETE, queue writes, LINK / XCTL / RETURN TRANSID.
    • The engine already knows each program's CICS surface, so the stub can be generated per program.
  • Java side. Drive the generated endpoint / handler (Java conversion: CICS transactions + COMMAREA / channel contracts -> REST endpoints and request / response DTOs #3615) with the same COMMAREA and map input, over the same data, and capture the same outputs through the generated DTOs, entities and adapters.
  • Diff. The harness's field-by-field comparison, applied to the COMMAREA, map fields, file state and queue writes.
  • First case: one CardDemo online transaction end to end (BMS → COMMAREA → program → VSAM), e.g. account view (COACTVWC), then a CBSA inquiry.

Done when: one CICS transaction runs as COBOL (with the stub runtime) and as the generated Java plus a port, and the report shows every output compared. The stub runtime is generated from the program's CICS facts, not hand-written per program.

🤖 Generated with Claude Code

Activity

  1. added
    scope:core
    era:3
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    era:3scope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions