Skip to content

det translator: PROGRAM COLLATING SEQUENCE ignored in alphanumeric relation conditions (silent) #4539

Closed

Description

@squid-protocol

Problem

The det translator ignores OBJECT-COMPUTER. PROGRAM COLLATING SEQUENCE IS alphabet in relation conditions: an alphanumeric IF A < B is translated as byte order whatever the program's collating sequence, silently. IBM (Enterprise COBOL 6.4 LR, OBJECT-COMPUTER paragraph) and GnuCOBOL both apply the program collating sequence to nonnumeric comparisons.

Evidence

Fix direction

Either refuse by name (an alphanumeric relation condition <, >, <=, >=, or = under an alphabet with ALSO, in a program with a non-native PROGRAM COLLATING SEQUENCE), or route it through Sort.Collating's dual-order comparison (IBM order, stop where GnuCOBOL's differs, register D1), which #4268 added for SORT keys. Level-88 THRU ranges and SEARCH ALL keys are affected the same way.

Acceptance criteria

  • A program with a non-native PROGRAM COLLATING SEQUENCE either translates its alphanumeric comparisons under it or refuses them by name
  • A det program test against GnuCOBOL (the repro above)

Related: #4268, #4035, register D1.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    data-integrity
    priority: high
    and removed on Oct 6, 2026
  2. added
    scope:sweep
    era:2
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcore-enginedata-integrityera:2legacy-modernizationpriority: highscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions