Date: Tue, 30 Sep 2008 08:54:22 -0700
Reply-To: Akshaya <akshaya.nathilvar@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Akshaya <akshaya.nathilvar@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Total count
Content-Type: text/plain; charset=ISO-8859-1
One of the possible solutions:
Data test2;
set test1;
count=0; pos=0;
do until(word='');
pos+1;
word=scan(abc,pos);
if word^='' then count+1;
end;
drop pos word;
Run;
Thanks!
Akshaya
|