Date: Mon, 8 Sep 1997 21:54:00 -0700
Reply-To: Greg Bryant <gbryant@SLIPNET.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Greg Bryant <gbryant@SLIPNET.COM>
Organization: Slip.Net (http://www.slip.net)
Subject: Re: Function to count WORDS in SAS
Content-Type: text/plain; charset=us-ascii
Have some fun Bruce, write the code yourself. It's a great way to experiment
with SAS macro calls in a DATA STEP, if you choose.
Bruce Goodman wrote:
> Quick question. Is there a function or macro which will count the
> number of words in a string??? For example, SCAN(var,n) will return me the
> n'th word, but is there a function that will tell me how many words were
> actually found???
> Bruce Goodman......BEGOODMAN@HOTMAIL.COM