Repository navigation
equivalence: CICS oracle COMMAREA is read as z/OS holds COMP-5 under a declared comp5_byte_order (Part of #7646) - #7740
Merged
Conversation
…a declared comp5_byte_order (Part of #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
2 tasks done
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 #7646 (COMP-5 declared reversal in the CICS comparator; follows #7725, #7729, #7733; independent of open #7734).
What
equivalence_cics.outputsdecoded the oracle's COMMAREA (a RETURN / XCTL area and a LINKed program'scommarea.out) withdecode_record, which reads COMP-5 big-endian. GnuCOBOL's bytes are little-endian, so under a declaredcomp5_byte_orderthe oracle side read as wrong numbers. Neworacle_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. Thetranslate()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