Skip to content

COBOL: unnamed elementary item (2 PIC X(31) ..., implicit FILLER) is read as a field named PIC #4246

Closed

Description

@squid-protocol

Problem

DBB MortgageApplication zBuilder/MortgageApplication/cobol/epscsmrd.cbl @ ce2c1be58eb049e000c6627bd8273263fef0c606 (4,052 lines, 13 PROGRAM-IDs), lines 24, 27, 30: 2 PIC X(40) USAGE DISPLAY VALUE '...'. A data description with no name is an implicit FILLER. Both the engine (record_data: item_name='PIC', level 2, line 24, pic empty) and the key (_data_items: name='PIC', pic=None, usage='DISPLAY') read the keyword PIC as the item name, so the item has no PIC and a wrong name.

Evidence

Reproduced on origin/main with both readers. The key's place() skips FILLER by name, so a mis-read name also changes layout offsets.

Acceptance criteria

  • An entry whose first token after the level number is a clause keyword (PIC/PICTURE/USAGE/VALUE/OCCURS/COMP...) is named FILLER, with its pic/usage captured
  • Same fix in engine and key (independently implemented)
  • Fixtures with and without a name

Out of scope

First-program-only reading (separate issue).

Found during: PR #4226

🤖 Generated with Claude Code

Activity

  1. added
    bug
    data-integrity
    core-engine
    on Oct 3, 2026
  2. added a commit that references this issue on Oct 5, 2026
  3. 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-enginedata-integrityera:2priority: mediumscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions