| Date: | Wed, 10 Sep 1997 07:38:06 -0400 |
| Reply-To: | "jeff.cummings@nationsbank.com" <jeff.cummings@NATIONSBANK.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU> |
| From: | "jeff.cummings@nationsbank.com" <jeff.cummings@NATIONSBANK.COM> |
| Subject: | Re: Function to count WORDS in SAS |
|---|
Here is a quick and dirty method that I use:
Let STR be your string, then
words=length(compbl(STR))-length(compress(STR))+1 ;
I hope this helps.
Jeff Cummings
NationsBank
|