<?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: using dde where path contains an apostrophe in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/using-dde-where-path-contains-an-apostrophe/m-p/273847#M54584</link>
    <description>&lt;P&gt;As single (and double) quotes are used in shell scripting, they have no place in file and path names. So I'd rather tackle the problem at its source and remove the special characters than trying an unnecessary and complicated workaround. Keep in mind that those characters will cause problems elsewhere, too.&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2016 04:17:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-05-30T04:17:53Z</dc:date>
    <item>
      <title>using dde where path contains an apostrophe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-dde-where-path-contains-an-apostrophe/m-p/273817#M54573</link>
      <description>&lt;P&gt;I have been using dde to send data to an excel file without a problem until I found one case where the file&amp;nbsp;path contains an apostrophe. In this case the dde link fails due to the apostrophe in the path. I tried every masking function to no avail and in the end I had to remove the apostrophe from the folder name. Has anyone resolved a similar case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;data d; do x=1 to 10; y=exp(-x); output;end; run;&lt;BR /&gt;&lt;BR /&gt;%let xlf = %bquote(c:\temp\sas\dde'tests\test.xlsm);&lt;BR /&gt;&lt;BR /&gt;filename xl dde "exce|[&amp;amp;xlf.]sheet1!r1c1:r11c2" notab lrecl=200;&lt;BR /&gt;data _null_;&lt;BR /&gt;file xl;&lt;BR /&gt;set d;&lt;BR /&gt;put x y;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2016 18:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-dde-where-path-contains-an-apostrophe/m-p/273817#M54573</guid>
      <dc:creator>reef</dc:creator>
      <dc:date>2016-05-29T18:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: using dde where path contains an apostrophe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-dde-where-path-contains-an-apostrophe/m-p/273846#M54583</link>
      <description>&lt;P&gt;Few people will be able to test as most have had to move on from DDE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your syntax works fine in SAS when DDE is not involved:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%let xlf = %bquote(c:\temp\tes't.xlsm);

filename XL "&amp;amp;xlf" ;
data _null_ ;
  file XL ;
  put 'a'; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I suspect the DDE mechanism gets confused by the apostrophe. Have you tried to double the apostrophe? or to escape it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moving on, sadly, DDE will be less and less supported. See &lt;A href="http://blogs.sas.com/content/sasdummy/2014/10/14/dde-is-doa/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2014/10/14/dde-is-doa/&lt;/A&gt; (from 2014).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So time to rewrite your DDE logic using another (maybe less practical, but more time-proof) method?&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 03:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-dde-where-path-contains-an-apostrophe/m-p/273846#M54583</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-05-30T03:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: using dde where path contains an apostrophe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-dde-where-path-contains-an-apostrophe/m-p/273847#M54584</link>
      <description>&lt;P&gt;As single (and double) quotes are used in shell scripting, they have no place in file and path names. So I'd rather tackle the problem at its source and remove the special characters than trying an unnecessary and complicated workaround. Keep in mind that those characters will cause problems elsewhere, too.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 04:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-dde-where-path-contains-an-apostrophe/m-p/273847#M54584</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-05-30T04:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: using dde where path contains an apostrophe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-dde-where-path-contains-an-apostrophe/m-p/277299#M55659</link>
      <description>&lt;P&gt;Thanks to all.&lt;BR /&gt;I replied as soon as answers were sent but was not aware that my final update was not recorded on the site.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have opted to remove the apostrophe from the filename and path.&lt;/P&gt;&lt;P&gt;Best regards and thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 17:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-dde-where-path-contains-an-apostrophe/m-p/277299#M55659</guid>
      <dc:creator>reef</dc:creator>
      <dc:date>2016-06-14T17:00:07Z</dc:date>
    </item>
  </channel>
</rss>

