Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2009, 10:21 AM
karma
Guest
 
Posts: n/a
Default Re: is there any function in SAS 8.2,

Hi,

Paul Dorfman posted one a while back for counting words prior to v9-
couldn't find it in the archives. I think it was something like this

%macro countW(string) ;
length(&string)-length(compress(&string))+1
%mend countW ;


data _null_ ;
x="count the number of words in this string" ;
y=%countW(x) ;
put _all_ ;
run ;

2009/6/24 Shaik Hymad <hymadsk@gmail.com>:
> Hi all,
>
> is there any function in SAS 8.2, which counts number of words or
> specified charecters in a string..
>
> bye
> hymad
>

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 07:23 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.