Repository navigation
CBSA Db2: INQACC, DELACC, XFRFUN, CUSTCTRL proven; backout honours CSD RECOVERY on both sides - #4156
Merged
Merged
Conversation
… both sides and an abend backs out - cbsa-inqacc (14 scenarios, ABNDPROC in the task) and cbsa-delacc (11): scenarios drafted by a subagent, checked by the proofs; the subagent found the first three bugs below. - A COMMAREA declared by COPY ... REPLACING ... BY DFHCOMMAREA (CBSA) is the program's COMMAREA on the COBOL side. - A POINTER in a COMMAREA DTO: NULL travels (all zero bytes), an address stops by name; a DTO with data after a POINTER is refused (GnuCOBOL's pointer is 8 bytes, IBM's 4: register C9). - ggsqlrun dumps a value by its length: a CHAR holding X'00' was cut at its first NUL. - FORMATTIME DATESEP / TIMESEP with no value: IBM's '/' and ':' in the det port (it wrote none). - A LINKed program's RETURN carries no COMMAREA of its own: the COBOL side had read the last RETURN for every one. - Backout (register X3): a case's RECOVERY(NONE) dataset (CBSA's ABNDFILE, from BANK.csd) is not backed out by the COBOL model, and its changes are made outside the Java task's transaction; an abend that terminates the task now backs out the Java side's unit of work too (it had only on SYNCPOINT ROLLBACK). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
…XFRFUN, CUSTCTRL, INQACCCU translate whole - ENQ / DEQ / DELAY on both sides: one task in the region, so NORMAL; a task takes no time, a DELAY included (X4). DELAY REQID and other options are refused by name. - INITIALIZE sets a POINTER NULL (GnuCOBOL, measured); a port's pointer only ever holds NULL. - SQLDA: IBM's COBOL declaration as a stand-in for EXEC SQL INCLUDE SQLDA (declared only; dynamic SQL is refused). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
…ops by name; FILLER not compared - cbsa-xfrfun: transfers both ways, no funds check, the amount rule, boundaries and overflow, same account, not-found on either side with all four SYNCPOINT ROLLBACK paths backing out the other UPDATE, NULL dates; ABNDPROC in the task. Scenarios drafted by a subagent, checked by the proof (it found a real CBSA misplaced END-IF, matched on both sides). - cbsa-custctrl: the control record, NOTFND / IOERR / NOTOPEN / DISABLED faults. - A program whose own COMMAREA DTO cannot be carried (INQACCCU: data after a POINTER, C9) now stops by name when the task gets one; it had run as if there were no COMMAREA. - A COMMAREA's FILLERs are not compared (no DTO property holds them; several shared one key). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
Contributor
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Four more CBSA Db2 programs are translated with no model and proven on real IBM Db2, bringing CBSA to 6 of 12:
cbsa-inqacccbsa-delacccbsa-xfrfuncbsa-custctrlSubagents drafted the scenarios and the proofs checked them. The subagents also found most of the bugs below; told to stop rather than work around, each stop was a real gap.
Backout, on both sides (register X3)
RECOVERY(NONE), with arecovery_whyciting the CSD. CBSA's ABNDFILE, the abend log, is not backed out.RECOVERY(NONE)file are made outside the transaction (REQUIRES_NEW) throughCicsTask.write.Translator and harness
COPY … REPLACING … BY DFHCOMMAREAis detected.INITIALIZEsets a POINTER to NULL, as GnuCOBOL does (measured).EXEC SQL INCLUDE SQLDA; dynamic SQL is still refused. This lets XFRFUN translate.DATESEP/TIMESEPgiven with no value now mean IBM's/and:in the det port.ggsqlrundumps a value by its length (a CHAR holding X'00' was cut off at the NUL).Re-proven
carddemo-cardupdate(Porting loop at scale: baseline-reuse proofs, run-many, adopt; COCRDUPC recorded as not proven #4085) andcarddemo-intcalc-generated(D1).det_port.py checkmoves 40 ports: every CICS port carries the newDetCicspointer conversions, and file writes route throughtask.write. Those 40 are being re-proven on the rebased branch, and the result will be posted here before merge.Not reachable here
Tests
pr_gates.py --fast: 5/5 pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