Date: Thu, 10 Sep 2009 07:55:47 -0700
Reply-To: inason <iharun17@GOOGLEMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: inason <iharun17@GOOGLEMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Number of Numbers
Content-Type: text/plain; charset=ISO-8859-1
On Sep 10, 1:22 pm, misschupito <cristinap...@gmail.com> wrote:
> Hi! i need help... is there a function that would let me Know the
> number of numbers in a string?
>
> Thanks
Not sure if tehre is an easier way but this would work
data test;
char='abdj 34 fffk 45fg';
num_of_digits=length(compress
(char,'0''1''2''3''4''5''6''7''8''9','k');
run;
|