Date: Fri, 15 Jan 2010 05:03:32 -0800
Reply-To: "Eli Y. Kling" <eli.kling@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Eli Y. Kling" <eli.kling@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Why I cann't use %local like this?
Content-Type: text/plain; charset=ISO-8859-1
You were almost there. Logal and Global do not actually create the
macro variable. you will see it once you have a assigned it a value:
%macro t1;
a
%mend;
%macro t2;
%local %t1;
%let %t1=xxx; *<-----;
%put _local_;
%mend;
options mprint mlogic symbolgen;
%t2;
<<< Ahhh - wonderful are the ways of sas >>>
|