#DELETEALL (delete multiple multi-valued symbol instances) 

Top  Previous  Next

 

#DELETEALL( symbol, expression )

#DELETEALL

Deletes the values from specified instances of a multi-valued user-defined symbol.

symbol

A multi-valued user-defined symbol.

expression

An expression that defines the instances to delete.

The #DELETEALL statement deletes all values from the symbol that meet the expression.

Example:

#DECLARE(%ProcFilesPrefix),MULTI      #!Declare multi-valued symbol

#ADD(%ProcFilesPrefix,'SAV')          #!Add a value

#ADD(%ProcFilesPrefix,'BAK')          #!Add a value

#ADD(%ProcFilesPrefix,'PRE')          #!Add a value

#ADD(%ProcFilesPrefix,'BAK')          #!Add a value

#ADD(%ProcFilesPrefix,'QUE')          #!Add a value

#!%ProcFilesPrefix contains: SAV, BAK, PRE, BAK, QUE

#DELETEALL(%ProcFilesPrefix,'BAK')    #!Delete all BAK instances

#!%ProcFilesPrefix now contains: SAV, PRE, QUE

 

See Also:     #DECLARE ,#ADD