Date: Fri, 30 Sep 2005 06:59:02 -0700
Reply-To: Toby <tobydunn@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Toby <tobydunn@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Problem with Macro
In-Reply-To: <1128087075.842675.172650@o13g2000cwo.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
ranjan,
I think you are using call symput and a data step to create you
variables, if that is the case then you will need to also add _n_ to
your macro vars name that you are creating other wise you will just
keep over writing the value for that macro var until you hit the last
observation in yoru data set.
But I am just postulating as I would have to see your code. So if you
could writ eback to the list with your code and possibly some sample
data and what you are getting and what you would like to get I am sure
some one on here can help you.
Toby Dunn
Dear All
I have made a macro with arguments on first name and surname(2 data
fields passed as &n).
In the macro i create a variable std_&n =somevalues.
But always only that std_&n variable is created which is the last
argument.
Can anyone tell me how can i resolve the problem without merging .
Thanking in advance
|