<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: global macro in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93141#M26490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Scott.. i have updated the word in my previous reply..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 11:20:47 GMT</pubDate>
    <dc:creator>yaswanthj</dc:creator>
    <dc:date>2013-09-25T11:20:47Z</dc:date>
    <item>
      <title>global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93136#M26485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am executing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro one (input);&lt;BR /&gt;%two;&lt;BR /&gt;%put the value is &amp;amp;date;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro two;&lt;BR /&gt;data _null_;&lt;BR /&gt;call symput('date','12SEP2008');&lt;BR /&gt;run&lt;BR /&gt;%mend;&lt;BR /&gt;%let date=31DEC2006;&lt;BR /&gt;%one(&amp;amp;date);&lt;/P&gt;&lt;P&gt;%put _user_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unsure why in Global Symbol Table, Date is stored as the one that is local ''12SEP2008', I would expect that Date is stored as 31DEC2006 in the Global Symbol Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 09:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93136#M26485</guid>
      <dc:creator>Siddharth123</dc:creator>
      <dc:date>2013-09-25T09:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93137#M26486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="685022" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro parameters are always local to the macro that defines them.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; So that you already define the macro variable inside the macro..which means local&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;And you are passing the local macro parameter..So that you have a result of local macro variable value ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Yash &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 09:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93137#M26486</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-09-25T09:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93138#M26487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make a macro variable global using the SYPUTX function as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MACRO ONE (INPUT);&lt;/P&gt;&lt;P&gt;%TWO;&lt;/P&gt;&lt;P&gt;%PUT THE VALUE IS &amp;amp;DATE;&lt;/P&gt;&lt;P&gt;%MEND;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MACRO TWO;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt;CALL SYMPUTX('DATE','12SEP2008','G');&lt;/P&gt;&lt;P&gt;RUN&lt;/P&gt;&lt;P&gt;%MEND;&lt;/P&gt;&lt;P&gt;%LET DATE=31DEC2006;&lt;/P&gt;&lt;P&gt;%ONE(&amp;amp;DATE);&lt;/P&gt;&lt;P&gt;%PUT _USER_;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 10:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93138#M26487</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2013-09-25T10:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93139#M26488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&amp;nbsp; you get same result. what ever mentioned in the above..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can try like below you get your result..declaring the second date locally..&lt;/P&gt;&lt;P&gt;%macro one (input);&lt;/P&gt;&lt;P&gt;%two;&lt;/P&gt;&lt;P&gt;%put the value is &amp;amp;date;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro two;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;call symput('date','12SEP2008');&lt;/P&gt;&lt;P&gt;run&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%macro two;&lt;/P&gt;&lt;P&gt;%let date=31DEC2006;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%one(&amp;amp;date);&lt;/P&gt;&lt;P&gt;%put _user_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 10:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93139#M26488</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-09-25T10:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93140#M26489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't addressing the OP's question, I was addressing the fact that you stated you can not make macro variables global, which is incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 10:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93140#M26489</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2013-09-25T10:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93141#M26490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Scott.. i have updated the word in my previous reply..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 11:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93141#M26490</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-09-25T11:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93142#M26491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Siddharth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default 3rd argument for Call symput is "G".So that is the reason even if you create a macro variable with in the macro by using call symput,that will become Global macro variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need to write like this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; one (input);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;two&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; the value is &amp;amp;date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; &lt;STRONG&gt;&lt;EM&gt;two&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;call symput(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple; background: white;"&gt;'date'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple; background: white;"&gt;'12SEP2008'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple; background: white;"&gt;'L'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;run&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; date=31DEC2006;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;one&lt;/EM&gt;&lt;/STRONG&gt;(&amp;amp;date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; _user_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;Hope this make sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;Sanjeev.K&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 13:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93142#M26491</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-09-25T13:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93143#M26492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL SYMPUT does not always create a new macro variable.&amp;nbsp; First, it looks to see if it can find an existing macro variable named DATE.&amp;nbsp; If it can find one (and it does in the GLOBAL symbol table), that's the one that it changes.&amp;nbsp; The same is true for many statements:&amp;nbsp; %LET, %DO for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 13:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93143#M26492</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-09-25T13:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93144#M26493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you define a new macro variable inside of a macro using %LET or CALL SYMPUT then it will be local to the macro and disappear when the macro finishes. But if the macro variable already exists then both %LET and CALL SYMPUT will store the new value into the existing macro variable rather than making a new one.&lt;/P&gt;&lt;P&gt;So you could fix your example by defining the macro variable before making the inner macro call.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%macro one (input);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; %let date=;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; %two; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; %put the value is &amp;amp;date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%mend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Alternatively you could create the macro variable in the GLOBAL symbol table by using %GLOBAL or the 'G' modifier on CALL SYMPUT&lt;STRONG&gt;X&lt;/STRONG&gt;() function call.&amp;nbsp; But if that macro variable already exists in some other macro scope that is active the %GLOBAL statement will cause an error.&amp;nbsp; The CALL SYMPUTX() would work to modify the global value, but the existence of a similarly named macro variable in a local scope would hide the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general it is better to define the macro variables that you want subroutine macros to be able to modify before calling the macro.&amp;nbsp; If you want the subroutine to create a GLOBAL macro variable then use the %GLOBAL statement.&amp;nbsp; Preferably conditionally on a test for the existence of the macro variable already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if not %symexist(date) %then %global date ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 15:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93144#M26493</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-09-25T15:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93145#M26494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a Quick Question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your words,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;If you define a new macro variable inside of a macro using %LET or CALL SYMPUT then it will be local to the macro and disappear when the macro finishes. &lt;/SPAN&gt;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I tried with Bellow Code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;%Macro&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; &lt;STRONG&gt;&lt;EM&gt;Macro1&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;Data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;Call symput(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple; background: white;"&gt;"Mac"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple; background: white;"&gt;"Test"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;Run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;macro1&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: blue; background: white;"&gt;%Put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp;Mac;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; _global_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still Mac listed in Global variables list and even that macro variable resolving outside of macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can i Support my previous comments "&lt;STRONG style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Default 3rd argument for Call symput is "G".So that is the reason even if you create a macro variable with in the macro by using call symput,that will become Global macro variable.&lt;/STRONG&gt;" ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 16:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93145#M26494</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-09-25T16:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93146#M26495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL SYMPUT does not have a third argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give macro1 a parameter and see what happens. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 16:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93146#M26495</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-09-25T16:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93147#M26496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is an example a the strange behavior of CALL SYMPUT when used inside of a macro where the local symbol table is empty.&amp;nbsp; In that special case CALL SYMPUT will create the macro variable in the GLOBAL symbol table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 16:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93147#M26496</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-09-25T16:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93148#M26497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,,&lt;/P&gt;&lt;P&gt;I tried with the same code ,but passed third parameter.(As i said default parameter is "G").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: navy;"&gt;%Macro&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Macro2&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Call symput(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: purple;"&gt;"Mac1"&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: purple;"&gt;"Test","L"&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: navy;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;%&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;macro2&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: blue;"&gt;%Put&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt; &amp;amp;Mac1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: blue;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt; _global_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Now Mac1 not resolving outside of macro and it was not listed in Global macro variable list as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Confused !!!!!!!!!!!!!!!!!!!!!.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;am I doing any thing wrong ???&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Sanjeev.K&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 16:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93148#M26497</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-09-25T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93149#M26498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these four different tests.&amp;nbsp; Notice that in the last one there is a macro variable Y defined for the local symbol table before the CALL SYMPUTX() runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%symdel xxx;&lt;/P&gt;&lt;P&gt;%macro x;&lt;/P&gt;&lt;P&gt; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call symputx('xxx','set by call symputx','l');&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;%mend x;&lt;/P&gt;&lt;P&gt;%x;&lt;/P&gt;&lt;P&gt;%put &amp;amp;xxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%symdel xxx;&lt;/P&gt;&lt;P&gt;%macro x;&lt;/P&gt;&lt;P&gt; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call symputx('xxx','set by call symputx','g');&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;%mend x;&lt;/P&gt;&lt;P&gt;%x;&lt;/P&gt;&lt;P&gt;%put &amp;amp;xxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%symdel xxx;&lt;/P&gt;&lt;P&gt;%macro x;&lt;/P&gt;&lt;P&gt; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call symputx('xxx','set by call symputx');&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;%mend x;&lt;/P&gt;&lt;P&gt;%x;&lt;/P&gt;&lt;P&gt;%put &amp;amp;xxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%symdel xxx;&lt;/P&gt;&lt;P&gt;%macro x;&lt;/P&gt;&lt;P&gt; %let y=1;&lt;/P&gt;&lt;P&gt; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call symputx('xxx','set by call symputx');&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;%mend x;&lt;/P&gt;&lt;P&gt;%x;&lt;/P&gt;&lt;P&gt;%put &amp;amp;xxx;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 16:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93149#M26498</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-09-25T16:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93150#M26499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;kuridisanjeev wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi,,&lt;/P&gt;
