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);
> Instead of doing this by
> %MABC ( X1);
> %MABC (X2);
> %MABC (Xn);
> Can I do this by some way like
> %MABC (X1-XN);
> Chenglong Han