Skip to content

CICS det: a literal / LENGTH OF where IBM wants a data-area is a named source defect (Part of #7959) - #7967

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7959-20261107T0002Z
Nov 7, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7959-20261107T0002Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: partial -- the re-survey and the #7709 ledger row need the census clone and are not done here.

Part of #7959.

What changed

Class / Sibling gaps

Class: a non-data-name operand (literal, figurative constant, LENGTH OF, expression) given where det needs a data area. Reproduced on authored programs only (no census source read). Data-name forms (item, reference modification, subscripted item) are accepted. Literal, figurative and LENGTH OF are refused across WRITEQ, SEND, START, REWRITE, PUT and similar FROM-style options. Options that take a data-value (names, lengths, items) already read text / int_ and accept literals, and the receiving LENGTH(LENGTH OF x) no-store-back cases are already modelled (#4737 / #4436). The plan changed here: it assumed a literal FROM is IBM-accepted; IBM's docs say otherwise.
Sibling gaps: det/dli.py:266 has the same refusal for EXEC DLI (owner #4893, not touched). Not checked per command: whether each individual option is a data-area or a data-value in IBM's spec (the call is made from the general rule).
Remaining slices: re-survey with the census clone to confirm the one census program's shape; #7709 ledger row; a per-option audit against the CICS spec if the owner wants any data-value option modelled.

Facts checked: IBM CICS TS 5.5 "Data-areas and data-values" ("A data-value is always, and exclusively, a sender"; data-value may be "Constants, including literals"; a data-area is a receiver, and a sender only for variable-length data such as FROM); TS 5.4 COBOL rule "data-area can be replaced by any COBOL data name". No page states the literal-as-data-area error verbatim: the source-defect conclusion is derived. TS 6.x COBOL translator page: a numeric figurative constant is acceptable for LENGTH. Not covered: the census program's exact shape.

Gates

audit_check.py all clear; test_det_translate, test_det_dli, test_gap_prevalence, test_cics_census and the new file pass. pr_gates --fast was still running when this was written. det_port.py check was not run: no translator output changes, only a refusal message.

Lessons for agents

  • Det-port fake-gen fixtures (_KeyCics etc.) bypass ref(); reproduce operand refusals with real P.translate (stub pattern in test_det_translate.py).
  • gap_prevalence.py --write with no survey args re-owns the committed summaries.

🤖 Generated with Claude Code

…d source defect, owner #7959 (Part of #7959)

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 Nov 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 00:17
@github-actions

github-actions Bot commented Nov 7, 2026

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) November 7, 2026 00:19
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

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.

COBOL translator: CICS command breadth (START/RETRIEVE, channels/containers, GETMAIN, LOAD, CONVERSE, INQUIRE, ASSIGN, counters, HANDLE ABEND PROGRAM)

1 participant