Repository navigation
CICS ADDRESS EIB / COMMAREA modelled; old-style sweep refused by name (Part of #5079) - #5185
Conversation
… name (Part of #5079) ADDRESS EIB(ptr) / COMMAREA(ptr) set a pointer to the task's own EIB / DFHCOMMAREA record on the pointer lane (both runtimes; no COMMAREA is refused). CWA, TWA, TCTUA, ACEE and ADDRESS SET are refused by name, as are SEND PAGE, PURGE MESSAGE, terminal CONVERSE, POST and WAIT EVENT (register X59). A WAIT-led command no longer crashes the translator on an empty verb. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
| shares them: a later EIB update shows through it. COMMAREA needs the program's 01 DFHCOMMAREA to address, and a | ||
| task with none (EIBCALEN 0: IBM's X'FF000000', no COBOL NULL) is refused when it runs. The command has no | ||
| condition: NORMAL. CWA / TWA / TCTUA / ACEE and ADDRESS SET are refused by the spec entry (check_options).""" | ||
| from gitgalaxy.tools.cobol_to_java.det.gen import Untranslatable |
|
PR #5185 @ c4f46e7: 3 failed check(s) == full-suite part 1/3 (failure) -- real == ground-truth (failure) -- real == ground-truth part 1/2 (failure) -- real |
…art of #5079) test_every_command_that_accepts_resp_writes_it[ADDRESS] names why ADDRESS is covered elsewhere (the whole-program test now asserts RESP is stored); the compiled-Java test launches java with -Dfile.encoding / -Dstdout.encoding UTF-8. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (2d29976) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
PR #5185 @ 2d29976: 2 failed check(s) == db2 1/4 (failure) -- infra == full-suite part 2/3 (failure) -- real |
Part of #5079
What
Finishes #5079's old-style CICS refused set (READQ/DELETEQ TD = #5167 / X57, UNLOCK = #5090 / #5095 / X52, both already merged; UNLOCK re-verified, see below).
SET ADDRESS OF rec TO ptrreads the EIB's later updates and a write through the COMMAREA view is the DFHCOMMAREA's own. Both runtimes: det port (DetCics.setPointerToRecord/ newaddressCommarea), stub (GGCADDR), harness (_address). No condition (IBM lists none): NORMAL.ADDRESS SETform, ADDRESS COMMAREA in a program with no01 DFHCOMMAREA, and at run time ADDRESS COMMAREA when EIBCALEN is 0 (IBM sets X'FF000000', which is not the COBOL NULL a handle holds).register="X59"and a register paragraph quoting its IBM page: SEND PAGE, PURGE MESSAGE, terminal CONVERSE, POST, WAIT EVENT.WAITis a bare option toparse_exec(RETRIEVE ... WAIT), so a command that starts with it (WAIT EVENT / EXTERNAL / TERMINAL / SIGNAL / JOURNALNAME / CONVID) read as no verb and crashed the translator withIndexErrorinstead of refusing. Fixed inCics.command; tested for EVENT, EXTERNAL, TERMINAL.Class table (old-style CICS commands that refuse the whole program)
test_unlock_held_5079.py,test_update_token_runtimes_5078.pypass, X52 states both formsEvidence
tests/cobol_mainframe/test_address_e2e_5079.py(EQUIVALENCE_E2E=1): one hand-traced program, GnuCOBOL + stub vs det port under CicsTask, PROVED, SEND TEXT lines match IBM-traced values (EIB view reads EIBRESP 0 then 44 after a READQ TD QIDERR; COMMAREA view write seen by DFHCOMMAREA).tests/cobol_mainframe/test_address_5079.py(38 cases): whole-program translation, every refusal by name, the harness translator, the stub'sGGCADDR(compiled C) andDetCics(compiled Java) incl. the no-COMMAREA refusal.pr_gates --fast6/6,--ratchets8/8 (nothing skipped);det_port.py check: 98/112 ports differ only by the 10 added lines ofDetCics.java(no generated service code moved), 14 unchanged; re-provedcarddemo-acctview,zecs-ecs001PROVED. Golden masters not touched (no scan output moves).Evidence level (policy 1)
Translated: whole for programs using only EIB / COMMAREA; the rest refused as listed. Executed-equivalent: 1 synthetic case, 3 SEND TEXT scenarios lines, 0 diffs. Assumptions relied on: X59 (the EIB / COMMAREA addressed are the task's own; no condition). Residual risk: no corpus program uses these; oracle is GnuCOBOL + stub, not z/OS.
Cross-repo
No companion PR is needed to merge. cics-crucible cases to queue (separate items): ADDRESS EIB + COMMAREA in one command with an EIB view read after a command and a COMMAREA view written through; ADDRESS COMMAREA with no COMMAREA (refused on both sides).
Overlap: open PR #5179 touches
tests/cobol_mainframe/test_det_translate.py, which this PR only imports from (no edit).🤖 Generated with Claude Code