<?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: Error using DDE to download Excel spreadshet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407368#M99261</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155647"&gt;@C20325A&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Update: this is now solved!&lt;BR /&gt;&lt;BR /&gt;I used the %sysexec command to open the specific Excel i was using, and then I have to Enable Editing on the document.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are several other programs out there that will interfere with DDE connections to Excel. If the only purpose is to read the file there are many other ways that are more reliable.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2017 17:02:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-10-25T17:02:22Z</dc:date>
    <item>
      <title>Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407170#M99204</link>
      <description>&lt;P&gt;I am trying to use a DDE connection to import an Excel spreadsheet into SAS. I have the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;options noxwait noxsync;
%sysexec "start excel";

data _null_;
	rc=sleep(15);
run;


data HouseTables.England (keep=LAD AREA_NAME _&amp;amp;MYEPrev.-_&amp;amp;FPY.);
	informat LAD $9.	AREA_NAME $35.	AREA_NAME1 $35.	AREA_NAME2 $35.	AREA_NAME3 $35.	_1991-_&amp;amp;FPY. comma16.;
	filename Excel dde "Excel|&amp;amp;rootdir.\Input\[Household_Projections.xlsx]406!R6C1:R410C53" notab;
	infile Excel lrecl=10001 dsd missover delimiter='09'x firstobs=1;
	input LAD	AREA_NAME1	AREA_NAME2	AREA_NAME3	_1991-_&amp;amp;FPY.
run;&lt;/PRE&gt;&lt;P&gt;The script ran perfectly on somebody else's PC. But running it on mine, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: Failed to connect to Excel|[Hidden Excel file path]\[Household_Projections.xlsx]406!R6C1:R410C53 : The error
       DMLERR_NO_CONV_ESTABLISHED was returned&lt;/PRE&gt;&lt;P&gt;Can anybody help with this? Excel is definitely up and running after running the first bit of code, but it won't seem to connect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 09:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407170#M99204</guid>
      <dc:creator>C20325A</dc:creator>
      <dc:date>2017-10-25T09:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407176#M99205</link>
      <description>&lt;P&gt;Update: this is now solved!&lt;BR /&gt;&lt;BR /&gt;I used the %sysexec command to open the specific Excel i was using, and then I have to Enable Editing on the document.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 09:37:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407176#M99205</guid>
      <dc:creator>C20325A</dc:creator>
      <dc:date>2017-10-25T09:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407179#M99206</link>
      <description>&lt;P&gt;Sorry, I don't recognise the error and its not worth my time debugging this.&amp;nbsp; Basically DDE is over 15 years out of support, it is ancient, and in quite a lot of scenarios does not work, or does not have the functionality needed.&amp;nbsp; There are many ways to get data into SAS, for instance you could start with a proc import, this guesses the data though so not ideal (better to save to CSV and write a datastep, far more robust), or there is, if you have &amp;gt; V9.3 libname excel.&lt;/P&gt;
&lt;P&gt;So yes, start by trying proc import - you can specify range - this should be near enough and will work on a broader spectrum (unless the machine does not have Office on it, then you need pcfiles).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 09:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407179#M99206</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-25T09:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407181#M99207</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155647"&gt;@C20325A&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;DDE is legacy and even still supported you really shouldn't use it anymore.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2014/10/14/dde-is-doa/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2014/10/14/dde-is-doa/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 10:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407181#M99207</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-10-25T10:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407368#M99261</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155647"&gt;@C20325A&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Update: this is now solved!&lt;BR /&gt;&lt;BR /&gt;I used the %sysexec command to open the specific Excel i was using, and then I have to Enable Editing on the document.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are several other programs out there that will interfere with DDE connections to Excel. If the only purpose is to read the file there are many other ways that are more reliable.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 17:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/407368#M99261</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-25T17:02:22Z</dc:date>
    </item>
  </channel>
</rss>

