Gerhard Hellriegel wrote:
> %macro double(x);
> %let res=%eval(&x*2);
I think that last semicolon should not be there.
> %let test=%double(8);
> But be careful with the usage:
> data a;
> set sashelp.class;
> *double_age=%double(age); /* this will not work */
> put quad_age;
> On Thu, 23 Nov 2006 09:47:17 -0500, Minze Su <slhappyls@GMAIL.COM> wrote:
> >Dear all:
> > I think in SAS a macro can work as a functions, but how can it give back
> >value as other programming languages do.