Skip to content

COBOL engine: EXEC SQL INCLUDE inside a record is not expanded by record_layout, silently #4278

Closed

Description

@squid-protocol

Found by the engine-vs-translator cross-check in #4273 (evidence and scripts there). The translator's byte-proven layout is the reference.

record_layout expands COPY but not EXEC SQL INCLUDE member END-EXEC. Fields after the INCLUDE sit too early with no gap reported: COTRTLIC fields after line 304 sit 817 bytes early; the GenApp DFHCOMMAREA size comes back unknown.

Done when: SQL INCLUDE members are expanded like COPY, and an unexpandable member is reported as a gap (like a missing copybook) instead of shifting fields.

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    priority: high
    on Oct 3, 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: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions