Skip to content

COBOL engine: >>SOURCE FORMAT directives and per-file fixed/free detection with column-72 handling #4264

Closed

Description

@squid-protocol

Problem

The engine has no fixed/free-format detection and does not honour >>SOURCE FORMAT [IS] FREE|FIXED. Column-72 handling is therefore disabled or guessed, so fixed-format text in columns 73-80 and free-format lines running past column 72 are both at risk of being misread.

Evidence (file:line, origin/main)

Impact on a real estate

Estates mix fixed-format legacy members with free-format members (GnuCOBOL / Micro Focus / newer Enterprise COBOL) and switch mid-file with >>SOURCE. Without detection, sequence numbers can leak into names, or code past column 72 is cut.

Acceptance criteria

Out of scope

The free-format data-item/PROGRAM-ID unit bug itself (#4203).

Found during: 2026-10-03 COBOL engine/translator audit

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    core-engine
    legacy-modernization
    priority: high
    on Oct 3, 2026
  2. added
    scope:sweep
    era:1
    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

    core-engineenhancementera:1legacy-modernizationpriority: highscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions