Repository navigation
det dfsort: a CH key or condition is lowered under the EBCDIC collating sequence (Part of #4268) - #7247
Merged
Conversation
…ng sequence; CH+BI in one step is refused (Part of #4268) DFSORT compares CH fields by EBCDIC bytes (SC23-6878); the lowered COBOL ran in the oracle's ASCII order, so a letter-versus-digit key was unsound and unguarded (#4035). The step now carries PROGRAM COLLATING SEQUENCE IS EB, the port stops by name where the two EBCDIC tables disagree (D1), and a step comparing CH and BI is refused. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
5 tasks done
squid-protocol
added a commit
that referenced
this pull request
Oct 31, 2026
…ollating sequence, test_det_layout reads a case-local program (Part of #4268) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Oct 31, 2026
…n against the oracle (Part of #4268) (#7251) * equivalence: a SORT case, CardDemo TRANREPT STEP05R lowered and proven against the oracle (Part of #4268) program_source may be @case/<file>: a program the case itself carries, as a JCL SORT step lowered to COBOL (det/dfsort.py) is, since no corpus holds it. One helper, equivalence_common.program_file, adopted by equivalence.py and det_port.py. The case carddemo-sort-tranrept is GnuCOBOL against the det port over 50 unsorted records (distinct keys, the INCLUDE keeping and dropping); evidence recorded, mutation pending. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * sort case: merge main, regenerate the lowered program under #7247's collating sequence, test_det_layout reads a case-local program (Part of #4268) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * sort case: commit the port translated from the regenerated program (Part of #4268) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This was referenced Oct 31, 2026
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 #4268
What
A DFSORT step that compares a CH field (a SORT/MERGE key, or an INCLUDE/OMIT operand) was lowered to COBOL that ran in the oracle's native ASCII order, while DFSORT compares CH by EBCDIC bytes (SC23-6878, #4035). Every proven card (CardDemo TRANREPT, SORTTEST, COMBTRAN) is digit-only or ISO-date, where the two orders agree, so a letter-versus-digit key was unsound and unguarded.
det/dfsort.pynow emitsPROGRAM COLLATING SEQUENCE IS EBwithALPHABET EB IS EBCDICfor a step that compares CH. The port'sSort.Collatingthen stops by name where IBM's cp037 and GnuCOBOL's table disagree (register D1). BI is a byte compare the alphabet would reorder, so a step comparing both CH and BI is refused by name.Evidence (levels, not "proven")
Class / Sibling gaps
Class: a DFSORT CH comparison lowered without an EBCDIC alphabet (CH key, MERGE CH key, CH vs constant, CH field vs field, OMIT). All covered here; IEBGENER/COPY without a condition compares nothing, so is unaffected.
Sibling gaps: no burned program uses the SORT verbs, so a
tests/equivalence/<case>case.json needs a lowered-step case kind inequivalence.py; the CH+BI mix is refused rather than lowered with two collations; VB/U record formats stay refused.Remaining slices
equivalence.pyso a DFSORT step is an equivalence case (needs harness work).Checklist: partial [c:2148d504] -- no burned program uses the SORT verbs, so the equivalence case.json form needs a lowered-step case kind in equivalence.py; this slice proves the CH collation of the lowered step against the oracle.
Cross-repo: none.
🤖 Generated with Claude Code