LIST.INDEX

Top  Previous  Next

 

The LIST.INDEX command reports details of one or more alternate key indices.

 

 

Format

 

LIST.INDEX filename  field(s) {STATISTICS}  {DETAIL}

 

 

The LIST.INDEX command displays information about alternate key indices for the named field(s). The keyword ALL can be used to report all indices on the file.

 

The basic report appears as below.

 

Alternate key indices for file ORDERS

Number of indices = 1

 

Index name...... En Type Nulls S/M Fmt Field/Expression

DATE              Y  D    Yes   S   R  17

 

The columns following the index name show:

EnY if the index is enabled (built and active). N if it requires building.
TypeA, C, D, I or S corresponding to the dictionary entry type use to define the index.
NullsYes or No depending whether records with null values of the indexed field are included in the index.
S/MS or M corresponding to the single/multi-valued nature of the indexed data.
FmtL or R corresponding to left or right alignment of the indexed data.
Field/ExpressionThe field number or evaluated expression.

 

Use of the STATISTICS (short form STATS) keyword extends the report to include statistical information about the index showing the number of index entries (different field values) and the minimum, average and maximum number of records per index entry.

 

Use of the DETAIL keyword shows the statistics and also shows up to 63 characters of each key value and the number of records for that key value.

 

 

See also:

BUILD.INDEX, CREATE.INDEX, DELETE.INDEX, MAKE.INDEX