<?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 Can I use Macro in the table name? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98200#M257877</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 am trying to use a macro in the table name but its not recognizing. Am I doing anything wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data test;&lt;/P&gt;&lt;P&gt;Set acc_&amp;amp;max_acc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max_acc is macro with value 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2013 09:44:19 GMT</pubDate>
    <dc:creator>sachin01663</dc:creator>
    <dc:date>2013-09-30T09:44:19Z</dc:date>
    <item>
      <title>Can I use Macro in the table name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98200#M257877</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 am trying to use a macro in the table name but its not recognizing. Am I doing anything wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data test;&lt;/P&gt;&lt;P&gt;Set acc_&amp;amp;max_acc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max_acc is macro with value 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 09:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98200#M257877</guid>
      <dc:creator>sachin01663</dc:creator>
      <dc:date>2013-09-30T09:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use Macro in the table name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98201#M257878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know what error you are getting .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess That variable containing leading blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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>Mon, 30 Sep 2013 09:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98201#M257878</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-09-30T09:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use Macro in the table name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98202#M257879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are right Sanjeev. I am getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the macro variable "MAX_ACC".&lt;/P&gt;&lt;P&gt;392&amp;nbsp;&amp;nbsp; acc_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&lt;/P&gt;&lt;P&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; --&lt;/P&gt;&lt;P&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; 22&lt;/P&gt;&lt;P&gt;ERROR: File WORK.ACC_.DATA does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some leading blanks before 12 so its not recognizing table name - its reading table name till Acc_. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I used SQL INTO: to create this macro and its numeric - so how come there are leading blanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sachin &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 10:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98202#M257879</guid>
      <dc:creator>sachin01663</dc:creator>
      <dc:date>2013-09-30T10:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use Macro in the table name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98203#M257880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,My Guess is Correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro variable containing Leading balnks&lt;/P&gt;&lt;P&gt;here is the solution to avoid these type of error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;Data&lt;/STRONG&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; acc&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;(trim(&amp;amp;max_acc));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.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: 14.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: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.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: 14.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>Mon, 30 Sep 2013 10:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98203#M257880</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-09-30T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use Macro in the table name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98204#M257881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically Macro concept is Text Substitution.So what ever the value you going to store in a macro variable ,it always stores as a text only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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>Mon, 30 Sep 2013 10:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98204#M257881</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-09-30T10:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use Macro in the table name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98205#M257882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sanjeev. Very Helpful. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 10:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-Macro-in-the-table-name/m-p/98205#M257882</guid>
      <dc:creator>sachin01663</dc:creator>
      <dc:date>2013-09-30T10:27:58Z</dc:date>
    </item>
  </channel>
</rss>

