Previous Page | Next Page

SAS Component Language Dictionary

CLRFLD



Clears the value from variables whose values match a specified value
Category: Control or Field

Syntax
Details
Example
See Also

Syntax

CALL CLRFLD(pattern,variable-1<, . . . ,variable-10>);

pattern

is the character string to match.

Type: Character

variable-1, . . . , variable-10

names up to ten character variables. If the value of a variable in this list matches pattern, then that value is cleared.

Type: Character


Details

Variables in the variable list whose values do not match pattern exactly are not changed. No error occurs if there are no matches.


Example

Clear the value of any variable in the group SYM1 through SYM5 whose value is BLUE:

call clrfld('blue',sym1,sym2,sym3,sym4,sym5);


See Also

SETFLD

Previous Page | Next Page | Top of Page