LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (September 1996, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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?
Comments: To: mdg1@LEHIGH.EDU

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?


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