HYPER-ADD-INDEX

Adds a specified index to an existing hyper file.

Command class

TCL-I command.

Syntax

HYPER-ADD-INDEX hyper-file-name index-name

Syntax elements

hyper-file-name The file-specifier of the hyper file.

index-name The name of the index.

Operation

The HYPER-ADD-INDEX command scans all hyper sections to ensure that they have a matching index definition (otherwise the command fails), and then adds the index name to the hyper file definition item (H-pointer).

For example, if a hyper file named STAFF had two existing data sections named CURRENT.STAFF and RETIRED.STAFF both with an index named SURNAME, then HYPER-ADD-INDEX can be used to add the index SURNAME to STAFF.