Is there a way to do some code involving some soft bounds on a table, and not a hard-coded value?
Say:
Where TMAX would return 15 in this case, but would return whatever the occurs is stated for.
Say:
Code:
04 TABLE-1 OCCURS 15 TIMES INDEXED BY T1-INDEX.
PERFORM VARYING T1-INDEX FROM 1 BY 1
UNTIL T1-INDEX > FUNCTION TMAX(TABLE-1).
Where TMAX would return 15 in this case, but would return whatever the occurs is stated for.