<?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 file name with a dash in SAS macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/file-name-with-a-dash-in-SAS-macro/m-p/231646#M42165</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;i'm trying to import several tables&amp;nbsp;from external Access database into SAS. the access files names are like 'A2014' , 'A2015', and the tables in each file have names 'A2014-01' , 'A2014-02' ...&lt;/P&gt;
&lt;P&gt;my code is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro loadin(year=, month=) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; libname temp PCFILES path="C:\trial\A&amp;amp;year..accdb";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; select a , &amp;nbsp;b, &amp;nbsp;c&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;from temp."A&amp;amp;year.-&amp;amp;month"n ;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;%loadin (year=2014, month=01) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so i succeeded in assigning the libname, linking the external access file with SAS. but in the proc sql step, error msg showed up , saying A2014-01 is not a valid SAS name. how do I edit my code to get around problem ??&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Darren&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2015 15:37:33 GMT</pubDate>
    <dc:creator>bunnycao</dc:creator>
    <dc:date>2015-10-26T15:37:33Z</dc:date>
    <item>
      <title>file name with a dash in SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/file-name-with-a-dash-in-SAS-macro/m-p/231646#M42165</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;i'm trying to import several tables&amp;nbsp;from external Access database into SAS. the access files names are like 'A2014' , 'A2015', and the tables in each file have names 'A2014-01' , 'A2014-02' ...&lt;/P&gt;
&lt;P&gt;my code is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro loadin(year=, month=) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; libname temp PCFILES path="C:\trial\A&amp;amp;year..accdb";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; select a , &amp;nbsp;b, &amp;nbsp;c&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;from temp."A&amp;amp;year.-&amp;amp;month"n ;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;%loadin (year=2014, month=01) ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so i succeeded in assigning the libname, linking the external access file with SAS. but in the proc sql step, error msg showed up , saying A2014-01 is not a valid SAS name. how do I edit my code to get around problem ??&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 15:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/file-name-with-a-dash-in-SAS-macro/m-p/231646#M42165</guid>
      <dc:creator>bunnycao</dc:creator>
      <dc:date>2015-10-26T15:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: file name with a dash in SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/file-name-with-a-dash-in-SAS-macro/m-p/231651#M42167</link>
      <description>&lt;P&gt;Use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SQL DQUOTE=ANSI;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 15:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/file-name-with-a-dash-in-SAS-macro/m-p/231651#M42167</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-26T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: file name with a dash in SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/file-name-with-a-dash-in-SAS-macro/m-p/280332#M56632</link>
      <description>&lt;P&gt;Hi I got the same problem of dash in SAS macro too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you solve the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 06:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/file-name-with-a-dash-in-SAS-macro/m-p/280332#M56632</guid>
      <dc:creator>SummerLee</dc:creator>
      <dc:date>2016-06-27T06:24:11Z</dc:date>
    </item>
  </channel>
</rss>

