<?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: SAS EG &amp; DDE with Excel in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151996#M11891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you X command open the Excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 04:03:46 GMT</pubDate>
    <dc:creator>RajD</dc:creator>
    <dc:date>2014-06-24T04:03:46Z</dc:date>
    <item>
      <title>SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151991#M11886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Gurus, I am new to SAS Programming. Currently using SAS 9.3 EG and struggling with DDE &amp;amp; Excel. &lt;/P&gt;&lt;P&gt;I am trying to import / read data from Excel 2007. I am getting error during running the code and excel file is opening. Here is the code &amp;amp; error below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;Libname para 'c:\sasbaseprep';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;/* Read an Excel spreadsheet using DDE */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;OPTIONS NOXSYNC NOXWAIT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;X '"C:\SASBASEPrep\GASPRICESUS.XLSX"';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;X=sleep(3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;FILENAME gas DDE 'EXCEL|C:\SASBASEPrep\[GASPRICESUS.XLSX]Sheet1!A1:B51';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;DATA para.readexcel;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;INFILE gas NOTAB DLM='09'X DSD MISSOVER;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;informat Avg_price 4.3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;INPUT US_State $ 1-30 Avg_Price 4.3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;format Avg_price 4.3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;Proc Print data=para.readexcel;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;title 'Read / Import data from MS Excel';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;file gas;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;put '[FILE-CLOSE("C:\SASBASEPrep\GASPRICESUS.XLSX")]';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;put '[QUIT()]';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: DDE session not ready.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;FATAL: Unrecoverable I/O error detected in the execution of the DATA step program.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aborted during the EXECUTION phase.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;NOTE: 1 record was read from the infile GAS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me what is wrong with the code and how to fix it. I tried unchecking the option in Excel "Ignore other applications that use DDE", but no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 11:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151991#M11886</guid>
      <dc:creator>RajD</dc:creator>
      <dc:date>2014-06-23T11:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151992#M11887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DDE is not support3d by MS any more.&lt;/P&gt;&lt;P&gt;DDE is not possible to use from within EG.&lt;/P&gt;&lt;P&gt;My recommendation is that you try to find som e other way to achieve your requirement.&lt;/P&gt;&lt;P&gt;Are EG communicating witha local or a remote SAS server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 11:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151992#M11887</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-06-23T11:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151993#M11888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. EG is communicating with local server.&lt;/P&gt;&lt;P&gt;Also I tried running the same code in SAS BASE and getting the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;ERROR: DDE session not ready.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;FATAL: Unrecoverable I/O error detected in the execution of the DATA step program. &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Aborted during the EXECUTION phase.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further help please.. Thanks in Advance&lt;/P&gt;&lt;P&gt;- Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 17:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151993#M11888</guid>
      <dc:creator>RajD</dc:creator>
      <dc:date>2014-06-23T17:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151994#M11889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your X command actually open an Excel window or not? If you don't see Excel then DDE isn't going to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect your X command should look more like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;X 'Excel "C:\SASBASEPrep\GASPRICESUS.XLSX" ';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 19:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151994#M11889</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-06-23T19:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151995#M11890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was randomly getting DDE error messages and have found the most stable method was to firstly start excel (via SAS) and then open the file using DDE commands with ample sleep time between commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x '"C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE"';&lt;BR /&gt;data _null_;&lt;BR /&gt;&amp;nbsp; x=sleep(3);&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt;filename DDEcmds dde "excel|system";&lt;/P&gt;&lt;P&gt; data _null_;&lt;BR /&gt;&amp;nbsp; file DDEcmds;&lt;BR /&gt;&amp;nbsp; length dde_cmd $200;&lt;BR /&gt;&amp;nbsp; dde_cmd='[open("c:\sample.xlsx")]';&lt;BR /&gt;&amp;nbsp; put dde_cmd;&lt;BR /&gt;&amp;nbsp; x=sleep(3);&lt;BR /&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 23:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151995#M11890</guid>
      <dc:creator>tammy_dezilva</dc:creator>
      <dc:date>2014-06-23T23:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151996#M11891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you X command open the Excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 04:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151996#M11891</guid>
      <dc:creator>RajD</dc:creator>
      <dc:date>2014-06-24T04:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151997#M11892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RajD ... can you please suggest us how you resolved this issue of working DDE in SAS EG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 03:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151997#M11892</guid>
      <dc:creator>yaswanthkumarreddy_kalluru_techmahindra</dc:creator>
      <dc:date>2015-07-23T03:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151998#M11893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest us .. How you resolved this issue -Working DDE commands in SAS EG,&lt;/P&gt;&lt;P&gt;I am unable to open the EXCEL with the same query in SAS EG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 03:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151998#M11893</guid>
      <dc:creator>yaswanthkumarreddy_kalluru_techmahindra</dc:creator>
      <dc:date>2015-07-23T03:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151999#M11894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DDE using EG is only possible if you are using a local SAS server. That means you are using SAS on the same PC as EG. If you use a remote SAS server DDE is not possible, as Excel cannot be controlled remotely via DDE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 04:51:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/151999#M11894</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-07-23T04:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG &amp; DDE with Excel</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/152000#M11895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; SASKiwi already gave you the answer when he said (highlights mine):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DDE using EG is only possible if you are using a local SAS server. That means you are using SAS on the same PC as EG. &lt;SPAN style="text-decoration: underline;"&gt;If you use a remote SAS server DDE is not possible, as Excel cannot be controlled remotely via DDE.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For some more insight about EG and DDE, please see this blog posting: &lt;A href="http://blogs.sas.com/content/sasdummy/2014/10/14/dde-is-doa/" title="http://blogs.sas.com/content/sasdummy/2014/10/14/dde-is-doa/"&gt;http://blogs.sas.com/content/sasdummy/2014/10/14/dde-is-doa/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jul 2015 23:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-DDE-with-Excel/m-p/152000#M11895</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-07-26T23:54:42Z</dc:date>
    </item>
  </channel>
</rss>

