Skip to content

det: COMP-5 big-endian serves EXEC SQL and LINK COMMAREA over non-COMP-5 data (Part of #7646, #7709) - #7841

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7709-20261106T0112Z
Nov 6, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7709-20261106T0112Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Part of #7709, #7646 (slice 5 follow-up to #7829). SQL and LINK COMMAREA refusals lifted; C7.md wording and the evidence re-proof are left.

What

zos_comp5=True (and the default, for a program that holds a COMP-5 item) no longer refuses two things that were gaps, not IBM limits:

  • EXEC SQL: DetSql.putInt writes the SQLCA's COMP-5 fields in the program's live order (read through Cobol.swapZosComp5, so no Cobol.java edit); the inline WHENEVER SQLCODE read in sql.py uses BIG_ENDIAN when the program's wrapper is on.
  • LINK / XCTL COMMAREA(x): refused only when x's area covers a held COMP-5 item (same check as CONTAINER areas, _container_comp5). CBSA BNK1TFN's and XFRFUN's COMMAREAs are display / text.
    Under the default, gen.zos_comp5 is now cleared when the program holds no COMP-5 item, so the earlier comp5_idle conditions collapse to gen.zos_comp5; output of programs without COMP-5 is unchanged.

Class / Sibling gaps

Class: zos_comp5 refusals guarding a byte path the runtime or translator did not model (SQLCA order, COMMAREA over non-COMP-5 data). Members handled: EXEC SQL refusal, WHENEVER read, LINK/XCTL COMMAREA refusal (both verbs tested). Sibling gaps: foreign CALL, LE / Db2 CALLs (CEE*, DSNTIAC), AIBTDLI stay refused; no burned program needs them under the default (DBB epscsmrd is refused by design, #5106). A program with no COMP-5 item outside the SQLCA (XFRFUN, BNK1TFN) is still not wrapped big-endian under the default (explicit True does it): flipping that moves every port.
Remaining slices: docs/language_status/register/C7.md wording (6th file); evidence refresh re-proving Db2 / LINKing cases staled by the DetSql.java edit; census T3.

Facts checked

XFRFUN and BNK1TFN: explicit True was refused (SQL / COMMAREA), now translates with swapZosComp5(true). Neither holds COMP-5 outside the SQLCA. Tests: test_det_zos_comp5, test_det_port_zos_comp5_7646, test_burned_number_byte_views_7646, test_sql_whenever, test_det_programs, test_sql_unit_of_work, test_evidence_components pass.

Cross-repo

None.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 6, 2026 01:32
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit ec76019 into main Nov 6, 2026
98 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7709-20261106T0112Z branch November 6, 2026 02:06
squid-shepherd Bot pushed a commit that referenced this pull request Nov 6, 2026
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