# Defining an Index

Select C Index Maintenance.

We need to build some indexes to use with the "vidcust" file. Indexes will allow us to rapidly find any record in our "vidcust" file based on sort definition.

Choose "vidcust".

We will be using Automatic Indexes in the Video Store application. This means that they "automatically" update themselves every time you add, delete or modify a record. If an automatic index is changed by one of these actions, it will rebuild itself accordingly. (The opposite of this, Demand Indexes, will be discussed later.)

Select 1 - Automatic Index.

Choose A.

The following screen will appear:

Enter the following fields and comment for this index:

Press ESC to record. Return to the main menu.