Skip to content

det: refuse a P-scaled zoned item holding a non-digit as sender/operand/comparand (Part of #4692) - #4992

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4692-20261012T1338Z
Oct 12, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4692-20261012T1338Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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), so Cobol.receiverNum refuses 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 DS of 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).

Member Status
receiver of ADD/SUBTRACT/MULTIPLY/DIVIDE refused (#4889)
receiver of MOVE / GIVING overwritten, modelled
receiver of COMPUTE (operand) modelled
sender / operand / comparand, non-P modelled (#4693)
P-scaled sender: MOVE to zoned/packed/binary/edited, operand, comparand refused by name (this PR)

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, only Cobol.java (6 lines); no generated service changed, so none re-proven.

Gates: pr_gates --fast 5/5; --ratchets 7 pass, 0 skipped.

Cross-repo: none.

🤖 Generated with Claude Code

…rand/comparand (Part of #4692)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 12, 2026 16:39
@squid-protocol
squid-protocol merged commit 49eb32f into main Oct 12, 2026
61 checks passed
@squid-protocol
squid-protocol deleted the churn/4692-20261012T1338Z branch October 12, 2026 16: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