Date: Fri, 6 Sep 1996 20:56:23 -0700
Reply-To: Karsten Self <kmself@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Karsten Self <kmself@IX.NETCOM.COM>
Subject: Re: How to perform a macro call in a datastep?
Depending on what 'my_Macro' is, either the method you used, or an alternative:
...
call execute( my_macro( a, b, c ));
...
might do the trick. If your macro consists of data step functions, you can
reference it directly within the data step. If it consists of a complete
invocation of one or more data steps or other SAS PROCs, use the call
execute routine (documented either in 'SAS Reference: Language' or the 6.07
or 6.08 'Changes & Enhancements' manual.
At 01:31 PM 9/6/96 -0400, you wrote:
>Hi,
>
>I have a dataset AA and it has three variables a, b, and c.
>I need to do something like the following:
>
>Data temp;
> set AA;
> %my_Macro(a,b,c);
>run;
>
>Essentially, I need to loop through the dataset and use the values of a, b, and
>c to call the macro my_macro many times. Any comment? Thank you.
>
>
----------------------------------------
Karsten Self / kmself@ix.netcom.com
What part of gestalt don't you understand?
|