| Date: | Sat, 9 Oct 1999 21:56:45 +0200 |
| Reply-To: | "armel.francois" <armel.francois@WANADOO.FR> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "armel.francois" <armel.francois@WANADOO.FR> |
| Organization: | Wanadoo, l'internet avec France Telecom |
| Subject: | Re: Counting the number of words in a string |
|---|
data _null_;
zone = "arar qsdfdfg ddd fdfd";
nbwords = 0;
Do while(scan(zone,nbwords+1) ne "");
nbwords + 1;
end;
put nbwords;
run ;
It's ok with
zone = "";
zone = " fff fsfgfhh ff";
|