Indexed file
From Wikipedia, the free encyclopedia
An indexed file is a computer file with an index that allows random access to any record given its key, data which identifies a record within a file..[1]
Many implementations of indexed files allow a file to have multiple indices. The first or only index, the primary index, contains the primary key. If other secondary indices are present, they contain alternate keys.[2][3] The primary key must uniquely identify a record. If more than one index is present the other ones are called alternate indexes. The indexes are created with the file and maintained by the system.
IBM supports indexed files with the Indexed Sequential Access Method (ISAM) on OS/360 and successors. IBM virtual storage operating systems added VSAM, which supports indexed files as Key Sequenced Data Sets (KSDS), with more options. Support for indexed files is built into COBOL[4] and PL/I.[5] Other languages with more limited I/O facilities such as C support indexed files through add-on packages in a runtime library such as C-ISAM.[6] Some of Digital's operating systems, such as OpenVMS, support indexed file I/O using the Record Management Services.[3]
In recent systems, relational databases are often used in place of indexed files.