Date: Wed, 5 Dec 2001 10:19:47 -0500
Reply-To: Paige Miller <paige.miller@KODAK.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Paige Miller <paige.miller@KODAK.COM>
Organization: Eastman Kodak Company
Subject: Re: how to assign a value to a Macro variable in SAS/IML..?
Content-Type: text/plain; charset=us-ascii
There seems to be no reason at all to have a macro variable here.
Instead of using macros, you could just use the command.
Perhaps your example is really more complicated than what you show, and
perhaps there really is a reason to use macros with IML. I avoid using
macros with IML because I don't usually see a reason to use them. IML
has enough language constructs (IF, WHILE, DO etc) so that macros are
Also, call symput does not work in IML.
> hi all,
> please help me out.
> how can i assign a value of numeric variable to a Mactro variable
> in SAS/IML..?
> my codes are as follows.
> proc iml;
> call symput('please','num');
> print "&please ";
> The output is num.
> what should i do to get output showing 3 without typing %let please=3..?
Eastman Kodak Company
"It's nothing until I call it!" -- Bill Klem, NL Umpire
"When you get the choice to sit it out or dance,
I hope you dance" -- Lee Ann Womack