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 (November 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 9 Nov 1998 10:19:36 -0800
Reply-To:   "Berryhill, Timothy" <TWB2@PGE.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   "Berryhill, Timothy" <TWB2@PGE.COM>
Subject:   Re: Can do this by 'one step' ?
Comments:   To: Chenglong Han <hanc@CALIB.COM>
Content-Type:   text/plain

No, you cannot. However, someone familiar with the macro language could either modify macro MABC to accept a list rather than a single variable, or write a new maco to repeatedly call MABC.

Depending on what MABC does, these approaches may be equally effective. However, if MABC modifies a single variable in a dataset with many observations, it would save a great deal of I/O to modify the macro to change several variables. Depending on the costs of CPU and programmer time, it may be less expensive to simply pass the data many times. Tim Berryhill - Contract Programmer and General Wizard TWB2@PGE.COM or http://www.aartwolf.com/twb.html Frequently at Pacific Gas & Electric Co., San Francisco The correlation coefficient between their views and my postings is slightly less than 0 > ---------- > From: Chenglong Han[SMTP:hanc@CALIB.COM] > Reply To: Chenglong Han > Sent: Friday, November 06, 1998 10:07 AM > To: SAS-L@UGA.CC.UGA.EDU > Subject: Can do this by 'one step' ? > > Hi All: > > I want to invoke a sas macro, for example, MABC, for multiple times. Can I > do this just by invoking once ? For example, > %MACRO MABC ( VAR); > ....... > %MEND; > > Instead of doing this by > %MABC ( X1); > %MABC (X2); > ....... > %MABC (Xn); > > Can I do this by some way like > %MABC (X1-XN); > > Thanks. > > Chenglong Han >


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