| 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
|