&lt;P&gt;I tried with the same code ,but passed third parameter.(As i said default parameter is "G").&lt;/P&gt;
&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="color: navy; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;%Macro&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt; &lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;&lt;EM style="font-family: inherit; font-weight: inherit;"&gt;Macro2&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;Data _null_;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;Call symput(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;"Mac1"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;"Test","L"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;Run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="color: navy; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;%&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;&lt;EM style="font-family: inherit; font-weight: inherit;"&gt;macro2&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;%Put&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt; &amp;amp;Mac1;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt; _global_;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;Now Mac1 not resolving outside of macro and it was not listed in Global macro variable list as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;Confused !!!!!!!!!!!!!!!!!!!!!.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;am I doing any thing wrong ???&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; font-style: inherit;"&gt;Sanjeev.K&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;I don't think you are looking at the SASLOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;25&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #000000; background-color: #ffffff;"&gt;macro2&lt;/EM&gt;&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;NOTE: &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;Line&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; generated by the invoked macro &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"MACRO2"&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;25&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data _null_; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; symput(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"Mac1"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"Test"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"L"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;); &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;Run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;______&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;253&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;MPRINT(MACRO2):&amp;nbsp;&amp;nbsp; Data _null_;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;MPRINT(MACRO2):&amp;nbsp;&amp;nbsp; Call symput(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"Mac1"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"Test"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"L"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;MPRINT(MACRO2):&amp;nbsp;&amp;nbsp; Run;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;ERROR&lt;/SPAN&gt; &lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;253&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;185&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;: The SYMPUT subroutine call has too many &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;arguments.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;errors.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0.00&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0.00&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;WARNING: Apparent symbolic reference MAC1 not &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;resolved.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;26&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;27&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%Put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; &amp;amp;Mac1;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;amp;Mac1&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;28&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 17:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93150#M26499</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-09-25T17:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: global macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93151#M26500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This Discussion is worth reading Regarding macro Global&amp;amp;local variables&amp;nbsp; Thanks all..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 10:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/global-macro/m-p/93151#M26500</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-09-26T10:20:55Z</dc:date>
    </item>
  </channel>
</rss>

