Keyed: Difference between revisions
Jump to navigation
Jump to search
(Created page with "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 o...") |
No edit summary |
||
Line 2: | Line 2: | ||
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. | 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]] and [[Open External]] 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 | See also | ||
*[[Open Internal]] | *[[Open Internal]] | ||
*[[Open External]] | |||
*[[Chapter 16]] of the BR Tutorial | *[[Chapter 16]] of the BR Tutorial | ||
<noinclude> | <noinclude> | ||
[[Category:Definitions]] | [[Category:Definitions]] | ||
[[Category:All Parameters]] | |||
</noinclude> | </noinclude> |
Revision as of 15:56, 6 August 2013
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 and Open External 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
- Open Internal
- Open External
- Chapter 16 of the BR Tutorial