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 (July 1997, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 30 Jul 1997 18:23:22 GMT
Reply-To:   Mark Smith <Mark.Smith@DAL.CA>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Mark Smith <Mark.Smith@DAL.CA>
Organization:   Dalhousie University
Subject:   macro question (easy I hope)
Content-Type:   Text/Plain; charset=US-ASCII

Is there a way in SAS to return a value from a macro. What I want to write is something like:

x = %recode(var);

and have the macro return a recoded value to x.

At the moment I am doing it as follows:

%recode(var); x=some_temp_var;

where some_temp_var is a datastep variable created in the macro simply for the purpose of passing a value back. Bit kludgy to say the least.

Cheers, and many thanks.

-- Mark


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