LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (October 1999, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sat, 9 Oct 1999 21:56:45 +0200
Reply-To:   "armel.francois" <armel.francois@WANADOO.FR>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "armel.francois" <armel.francois@WANADOO.FR>
Organization:   Wanadoo, l'internet avec France Telecom
Subject:   Re: Counting the number of words in a string

data _null_; zone = "arar qsdfdfg ddd fdfd"; nbwords = 0;

Do while(scan(zone,nbwords+1) ne ""); nbwords + 1; end; put nbwords;

run ;

It's ok with zone = ""; zone = " fff fsfgfhh ff";


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