<?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 Import filename from the local directory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447101#M112252</link>
    <description>&lt;P&gt;i want to call the fill name from the local directory. my file name will be month.xlsx. month name will be to the current month filename.&lt;/P&gt;&lt;P&gt;How can i include in the proc import the dynamic filename.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2018 14:18:37 GMT</pubDate>
    <dc:creator>radha009</dc:creator>
    <dc:date>2018-03-20T14:18:37Z</dc:date>
    <item>
      <title>Import filename from the local directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447101#M112252</link>
      <description>&lt;P&gt;i want to call the fill name from the local directory. my file name will be month.xlsx. month name will be to the current month filename.&lt;/P&gt;&lt;P&gt;How can i include in the proc import the dynamic filename.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 14:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447101#M112252</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2018-03-20T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Import filename from the local directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447102#M112253</link>
      <description>&lt;P&gt;If sas is not running locally, you can't access local files.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 14:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447102#M112253</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-03-20T14:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import filename from the local directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447137#M112258</link>
      <description>&lt;P&gt;my sas is running locally. i have full path in the Proc import data file. i have to change every month my script to the change the file name to generate a reprot.i am looking something that look for the filename from the folder.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 14:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447137#M112258</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2018-03-20T14:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import filename from the local directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447144#M112260</link>
      <description>&lt;P&gt;Are you using display manager or enterprise guide? With EG you could add a prompt allowing you to select the file to import. The name can be computed if rules exist. If you just want the latest file in a folder, using cmd/powershell to get the filename is recommended, because, compared to a full-implementation in sas, less code is required. If you want / have to do it in sas have a look at the functions dopen, dnum, dread, fopen, finfo ...&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 14:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447144#M112260</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-03-20T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import filename from the local directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447152#M112264</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/192083"&gt;@radha009&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;i want to call the fill name from the local directory. my file name will be month.xlsx. month name will be to the current month filename.&lt;/P&gt;
&lt;P&gt;How can i include in the proc import the dynamic filename.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So if you ran it now would you expect to find February.xlsx or March.xlsx&lt;/P&gt;
&lt;P&gt;The easiest way seems to use a macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let month = %sysfunc(today(), monname20.);
%put &amp;amp;month.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 15:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-filename-from-the-local-directory/m-p/447152#M112264</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-20T15:07:45Z</dc:date>
    </item>
  </channel>
</rss>

