|
|||
|
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 > |
|
|
||||
|
||||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|