Directives 

DROP INDEX

Drop Key from Keyed File

Format

DROP INDEX {keynumber | keyname$} FROM filename$ [,ERR=stmtref]

Where:

filename$

Name of the file from which the key will be dropped. String expression.

FROM

Mandatory keyword, not case sensitive.

keyname$

Name of the key to drop (if assigned). String expression.

keynumber

Key number (KNO value) to drop.

stmtref

Program line number or statement label to which to transfer control.

Description

The DROP INDEX directive drops keys from a PxPlus Keyed file without having to rebuild the file.

When dropping keys from a file:

See Also

ADD INDEX Add Key to Keyed File
RENAME..INDEX Rename Keys in Keyed File 

Example

drop index 3 from "cstfile"
drop index CustName from "cstfile"