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 (January 2010, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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?
Comments:   To: sas-l@uga.edu
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 >>>


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