You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
file_control: a bare LINE SEQUENTIAL (no ORGANIZATION keyword) is recorded as SEQUENTIAL #3898
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.
Activity
#3898: a bare LINE SEQUENTIAL is LINE SEQUENTIAL; defects found by re…