Professional Documents
Culture Documents
contained).
4. A computer program can access records in an indexed sequential file both
sequentially and
directly.
How a program creates an index sequential file?
1. The program writes the new record to the end of the file, divides the records
into equal sized
pages and sorts the records within each page. This process happens each
time a new record is
added to the indexed sequential file.
2. Then the program creates the index file which contains the primary keys and
the
corresponding index of each primary key (index is the pointer which contains
the absolute
memory or disk address of the first record of a data page).
3. When the number of records containing in an indexed sequential file
increases, the number of
pages in the file and therefore the number of indexes also increase. This
makes it necessary
to divide the index also into pages. An index which itself is divided into pages
is called a multilevel
index.