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 (February 2006, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 10 Feb 2006 08:13:49 -0500
Reply-To:     Hadassa Brunschwig <dassybr@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Hadassa Brunschwig <dassybr@HOTMAIL.COM>
Subject:      Numeric macro variable

Hello fellow users!

I am writing a macro to which I submit a string of numbers, e.g.:

(1,145,64,29)

For other purposes, using proc sql within the macro, I read this string into another macro variable in order to obtain the following:

1:145:64:29

I know that both of the variables have character type. I would like, however to count the numbers in the string, in this case 4.

Any comments on how to do that?

Thanks a lot.

Hadassa


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