<?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: check the code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233032#M268134</link>
    <description>&lt;P&gt;Duplicate post, please use your other post on the same topic:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/SAS-program-to-write-the-values-of-all-local-variables-to-the/m-p/233026" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/SAS-program-to-write-the-values-of-all-local-variables-to-the/m-p/233026&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2015 10:09:56 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-11-04T10:09:56Z</dc:date>
    <item>
      <title>check the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233025#M268132</link>
      <description>&lt;P&gt;&lt;SPAN&gt;%let test1=30; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%macro test(ds=abs,a=10,b=20); &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data &amp;amp;ds; a=&amp;amp;a; b=&amp;amp;b; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; %put _local_; run; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%mend; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;o&lt;/SPAN&gt;&lt;SPAN&gt;ptions symbolgen mprint; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;%test(ds=abs,a=10,b=20)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i did this to display local variable to the log bot test1=30 is not displayed plz retify my mistake.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 08:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233025#M268132</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-11-04T08:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: check the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233027#M268133</link>
      <description>&lt;P&gt;Hi Teland,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{Code}&lt;/P&gt;
&lt;P&gt;%macro ;&lt;/P&gt;
&lt;P&gt;-----------&lt;/P&gt;
&lt;P&gt;%put _local_;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;If you understand the _local_. Its displays/works only the macro variables which are present inside the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{Code}&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;%let a=10;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;%macro ;&lt;/P&gt;
&lt;P&gt;-----------&lt;/P&gt;
&lt;P&gt;%put _Global_; or %put _user_;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you want to diaplay the macro variables outside the macro which are present (Global macros variables) you need to use _global_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps you if you still dont understand let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 09:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233027#M268133</guid>
      <dc:creator>SJN</dc:creator>
      <dc:date>2015-11-04T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: check the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233032#M268134</link>
      <description>&lt;P&gt;Duplicate post, please use your other post on the same topic:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/SAS-program-to-write-the-values-of-all-local-variables-to-the/m-p/233026" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/SAS-program-to-write-the-values-of-all-local-variables-to-the/m-p/233026&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 10:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233032#M268134</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-11-04T10:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: check the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233072#M268135</link>
      <description>&lt;P&gt;Unfortunately, the change needs to occur in your expectations not in the code itself.&amp;nbsp; This statement appears outside of the macro definition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let test1=30;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, &amp;amp;TEST1 is a global macro variable, and won't appear in the list of %LOCAL macro variables.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 13:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233072#M268135</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-11-04T13:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: check the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233209#M268136</link>
      <description>&lt;P&gt;%let a=10 b=12 c=15;&lt;BR /&gt;%macro test(varlist=a b c test1);&lt;BR /&gt;string=(varlist= a b c test1);&lt;BR /&gt; %do varlist=&amp;amp;a %to test1;&lt;BR /&gt; &lt;BR /&gt; %put _local_ ;&lt;BR /&gt; %end;&lt;BR /&gt; %mend test;&lt;BR /&gt; options symbolgen mprint;&lt;BR /&gt; %test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will this work or retify it!&lt;/P&gt;
&lt;P&gt;i want to display varlist= a b c test1 to the log with their values&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 06:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233209#M268136</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-11-05T06:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: check the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233216#M268137</link>
      <description>&lt;P&gt;Still duplicate, please don't have two posts for the same question.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233216#M268137</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-11-05T09:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: check the code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233217#M268138</link>
      <description>i am sending d code as i am updating it need i ur help to rectify my mistake plz do help&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-the-code/m-p/233217#M268138</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-11-05T09:11:30Z</dc:date>
    </item>
  </channel>
</rss>

