Skip to content

det: a LINKed program XCTLing with its caller's COMMAREA is refused by name (Part of #4816) - #4955

Merged
squid-protocol merged 4 commits into
mainfrom
churn/4816-xctl-linked-commarea
Oct 12, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/4816-xctl-linked-commarea

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4816.

Decision. IBM's XCTL reference says only "the contents of the data-area are passed"; it does not say whether the target of a LINKed program's own DFHCOMMAREA addresses the LINK caller's storage or a copy. Never assumed, so both runtimes now refuse by name a successful XCTL whose COMMAREA lies inside the DFHCOMMAREA of a program LINKed with a COMMAREA. Register X39 (REFUSED, IBM silent; cites the XCTL page and why the issue's addressability sentence does not settle it).

What changed

  • ggcics.c xctl_next: exit 98 "XCTL passing the COMMAREA its LINK caller passed: not modelled" (the harness refuses the case by name).
  • CicsTask: xctlOfLinkage() / callerArea; xctl throws UnsupportedOperationException only for a successful XCTL of the caller's area (failed XCTL: program goes on).
  • det cics.py: emits task.xctlOfLinkage() when the XCTL COMMAREA operand is in the LINKAGE DFHCOMMAREA record (whole or a field).
  • tests/cobol_mainframe/test_link_xctl_commarea_4816.py: translation marks (whole, part, WORKING-STORAGE copy not), CicsTask unit (refused / copy / failed XCTL / no bytes), E2E against GnuCOBOL (refused by name; copy proven).

Class table (COMMAREA addressability across LINK/XCTL/RETURN chains)

member status
LINK passes caller's area by address handled (#4806)
LINKed program XCTLs with its DFHCOMMAREA (det) refused here
...with a field of it refused here
...with a copy (WORKING-STORAGE) runs, proven here
XCTL at level 1 / a task's own start area no other addressee; unchanged
LINKed program XCTLs a model-port DTO (non-det) sibling gap
SET ADDRESS OF / pointer alias of DFHCOMMAREA, then XCTL sibling gap

Gates. pr_gates --fast 5/5; --ratchets 7 pass, 0 skipped. det_port.py check: all 90 changed ports moved only by the shared CicsTask.java (+18 lines), no translated service changed; re-proved cbsa-bnk1cac, carddemo-signon, genapp-lgacdb01 PROVED. No parser/engine regex touched, golden masters not affected.

Cross-repo. None.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

…ed operand; test the operand shapes (Part of #4816)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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