Skip to content

COBOL engine: a MOVE's receiver list runs into an unrecognized next statement (IDMS DML, vendor extensions) and records its words as targets #4403

Closed

Description

@squid-protocol

Problem

data_moves ends a MOVE's receiver list only at a word it recognizes as a COBOL verb (or a period). When the next statement is not standard COBOL and there is no period in between, its words are read as extra receivers. IDMS DML is one example (OBTAIN, FIND, GET, STORE, MODIFY, ERASE, BIND, READY, FINISH, COMMIT); vendor extensions and preprocessor statements are others.

Evidence

estate-crucible v0.3.0 horror H-0007 (apps/LOAN/cobol/LNIDMS01.cbl): MOVE WS-LOAN-KEY TO … followed by OBTAIN CALC LOAN records OBTAIN, CALC, LOAN as MOVE receivers. These are the last 3 failing H-0007 checks after #4306.

Why it matters beyond IDMS

A fresh estate can contain statements GitGalaxy doesn't know. A receiver list that silently swallows them invents data-flow targets. A receiver should be an identifier that could be declared: a data name, possibly qualified or subscripted, or a reference modification. An unknown statement keyword should end the list rather than join it.

Acceptance criteria

  • The receiver list ends at a known non-COBOL statement keyword: IDMS DML, and a configurable / extensible set.
  • Optionally, also at any word that resolves to no data item where the program's data items are known (guarded, so legitimate unresolved receivers still count as gaps).
  • H-0007 passes; regression tests for IDMS DML and one other extension verb.

Related: #3975 (IDMS epic), #4306.

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    priority: low
    on Oct 5, 2026
  2. added
    scope:frontier
    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-enginelegacy-modernizationpriority: lowscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions