Skip to content

det: ADDRESS COMMAREA in a program with no 01 DFHCOMMAREA (Part of #6876) - #7048

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6876-20261029T2217Z
Oct 29, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6876-20261029T2217Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6876. ADDRESS COMMAREA in a program that names no 01 DFHCOMMAREA no longer stops the det translator. A task with no COMMAREA (EIBCALEN 0) gets IBM's X'FF000000', which the program's PIC X(4) byte view tests (the #6971 test, DetCics.isNoCommareaAddress); a task run with a COMMAREA is refused by name at run time (its bytes are the caller's, not stored by such a program).

Checklist: partial [c:36bb664b] -- CAADDR, CAADSB, CAEBCA, CAEBSB now translate whole (34/34, 12/12, 40/40, 16/16 statements, 0 holes); CAGMZ still needs GETMAIN without INITIMG, FREEMAIN DATA and the numeric view read as a number

What changed

  • det/cics.py address(): no 01 DFHCOMMAREA emits DetCics.addressNoCommarea(task, ptr, EIBCALEN) instead of a hole.
  • DetCics.java: NO_COMMAREA (0xFF000000, a handle no block holds: SET ADDRESS OF to it is refused as an unknown pointer), addressNoCommarea, and isNoCommareaAddress now reads the handle.
  • docs/language_status/cobolrt_rules.json: RT-CICS-ADDRESS lists the new method.
  • tests/cobol_mainframe/test_address_5079.py: the "no LINKAGE 01 DFHCOMMAREA" hole row becomes a translates-whole test; the JDK test covers the sentinel, SET ADDRESS OF to it, and the COMMAREA refusal.

Class / Sibling gaps

Class: ADDRESS COMMAREA / the pointer-overlay holes of #5042, members CAADDR, CAADSB, CAEBCA, CAEBSB (done here, det translator and runtime), CAGMZ (open). Not done: (1) a program with a 01 DFHCOMMAREA run with EIBCALEN 0 still refuses in addressCommarea, though IBM gives X'FF000000' there too; no case in the crucible needs it. (2) A program with no 01 DFHCOMMAREA run WITH a COMMAREA (CAADSB / CAEBSB's LINK scenarios) is refused at run time, not modelled: the LINK caller's bytes would need to be addressed through task.linkArea(). (3) The cobol-stub side (equivalence_cics.translate, ggcics.c GGCADDR) still refuses "no LINKAGE 01 DFHCOMMAREA", so the crucible baseline rows for ca-address-* stay unsupported there. (4) CAGMZ: GETMAIN without INITIMG, FREEMAIN DATA, numeric view WS-PTR2-N. The other checklist classes are untouched.

Remaining slices

  1. Harness / C stub: no-COMMAREA sentinel in equivalence_cics.py and ggcics.c (2-3 files), then re-prove the four ca-address-* cases.
  2. LINK-with-COMMAREA through task.linkArea() for CAADSB / CAEBSB.
  3. CAGMZ (see above).

Gates

pr_gates --fast 9/9; pr_gates --ratchets 9/9 (ports 225 s: det_port.py check is dirty by the DetCics.java change only, no port calls the new method); tree-wide guards 265 passed; test_address_5079, test_pointer_lane_4771, test_cobolrt_rules pass, no skips. Not re-proved: the det ports that DetCics.java moves; none calls addressNoCommarea or reads NO_COMMAREA (the only changed behaviour is isNoCommareaAddress from always false to a handle test, which no port reached before #6971 translated it).

Cross-repo: none.

🤖 Generated with Claude Code

…0000' for a task with no COMMAREA (Part of #6876)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 29, 2026 22:39
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 29, 2026 22:50
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit bf99c49 into main Oct 29, 2026
105 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6876-20261029T2217Z branch October 29, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant