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 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: sas-l@uga.edu
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


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