<?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: Proc Import and Macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-and-Macro/m-p/602414#M174426</link>
    <description>&lt;P&gt;1. Semi Colon is missing at the end of the statement.&lt;/P&gt;&lt;PRE&gt;%let Prev_Date_Ran=0719;&lt;/PRE&gt;&lt;P&gt;2. Replace the singe quotes with double quotes so that the macro variable could resolve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Proc Import
Datafile="V:\Branch\Office\Set_Up_&amp;amp;Prev_Date_Ran.xls";
Out=Work.RAW_All_Users_Previous_Run
DBMS=XLS
replace;
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Nov 2019 15:00:52 GMT</pubDate>
    <dc:creator>r_behata</dc:creator>
    <dc:date>2019-11-07T15:00:52Z</dc:date>
    <item>
      <title>Proc Import and Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-and-Macro/m-p/602408#M174423</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a macro and a proc import but im not too sure the macro is working and the file specified can't be found, is there anything wrong with what I have done please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let Prev_Date_Ran=0719&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Import&lt;BR /&gt;Datafile='V:\Branch\Office\Set_Up_&amp;amp;Prev_Date_Ran.xls'&lt;BR /&gt;Out=Work.RAW_All_Users_Previous_Run&lt;BR /&gt;DBMS=XLS &lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 14:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-and-Macro/m-p/602408#M174423</guid>
      <dc:creator>KC_16</dc:creator>
      <dc:date>2019-11-07T14:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import and Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-and-Macro/m-p/602414#M174426</link>
      <description>&lt;P&gt;1. Semi Colon is missing at the end of the statement.&lt;/P&gt;&lt;PRE&gt;%let Prev_Date_Ran=0719;&lt;/PRE&gt;&lt;P&gt;2. Replace the singe quotes with double quotes so that the macro variable could resolve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Proc Import
Datafile="V:\Branch\Office\Set_Up_&amp;amp;Prev_Date_Ran.xls";
Out=Work.RAW_All_Users_Previous_Run
DBMS=XLS
replace;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Nov 2019 15:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-and-Macro/m-p/602414#M174426</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-11-07T15:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import and Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-and-Macro/m-p/602521#M174461</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc Import
Datafile="V:\Branch\Office\Set_Up_&amp;amp;Prev_Date_Ran&lt;FONT color="#ff00ff" size="5"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt;.xls";
Out=Work.RAW_All_Users_Previous_Run
DBMS=XLS
replace;
run;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Also needs one additional period between the macro variable and the file extention. The first period will be used by the macro processor to concatenate following text.&lt;/P&gt;
&lt;P&gt;If you run&lt;/P&gt;
&lt;PRE&gt;%put "V:\Branch\Office\Set_Up_&amp;amp;Prev_Date_Ran.xls";
&lt;/PRE&gt;
&lt;P&gt;The result in the log is:&lt;/P&gt;
&lt;PRE&gt;"V:\Branch\Office\Set_Up_0719xls"
&lt;/PRE&gt;
&lt;P&gt;demonstrating that the period gets "eaten" by the macro processor.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 17:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-and-Macro/m-p/602521#M174461</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-07T17:55:02Z</dc:date>
    </item>
  </channel>
</rss>

