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 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 16 Nov 2009 19:55:33 -0800
Reply-To:     shiva <shiva.saidala@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         shiva <shiva.saidala@GMAIL.COM>
Subject:      Re: Calling a macro like a function
Comments: To:
Content-Type: text/plain; charset=ISO-8859-1

Hi John,

Try this..Hope this helps..

If you have two macro variable then use %eval or %sysevalf to add the two marco variables.

%macro test (x=,y=); data temp; z=(&x +&y); run; proc append data=temp base=one;run; %mend test; %test (x=3,y=1); %test (x=2,y=3); %test(x=12,y=13);

Thanks, shiva

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