Repository navigation
det: refuse a P-scaled zoned item holding a non-digit as sender/operand/comparand (Part of #4692) - #4992
Merged
Conversation
…rand/comparand (Part of #4692) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 12, 2026 16:39
This was referenced Oct 18, 2026
Merged
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.
Part of #4692. Part of #4270. Follows #4889 (receiver refusal) and #4693/#4685.
Audit of the issue. The receiver half was done in #4889: cobc 3.1.2 reads a non-digit receiver through
cob_decimal_set_display(not in place), IBM is silent (ZONEDATA(PFD), PI57769 / PI90571 / PH21007), soCobol.receiverNumrefuses ADD / SUBTRACT / MULTIPLY / DIVIDE by name; MOVE / GIVING overwrite the receiver; COMPUTE reads it as an operand (modelled). Register C11 now states that per verb. The remainder, the P-position zoned sender (#4685), is this PR.P-position sender. Measured against cobc (
-std=ibm -fsign=EBCDIC, STD and BIN): a left-P item (VPP99) MOVEd to a binary item hangs the program; a right-P item (99PP) is computed by no explainable rule (ADD S TO DSof two spaces gives 17595-, not -1595). IBM documents no result. So the port refuses by name when a P-scaled zoned item holding a non-digit is read: MOVE (the left-P case was not refused before; it ran), ADD / SUBTRACT / COMPUTE operand, comparison. Digit-only P items are unchanged.Class (non-digit zoned receiver/sender in arithmetic and MOVE).
Tests:
test_det_nondigit_zoned.py: 4 P shapes x 10 reads refused, 4 digit-only runs. Docker e2e re-check of expected files not run (EQUIVALENCE_E2E unset; expected files unchanged).Ports.
det_port.py check: all 104 change, onlyCobol.java(6 lines); no generated service changed, so none re-proven.Gates:
pr_gates --fast5/5;--ratchets7 pass, 0 skipped.Cross-repo: none.
🤖 Generated with Claude Code