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
COBOL record_data: a level-77 item is nested under the 01 group above it #4359
era:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)scope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
mainframe_boundary._cobol_records nests a level-77 item under the group still open above it. A 77 is a noncontiguous elementary item and never subordinate to anything, but the level stack only pops entries with level >= 77. The 77 therefore gets a parent_ordinal, and the item above it becomes its parent, even across a section header.
Examples on main (golden record_layout.json, 366 rows with Level 77 and a non-null Parent Ordinal):
carddemo COACTUPC.cbl:618-620: LIT-ALPHA-SPACES-TO and its neighbours have parent ordinal 411.
GalaxyIR walks the tree to lay records out. A 77 hung under an 01 is placed inside that record's storage instead of standing as its own record. It also inherits the parent's group USAGE NATIONAL / DISPLAY-1.
Acceptance criteria
A level-77 entry is always a root (parent_ordinal None), and nothing nests under it except its 88s.
The answer key's _data_items agrees.
Regression test with a 77 after an open 01 group, in the same section and across a section header.
era:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)scope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
Fix #4359: Ensure COBOL level-77 items are always roots
fix: train -- #4329, #4391, #4392, #4393 (#4398)