<?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: resolve macro inside quotes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/resolve-macro-inside-quotes/m-p/143000#M28624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To provide a little as to why 2 dots. The Windows naming convention of file.ext uses a . to separate the name and the extension.&lt;/P&gt;&lt;P&gt;The SAS macro language uses the . after a macro variable to combine text. So if file= ABC then &amp;amp;file.ext yields ABCext from the macro processor. The second . is part of the text you want appended so you need to add one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2015 22:00:08 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-01-28T22:00:08Z</dc:date>
    <item>
      <title>resolve macro inside quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/resolve-macro-inside-quotes/m-p/142999#M28623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to import over 10 Excel files into SAS, and they have the same file name other than their serial number, like data1, data2, data3, ... data15. How can I use macro to import them to SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro imp_data();&lt;/P&gt;&lt;P&gt;%do i=1%to 15;&lt;/P&gt;&lt;P&gt;proc import out=data&amp;amp;i datafile = "C:\data\data&amp;amp;i.xls";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%imp_data();&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 20:38:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/resolve-macro-inside-quotes/m-p/142999#M28623</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2015-01-28T20:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: resolve macro inside quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/resolve-macro-inside-quotes/m-p/143000#M28624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To provide a little as to why 2 dots. The Windows naming convention of file.ext uses a . to separate the name and the extension.&lt;/P&gt;&lt;P&gt;The SAS macro language uses the . after a macro variable to combine text. So if file= ABC then &amp;amp;file.ext yields ABCext from the macro processor. The second . is part of the text you want appended so you need to add one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 22:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/resolve-macro-inside-quotes/m-p/143000#M28624</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-28T22:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: resolve macro inside quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/resolve-macro-inside-quotes/m-p/143001#M28625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, Ballard!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 23:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/resolve-macro-inside-quotes/m-p/143001#M28625</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2015-01-28T23:13:09Z</dc:date>
    </item>
  </channel>
</rss>

