<?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: Questions about getting file names by FILENAME statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399348#M96720</link>
    <description>&lt;P&gt;Double the single quote:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename names pipe 'dir "C:\user''name\folder\" /b';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that's two single quotes between user and name.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 21:57:21 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2017-09-27T21:57:21Z</dc:date>
    <item>
      <title>Questions about getting file names by FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399306#M96706</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the filenames in a folder using filename statement but what if there is a single quote in my folder name?&lt;/P&gt;&lt;P&gt;For example, the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename names pipe 'dir "C:\user'name\folder\" /b';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will cause an error because there is a ' (single quote) in the pathway (user'name). I don't want to change the pathway. Could anyone teach me how to make it work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 19:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399306#M96706</guid>
      <dc:creator>ACQ32d</dc:creator>
      <dc:date>2017-09-27T19:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about getting file names by FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399309#M96708</link>
      <description>&lt;P&gt;Get rid of that stupid quote three days before yesterday. Such characters have no place in path names, as they only cause unnecessary work.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 19:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399309#M96708</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-27T19:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about getting file names by FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399348#M96720</link>
      <description>&lt;P&gt;Double the single quote:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename names pipe 'dir "C:\user''name\folder\" /b';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that's two single quotes between user and name.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 21:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399348#M96720</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-09-27T21:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about getting file names by FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399514#M96773</link>
      <description>&lt;PRE&gt;


filename names pipe dir %sysfunc(quote("C:\user'name\folder\" /b));

&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Sep 2017 14:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399514#M96773</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-09-28T14:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about getting file names by FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399515#M96774</link>
      <description>&lt;PRE&gt;

filename names pipe  %sysfunc(quote(dir "C:\user'name\folder\" /b));

&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Sep 2017 15:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-getting-file-names-by-FILENAME-statement/m-p/399515#M96774</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-09-28T15:05:02Z</dc:date>
    </item>
  </channel>
</rss>

