Try OpenEdge Now
skip to main content
Database Administration
Maintaining and Monitoring Your Database : Dumping and Loading : Specialized dump and load techniques : Saving disk space by deactivating indexes : Deactivating indexes from an ABL procedure
 
Deactivating indexes from an ABL procedure
You can also deactivate an index from an ABL procedure. Search through the _Index file to find the index you want to deactivate, then set the _Active field equal to NO. The following example uses this technique:
FIND _Index WHERE _Index-Name = "cust-num".
  IF (_Index._Active) THEN
    _Index._Active = FALSE.
  ELSE IF NOT(_Index._Active) THEN
    MESSAGE "The specified index is Deactivated.".