<?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 Macro- creating a table name with two macro variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-creating-a-table-name-with-two-macro-variables/m-p/254554#M268856</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the first part of a macro I’m trying to create. However I get an error trying to run the&amp;nbsp;&amp;amp;a._&amp;amp;b part i.e. create a table in WORK. Can someone let me know what is going on? What am I missing?&amp;nbsp;I’ve never created SAS macros before so this all new to me.&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; xyz(a,b);&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CREATE TABLE &amp;amp;a._&amp;amp;b AS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SELECT DISTINCT t1.&amp;amp;b,&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2016 18:12:32 GMT</pubDate>
    <dc:creator>antzlck1</dc:creator>
    <dc:date>2016-03-04T18:12:32Z</dc:date>
    <item>
      <title>Macro- creating a table name with two macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-creating-a-table-name-with-two-macro-variables/m-p/254554#M268856</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the first part of a macro I’m trying to create. However I get an error trying to run the&amp;nbsp;&amp;amp;a._&amp;amp;b part i.e. create a table in WORK. Can someone let me know what is going on? What am I missing?&amp;nbsp;I’ve never created SAS macros before so this all new to me.&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; xyz(a,b);&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CREATE TABLE &amp;amp;a._&amp;amp;b AS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SELECT DISTINCT t1.&amp;amp;b,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 18:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-creating-a-table-name-with-two-macro-variables/m-p/254554#M268856</guid>
      <dc:creator>antzlck1</dc:creator>
      <dc:date>2016-03-04T18:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro- creating a table name with two macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-creating-a-table-name-with-two-macro-variables/m-p/254563#M268857</link>
      <description>&lt;P&gt;Apologies.&amp;nbsp; I've solved this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 18:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-creating-a-table-name-with-two-macro-variables/m-p/254563#M268857</guid>
      <dc:creator>antzlck1</dc:creator>
      <dc:date>2016-03-04T18:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro- creating a table name with two macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-creating-a-table-name-with-two-macro-variables/m-p/254606#M268858</link>
      <description>&lt;P&gt;Perhaps post the solution, but please mark it solved as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 20:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-creating-a-table-name-with-two-macro-variables/m-p/254606#M268858</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-04T20:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro- creating a table name with two macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-creating-a-table-name-with-two-macro-variables/m-p/254691#M268859</link>
      <description>I guess that the solution is to have double periods after the &amp;amp;a. A single period is being eated by the macro variable resolution.</description>
      <pubDate>Sat, 05 Mar 2016 07:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-creating-a-table-name-with-two-macro-variables/m-p/254691#M268859</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-05T07:12:43Z</dc:date>
    </item>
  </channel>
</rss>

