COBOL 6. Nested table with DEPENDING ON. Used to loop looking for TEMP-ELEM = SPACES to find a free slot. After a change where OCC-VAL is less than the max (say 30 of 80), that SPACES check fails weirdly.
Tried LOW-VALUE, <= SPACES, VALUE SPACES on the field. Feels like the unused occurrences have junk left over from when the table was bigger.
Am I supposed to only walk up to OCC-VAL and never peek past it?