Keyed

From BR Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Keyed access to files allows access according to a specified key (or part of the file).

This method causes the file pointer to locate the record you want starting with the one containing a specified value in the data field. If the system finds that there is no record with such a value, it goes on to access the first record containing a data value higher than that which was entered.

The keywords "SEQUENTIAL", "RELATIVE", and "KEYED" are optional parameters for Open Internal statements, that specify the method of access. The default is SEQUENTIAL access, which means that the file will be read one at a time, in order, from start to finish.

See also