Skip to content

COBOL units: record each unit's owning program (container attribute) for multi-program sources #4404

Closed

Description

@squid-protocol

Follow-up to #4203's second half, which was decided against: we won't count PROGRAM-ID as a unit. Instead, give each COBOL unit (paragraph / section / main-line block) an attribute naming its owning program, as #4245 already derives for data items (EngineDataItem.program). That gives multi-program sources (CobolCraft, IBM DBB epscsmrd.cbl, nested and sibling programs) program-level grouping and boundaries without inflating unit counts.

Acceptance: function_data (or GalaxyIR) exposes the owning program for every unit in a multi-program source. Single-program sources are unchanged. Not before the 4th-estate attempt unless needed.

Related: #4203, #4245, #4302.

Activity

  1. added
    enhancement
    core-engine
    legacy-modernization
    priority: low
    on Oct 5, 2026
  2. added
    scope:sweep
    era:2
    on Oct 16, 2026
  3. squid-protocol commented on Oct 17, 2026

    @squid-protocol
    OwnerAuthor

    Closed by #5343: GalaxyIR EngineUnit.program now records the owning program of every unit in a multi-program source (single-program sources unchanged), which meets the acceptance line ("function_data (or GalaxyIR)"). A function_data column and the entry-point/call-site program fields remain optional siblings, listed in the PR; no burned-estate program needs them yet.

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

    core-engineenhancementera:2legacy-modernizationpriority: lowscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions