Skip to content

det translator: CardDemo CBEXPORT / CBIMPORT count as whole, but their RECORD KEY is not in the file's record (the oracle does not compile them) #4804

Closed

Description

@squid-protocol

Refused by name from the #4270 non-CBSA whole-program cases (CardDemo app/cbl/CBEXPORT.cbl, app/cbl/CBIMPORT.cbl, both at evidence L1: "translated whole" in the census baseline of main 5242878).

Both programs declare the export file as

SELECT EXPORT-OUTPUT ASSIGN TO EXPFILE  ORGANIZATION IS INDEXED ... RECORD KEY IS EXPORT-SEQUENCE-NUM
FD  EXPORT-OUTPUT ... 01 EXPORT-OUTPUT-RECORD PIC X(500).

with EXPORT-SEQUENCE-NUM defined in WORKING-STORAGE (COPY CVEXPORT), not in the file's record. The language requires the RECORD KEY data item to be defined in a record description entry of that file (IBM Enterprise COBOL Language Reference, RECORD KEY clause), and the oracle refuses to compile it:

src/PROGRAM.cbl:68: error: 'EXPORT-SEQUENCE-NUM' is not defined     (GnuCOBOL 3, -std=ibm; measured 2026-10-09 with an equivalence case)

So no equivalence case can run (the COBOL side does not build), yet the det translator counts both programs as whole (CBEXPORT 224/224, CBIMPORT 175/175). (Also: the JCL's IDCAMS DEFINE gives the cluster KEYS(4 28), while EXPORT-SEQUENCE-NUM sits at offset 27.)

Ask: the det translator (and the census) should refuse a RECORD KEY / ALTERNATE RECORD KEY that is not part of the file's record, by name, as the compilers do -- so the two programs stop counting as L1 "translated whole". No case is possible until the corpus fixes the source; the programs stay out of the evidence ladder.

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    on Oct 9, 2026
  2. added
    scope:core
    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-engineera:2legacy-modernizationpriority: mediumscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions