Tables

OCCURS and the subscripts that address it, a table whose length is a field, and INDEXED BY with SET. SEARCH and SEARCH ALL look through it, one serially and one as a binary search. The part ends on tables of group items, on resetting a table between runs, and on a table sorted in memory.

055 OCCURS: a fixed table OCCURS n TIMES, a table of numbers, a sum over it, and the memory it takes Open 056 Subscripts counting from 1, (i), an out-of-range subscript, and a search by subscript Open 057 OCCURS DEPENDING ON a table whose length is a field, DEPENDING ON, and the rules that keep it valid Open 058 INDEXED BY and SET an index name, SET, SET UP BY, and an index against a subscript Open 059 SEARCH: a serial search SEARCH ... AT END, a linear lookup, and the entry it finds Open 060 SEARCH ALL a sorted table, ASCENDING KEY, a binary search, and what an unsorted table does to it Open 061 Multi-dimensional tables OCCURS inside OCCURS, two subscripts, and a grid printed row by row Open 062 Tables of group items a table of records, a field of one entry, and OCCURS on a group Open 063 INITIALIZE and resetting a table INITIALIZE, a table between two runs, and LOCAL-STORAGE as the answer Open 064 Sorting a table in memory a bubble sort over a table, one comparison, one swap, and the passes it needs Open

Lessons