Repository navigation
Closed
Labels
claim:melekcore-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signatureera:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingneeds:db2Needs the local Db2 container (main box only)needs:dockerNeeds Docker toolchain/oracle containerspriority: highCore feature broken, but workarounds existscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Milestone
Description
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) raiseSqlError.det/sql.py:~220-222: ROLLBACK refused ("the generated repositories commit each statement"); COMMIT is a no-op reset.docs/language_status/oracle_assumptions.mdQ4 (~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
- PREPARE/EXECUTE/DESCRIBE (EXECUTE IMMEDIATE first), WHENEVER (SQLERROR/NOT FOUND/SQLWARNING GOTO/CONTINUE), EXEC SQL CALL, CONNECT (det SQL: pin the burned-estate premise for the still-refused CALL / CONNECT / DESCRIBE / host-variable text (Part of #4269) #6329)
- Scroll cursors (FETCH PRIOR/ABSOLUTE/RELATIVE) and multi-row FETCH/INSERT with host-variable arrays (Q4 register: COMMIT / ROLLBACK unit of work recorded as modelled and proven on Db2 (Part of #4269) #7173)
- Real unit-of-work: ROLLBACK undoes work since the last COMMIT; proven on the Db2 oracle (Q4 register: COMMIT / ROLLBACK unit of work recorded as modelled and proven on Db2 (Part of #4269) #7173)
- DSNTIAR message formatting modelled or kept refused with a register entry (Q5) (det dyncall: DSNTIAR refusal points at register Q5, pinned (Part of #4269) #7127)
- Q4 register entry updated per form (Q4 register: COMMIT / ROLLBACK unit of work recorded as modelled and proven on Db2 (Part of #4269) #7173)
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
Metadata
Metadata
Assignees
Labels
claim:melekcore-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signatureera:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingneeds:db2Needs the local Db2 container (main box only)needs:dockerNeeds Docker toolchain/oracle containerspriority: highCore feature broken, but workarounds existscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
squid-protocol commentedon Oct 5, 2026
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
ROLLBACKappears 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.SAVEPOINT / ROLLBACK TO SAVEPOINT / RELEASE SAVEPOINT on the batch un…
EXEC SQL COMMIT / ROLLBACK / SAVEPOINT: a real Db2 unit of work in ba…
test: WHENEVER GO TO is modelled now; the refused-by-name case uses W…
det: EXEC SQL WHENEVER SQLERROR / NOT FOUND / SQLWARNING (Part of #4269…
det: EXEC SQL EXECUTE IMMEDIATE 'INSERT ... VALUES ...' (Part of #4269)…
36 remaining items
COBOL translator: INSERT ... FOR n ROWS [ATOMIC] with host-variable t…
squid-protocol commentedon Oct 30, 2026
#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)
det dyncall: DSNTIAR refusal points at register Q5, pinned (Part of #…
squid-protocol commentedon Oct 30, 2026
#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)
squid-protocol commentedon Oct 30, 2026
#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)
squid-protocol commentedon Oct 30, 2026
#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)
det SQL: FETCH BEFORE | AFTER of a SCROLL cursor parks the position, …
Db2 oracle: FETCH BEFORE | AFTER of a SCROLL cursor, proven on scroll…
Regenerate docs_read_by_tests.txt after merging main (Part of #4269)
Q4 register: COMMIT / ROLLBACK unit of work recorded as modelled and …
test_sql_dynamic: restore the scroll test's `out =` (a stray return m…
det-port Db2: INSERT ... FOR n ROWS ATOMIC undo via an internal savep…
det SQL: ALLOCATE / ASSOCIATE refused by name; burned-estate pin cove…
squid-protocol commentedon Oct 30, 2026
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.