> Hi friends,
> Is there any SAS function that return the number of words in a string ?
> Many thanks.
Nope. You'll have to code it by hand.
str="aa bb cc dd ee ff";
do until(scan(str,i," ")=' ');