Skip to content

COBOL translator: embedded SQL breadth (dynamic SQL, CALL, WHENEVER, CONNECT, scroll cursors, host-variable arrays, ROLLBACK) #4269

Closed

Description

@squid-protocol

Problem

Many common EXEC SQL forms are refused by the det port.

Evidence (file:line, origin/main)

  • gitgalaxy/tools/cobol_to_java/det/sql.py:~218: WHENEVER, PREPARE, EXECUTE, DESCRIBE, CONNECT, CALL (and non-assigning SET) raise SqlError.
  • det/sql.py:~220-222: ROLLBACK refused ("the generated repositories commit each statement"); COMMIT is a no-op reset.
  • docs/language_status/oracle_assumptions.md Q4 (~400): "WHENEVER, dynamic SQL, CONNECT, CALL, SCROLL cursors, host-variable arrays: REFUSED"; Q5: DSNTIAC / DSNTIAR formatting refused.

Impact on a real estate

Dynamic SQL, stored-procedure CALL and WHENEVER error routing are standard in Db2 batch and CICS programs; each refusal blocks proof of the whole program. ROLLBACK semantics are untestable while each statement commits.

Acceptance criteria

Out of scope

Db2 features beyond the above (XML, LOB locators, temporal tables).

Found during: 2026-10-03 COBOL engine/translator audit

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    core-engine
    legacy-modernization
    priority: high
    on Oct 3, 2026
  2. squid-protocol commented on Oct 5, 2026

    @squid-protocol
    OwnerAuthor

    Coverage census (2026-10-05): across 56 COBOL SQL programs, dynamic SQL (PREPARE/EXECUTE), WHENEVER, CALL, CONNECT, DESCRIBE and rowset FETCH appear in zero programs, and SCROLL cursors in 1 (GenApp). Only ROLLBACK appears at any size (14 programs, from 2 small public repos). Suggest narrowing this issue's near-term scope to ROLLBACK, and keeping the rest as low-priority breadth.

  3. added
    scope:sweep
    era:2
    on Oct 16, 2026
  4. 36 remaining items

  5. squid-protocol commented on Oct 30, 2026

    @squid-protocol
    OwnerAuthor

    #7109 merged: a partial slice of [c:022d6a2a] "Q4 register entry updated per form"; left: Q4 entry updated for the forms this PR adds; remaining forms still open (promoter-bot)

  6. squid-protocol commented on Oct 30, 2026

    @squid-protocol
    OwnerAuthor

    #7127 merged: a partial slice of [c:005d2c3c] "Real unit-of-work: ROLLBACK undoes work since the last COMMIT; proven on the Db2 oracle"; left: ROLLBACK is already real in batch and proven on Db2 by UOWDEMO (#4729); left: CICS ROLLBACK is refused (-926 not modelled) (promoter-bot)

  7. squid-protocol commented on Oct 30, 2026

    @squid-protocol
    OwnerAuthor

    #7127 merged: a partial slice of [c:f7800395] "Scroll cursors (FETCH PRIOR/ABSOLUTE/RELATIVE) and multi-row FETCH/INSERT with host-variable arrays"; left: scroll and rowset FETCH merged; multi-row INSERT is in #7109 (promoter-bot)

  8. squid-protocol commented on Oct 30, 2026

    @squid-protocol
    OwnerAuthor

    #7127 merged: a partial slice of [c:022d6a2a] "Q4 register entry updated per form"; left: Q4 updated per form as each lands; #7109 adds INSERT (promoter-bot)

  9. squid-protocol commented on Oct 30, 2026

    @squid-protocol
    OwnerAuthor

    All acceptance boxes are ticked (#6329, #7127, #7173, #7195). Remaining forms have no burned-estate user and need an oracle fixture; they are recorded as sibling gaps in #7195.

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

    claim:melekcore-engineenhancementera:2legacy-modernizationneeds:db2needs:dockerpriority: highscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions