Repository navigation
det: EXEC SQL COMMIT / ROLLBACK in a CICS program answer -925 / -926 (Part of #7709, #7527) - #7727
Conversation
…on both sides (Part of #7709, #7527) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #7727 @ 2aab02c: 1 failed check(s) == ground-truth part 1/4 (failure) -- real |
…overloads (#7527) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (1d80348) is not the one a maintainer labelled |
Pull request was converted to draft
|
No description provided. |
|
No description provided. |
Part of #7709 (census mock trial), #7527.
Checklist: partial [c:4112a597] -- translation and both runtimes done; the equivalence proof case and the census re-survey are left.
What
EXEC SQL COMMIT/ROLLBACKin a CICS program: IBM answers COMMIT -925 and ROLLBACK -926 (SQLSTATE 2D521) and the task's unit of work is untouched (SYNCPOINT is CICS's). Before, the det translator refused ROLLBACK by name and turned COMMIT into an SQLCA reset (a declared difference from z/OS). Now:det/sql.pyemitsDetSql.commit/rollback(..., true)in a CICS program; other options and savepoints stay refused by name.DetSql.javaoverloadscommit/rollbackwith acicsflag: SQLCA reset, fault plan honoured, then -925 / -926 / 2D521; no commit, no backout, no cursor closed.tests/equivalence/db2/ggsql.c(oracle): linked withggcics.c(weakggcics_event), the COMMIT / ROLLBACK kinds answer the same and call noSQLEndTran. Db2 for Linux has no CICS attachment; the answer is IBM's, not the instrument's.Evidence level
Translated: whole (no new refusal). Executed-equivalent: none yet; no burned CICS program issues either statement (CBSA's COMMIT WORK is in a batch program), so there is nothing burned to prove it on. Unit tests cover the whole class (COMMIT / ROLLBACK, with and without WORK, other options refused, batch unchanged, savepoints in CICS refused, Java overloads name the SQLCODE and touch no unit-of-work state).
Gates
pr_gates --fast9/9,pr_gates --ratchets9/9 (via heavy-run.sh),audit_check.pyclear. No golden re-bless (det translator, not the parsing engine). Det port sweep:portsratchet passes, no port moved.Class / Sibling gaps
Class: det-translator statement families the census survey reports as "not modelled" in CICS programs; this PR takes EXEC SQL COMMIT / ROLLBACK in CICS (both verbs share one handler and one rule).
Sibling gaps (different mechanisms, not here): No such item, 3 programs (no owner yet); STRING numeric / decimal sender (#7523); bytes overlap COMP-1/2/5 (#7646, PR #7673); EXEC CICS map no such field (#4270); JSON GENERATE / PARSE (#7524); MOVE literal beyond single-byte code page (#7526); EXEC CICS WEB CONVERSE / RECEIVE (#7525).
Remaining slices
tests/equivalence/.docs/language_status/cobolrt_rules.json(title of RT-SQL-UNIT-OF-WORK still reads "COMMIT ... ROLLBACK ... refused with no unit of work"; add the CICS answer) anddocs/language_status/det_port_design.mdline ~826 (still says a CICS ROLLBACK is refused).Cross-repo: none.
Lessons for agents
DetSql.javaneeds acobolrt_rules.jsoncatalogue entry (test_the_catalogue_matches_the_runtime); an overload of a listed method does not.ibm.com/docslink, or a "DIFFERS" note; dropping the DIFFERS text failstest_register_audituntil a link is added.🤖 Generated with Claude Code