<?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: Double and single quotes for infile path..why? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Double-and-single-quotes-for-infile-path-why/m-p/582129#M13785</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should your path contain a macro variable reference that may contain the name of the file name or something like that, you would need to enclose the path in double quotes for the reason macro variable references do not resolves within single quotes in a literal. Macro variables references do resolve within double quotes in a literal.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 15:29:28 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-08-19T15:29:28Z</dc:date>
    <item>
      <title>Double and single quotes for infile path..why?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Double-and-single-quotes-for-infile-path-why/m-p/582127#M13783</link>
      <description>&lt;P&gt;So I notice that for csv files there are double quotes and for .txt single quotes around the path of the file in the infile statement. Why is this the case?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Double-and-single-quotes-for-infile-path-why/m-p/582127#M13783</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-08-19T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Double and single quotes for infile path..why?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Double-and-single-quotes-for-infile-path-why/m-p/582128#M13784</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So I notice that for csv files there are double quotes and for .txt single quotes around the path of the file in the infile statement. Why is this the case?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suppose it is the whim of the programmer who did this. There's really no such rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either single quotes or double quotes ought to work fine, except in the case where the path of the file contains a macro call or a macro variable, in which case double quotes are required.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Double-and-single-quotes-for-infile-path-why/m-p/582128#M13784</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-19T15:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Double and single quotes for infile path..why?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Double-and-single-quotes-for-infile-path-why/m-p/582129#M13785</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should your path contain a macro variable reference that may contain the name of the file name or something like that, you would need to enclose the path in double quotes for the reason macro variable references do not resolves within single quotes in a literal. Macro variables references do resolve within double quotes in a literal.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Double-and-single-quotes-for-infile-path-why/m-p/582129#M13785</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-08-19T15:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Double and single quotes for infile path..why?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Double-and-single-quotes-for-infile-path-why/m-p/582155#M13794</link>
      <description>&lt;UL&gt;
&lt;LI&gt;Macro variables resolve in double quotes, not in single quotes&lt;/LI&gt;
&lt;LI&gt;If you have an &amp;amp; or % in the path, SAS may think that's a macro variable/macro so you would use single quotes so it will not try to resolve the macro variable or macro.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;If you're using SQL pass through or X commands, you may need specific quotes - follows the rules of the SQL or OS.&lt;/LI&gt;
&lt;LI&gt;Other than those cases, single and double quotes are usually interchangeable.&lt;/LI&gt;
&lt;/UL&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So I notice that for csv files there are double quotes and for .txt single quotes around the path of the file in the infile statement. Why is this the case?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 16:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Double-and-single-quotes-for-infile-path-why/m-p/582155#M13794</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-19T16:07:34Z</dc:date>
    </item>
  </channel>
</rss>

