Repository navigation
CICS det: a literal / LENGTH OF where IBM wants a data-area is a named source defect (Part of #7959) - #7967
Merged
Conversation
…d source defect, owner #7959 (Part of #7959) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This was referenced Nov 8, 2026
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.
Checklist: partial -- the re-survey and the #7709 ledger row need the census clone and are not done here.
Part of #7959.
What changed
det/cics.pyref(): the refusal now says why: a data-area argument must be a COBOL data name (source defect, det/CICS: 'operand is not a data area' refusal has no owner (census #7709, last program short of the ceiling) #7959). The prefixnot a data areais unchanged, so the census key is stable.tests/tools/gap_prevalence.py:EXEC CICS: operand is not a data areais owned by det/CICS: 'operand is not a data area' refusal has no owner (census #7709, last program short of the ceiling) #7959 as a named source defect; it no longer falls through to the closed COBOL translator: CICS command breadth (START/RETRIEVE, channels/containers, GETMAIN, LOAD, CONVERSE, INQUIRE, ASSIGN, counters, HANDLE ABEND PROGRAM) #4270. Page and census fixture regenerated from the committed summaries (the owner text moves, no count does).tests/cobol_mainframe/test_det_cics_operand_forms_7959.py: realP.translateprograms, one per operand form.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 andLENGTH OFare refused across WRITEQ, SEND, START, REWRITE, PUT and similar FROM-style options. Options that take a data-value (names, lengths, items) already readtext/int_and accept literals, and the receivingLENGTH(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:266has 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.pyall clear;test_det_translate,test_det_dli,test_gap_prevalence,test_cics_censusand the new file pass.pr_gates --fastwas still running when this was written.det_port.py checkwas not run: no translator output changes, only a refusal message.Lessons for agents
_KeyCicsetc.) bypassref(); reproduce operand refusals with realP.translate(stub pattern intest_det_translate.py).gap_prevalence.py --writewith no survey args re-owns the committed summaries.🤖 Generated with Claude Code