Skip to content

file_control: a bare LINE SEQUENTIAL (no ORGANIZATION keyword) is recorded as SEQUENTIAL #3898

Closed

Description

@squid-protocol

Found by the #3833 porting-rules work (PR #3895). The LINE SEQUENTIAL porting rule depends on this fact.

What happens: ORGANIZATION is optional in a SELECT. With it (ORGANIZATION [IS] LINE SEQUENTIAL), gitgalaxy/core/file_control.py::_one_select records LINE SEQUENTIAL correctly. Without it (SELECT B ASSIGN TO 'b.txt' LINE SEQUENTIAL.), the bare-organization-word branch (elif t in _ORGS and row["organization"] is None ...) is only reached at SEQUENTIAL, and the preceding LINE is dropped. The file is then recorded as SEQUENTIAL.

Impact:

  • A Micro Focus / GnuCOBOL / Windows program written in the short form gets the RECFM=FB porting rule (records back to back, no separators) instead of the LINE SEQUENTIAL rule (one record per line), so the port reads and writes the file wrongly.
  • severity: fact, side: engine. It belongs in the field-testing defect log (tests/cobol_mainframe/field_testing.json) with the fix.

Fix: in the bare-word branch, SEQUENTIAL preceded by LINE is LINE SEQUENTIAL. Also check RECORD SEQUENTIAL (a Micro Focus synonym for SEQUENTIAL). Test both forms. Golden masters may move for any corpus program using the short form, so list every moved value.

🤖 Generated with Claude Code

Activity

  1. added a commit that references this issue on Sep 27, 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

    scope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions