<?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: How to see value in macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565573#M158816</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Sorry previous something happened&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then show the entire &lt;STRONG&gt;log&lt;/STRONG&gt; of what happens when you run your code.&lt;/P&gt;
&lt;P&gt;I believe that we have asked for your do provide LOG results in the past. Again,&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 14:51:59 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-06-12T14:51:59Z</dc:date>
    <item>
      <title>How to see value in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565499#M158790</link>
      <description>%let count=6;&lt;BR /&gt;Proc SQL Noprint;&lt;BR /&gt;Select distinct (age) into:A1-:A%left(&amp;amp;count) from sashelp.class;&lt;BR /&gt;Quit;&lt;BR /&gt;%put &amp;amp;A1 &amp;amp;&amp;amp;A&amp;amp;count;&lt;BR /&gt;How to see the value is assigned or not in last macro variable&lt;BR /&gt;&amp;amp;A1--------- it is showing some value&lt;BR /&gt;&amp;amp;&amp;amp;A&amp;amp;count------it is not</description>
      <pubDate>Wed, 12 Jun 2019 10:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565499#M158790</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-06-12T10:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565502#M158793</link>
      <description>&lt;P&gt;It IS showing, see this log of your code:&lt;/P&gt;
&lt;PRE&gt;24         %let count=6;
25         Proc SQL Noprint;
26         Select distinct (age) into:A1-:A%left(&amp;amp;count) from sashelp.class;
27         Quit;
NOTE: PROZEDUR SQL used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      

28         %put &amp;amp;A1 &amp;amp;&amp;amp;A&amp;amp;count;
11 16
&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jun 2019 10:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565502#M158793</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-12T10:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565511#M158795</link>
      <description>Sorry previous something happened&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jun 2019 11:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565511#M158795</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-06-12T11:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565561#M158812</link>
      <description>&lt;P&gt;The INTO clause only creates the macro variables that it needs.&amp;nbsp; So if the query result had less than 6 observations then less than 6 macro variables will be written.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 13:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565561#M158812</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-12T13:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565572#M158815</link>
      <description>&lt;P&gt;Why are you setting COUNT before you run the query?&amp;nbsp; Why do you have the %LEFT() call?&amp;nbsp; Does you value of COUNT have leading spaces? Why did you put leading spaces into the macro variable COUNT?&amp;nbsp; Also why are you only calling %LEFT() in one of the two places you use count?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS can count for you. No need to count in advance or set an upper limit on the number of macro variables to create.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
  select distinct (age) into :A1- from sashelp.class;
%let count=&amp;amp;sqlobs;
quit;
%put &amp;amp;=count &amp;amp;A1 &amp;amp;&amp;amp;A&amp;amp;count;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jun 2019 14:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565572#M158815</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-12T14:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to see value in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565573#M158816</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Sorry previous something happened&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then show the entire &lt;STRONG&gt;log&lt;/STRONG&gt; of what happens when you run your code.&lt;/P&gt;
&lt;P&gt;I believe that we have asked for your do provide LOG results in the past. Again,&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 14:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-see-value-in-macro-variable/m-p/565573#M158816</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-12T14:51:59Z</dc:date>
    </item>
  </channel>
</rss>

