LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 1997, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page