Skip to content

equivalence: CICS oracle COMMAREA is read as z/OS holds COMP-5 under a declared comp5_byte_order (Part of #7646) - #7740

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7646-20261104T2251Z
Nov 5, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7646-20261104T2251Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7646 (COMP-5 declared reversal in the CICS comparator; follows #7725, #7729, #7733; independent of open #7734).

What

equivalence_cics.outputs decoded the oracle's COMMAREA (a RETURN / XCTL area and a LINKed program's commarea.out) with decode_record, which reads COMP-5 big-endian. GnuCOBOL's bytes are little-endian, so under a declared comp5_byte_order the oracle side read as wrong numbers. New oracle_commarea(data, ca_fields, case) reverses each COMP-5 field of 2+ bytes (common.comp5_zos_record) before the decode, only when the case declares the difference. An undeclared case is unchanged (the same bytes object is returned). The port side already decodes the z/OS image, so nothing is loosened: a port that kept the little-endian image still differs.

Class / Sibling gaps

Class: the oracle-side bytes the CICS comparator reads under the declared COMP-5 byte order. Members: file records (compare_files, done in #7733); COMMAREA of RETURN / XCTL and the linked result (this PR; tested for 2-, 4- and 8-byte COMP-5, COMP untouched, no layout, undeclared); IMS DL/I databases (#7734, open).
Sibling gaps: container, WRITEQ TS/TD, START / RETRIEVE and WEB bodies compare raw bytes with no layout, so no reversal is possible; a COMP-5 field written there stays a difference (conservative, never equal). No burned-estate CICS program needs it: ASYNCPNT and SEQPNT use COMP-5 only for a local length (READ-INPUT-LENGTH). _compare_tables, the CALL text item, a real proof run, the HFP view and the census are still queued from the issue.

Remaining slices

_compare_tables (equivalence.py); CALL text-item compare; a real proof under the switch; HFP byte view; census T3. The translate() default flip waits on v2.12.1 on PyPI.

Checklist: partial [c:2484171c] -- slice 4 (DL/I under zos_comp5) still needs the IMS comparators (#7734) and a real proof of PAUDBLOD / PAUDBUNL / DBUNLDGS.

Tests: tests/tools/test_equivalence_cics_comp5_commarea_7646.py (new file, so it merges cleanly with #7734). Hand-written files: 2 (equivalence_cics.py, the new test). pr_gates --fast: 9/9.

🤖 Generated with Claude Code

…a declared comp5_byte_order (Part of #7646)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd

squid-shepherd Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 5, 2026 02:56
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 5, 2026 03:03
@squid-shepherd
squid-shepherd Bot merged commit 3f12fc7 into main Nov 5, 2026
85 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7646-20261104T2251Z branch November 5, 2026 03:26
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