<?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 question on fileref in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/question-on-fileref/m-p/51923#M14271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-left: 30px;"&gt;Question for the external reference to directory, the following does not work because of the space at "Desktop 2012". How should i correct it when there is a space in the directory name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;filename Saledata 'C:\Users\Jeff\&lt;STRONG&gt;Desktop 2012&lt;/STRONG&gt;\sale.txt';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Elvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2012 19:17:48 GMT</pubDate>
    <dc:creator>telescopic</dc:creator>
    <dc:date>2012-02-10T19:17:48Z</dc:date>
    <item>
      <title>question on fileref</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-on-fileref/m-p/51923#M14271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-left: 30px;"&gt;Question for the external reference to directory, the following does not work because of the space at "Desktop 2012". How should i correct it when there is a space in the directory name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;filename Saledata 'C:\Users\Jeff\&lt;STRONG&gt;Desktop 2012&lt;/STRONG&gt;\sale.txt';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Elvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 19:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-on-fileref/m-p/51923#M14271</guid>
      <dc:creator>telescopic</dc:creator>
      <dc:date>2012-02-10T19:17:48Z</dc:date>
    </item>
    <item>
      <title>question on fileref</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-on-fileref/m-p/51924#M14272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about enclosing it with double rather than single quotes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 19:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-on-fileref/m-p/51924#M14272</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-10T19:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: question on fileref</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-on-fileref/m-p/51925#M14273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally that syntax should work.&amp;nbsp; It is when you try to use the paths with spaces or other special characters in a operating system command that you need the quotes.&amp;nbsp; Embed double quotes inside the outerquotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;filename xx '"c:\My Documents\xx.txt"';&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use dquotes on the outside (for SAS) so that SAS will resolve macro references.&amp;nbsp; In this cause the internal quotes need to be doubled up so that SAS knows they are not the end of the quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;filename xx """c:\My Documents\xx.txt""";&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make it easier to type by using the quote() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;filename xx %sysfunc(quote("c:\My Documents\xx.txt"));&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 19:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-on-fileref/m-p/51925#M14273</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-02-10T19:28:30Z</dc:date>
    </item>
  </channel>
</rss>

