<?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: DDE error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DDE-error/m-p/110287#M22875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excel needs to be open and running to receive the DDE commands. The "DDE session is not ready" error makes it look like Excel may not have been ready (fully started and waiting)&lt;/P&gt;&lt;P&gt;I use this code before the filename statement to make sure Excel is ready.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(system(start Excel));&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* wait to make sure excel is done starting the number is seconds of delay&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the value in sleep can be smaller for faster disk drives*/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(sleep(2));&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2013 16:24:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2013-02-15T16:24:56Z</dc:date>
    <item>
      <title>DDE error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DDE-error/m-p/110286#M22874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have working code for DDE. If I add select-statement into my code it gives an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;135&amp;nbsp; filename cmds dde 'excel|system';&lt;/P&gt;&lt;P&gt;136&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;137&amp;nbsp; file cmds;&lt;/P&gt;&lt;P&gt;138&amp;nbsp; put '[select("R1C1")]';&lt;/P&gt;&lt;P&gt;139&amp;nbsp; put '[QUIT()]';&lt;/P&gt;&lt;P&gt;140&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;NOTE: The file CMDS is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDE Session,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SESSION=excel|system,RECFM=V,LRECL=256&lt;/P&gt;&lt;P&gt;ERROR: DDE session not ready.&lt;/P&gt;&lt;P&gt;FATAL: Unrecoverable I/O error detected in the execution of the DATA step program.&amp;nbsp; Aborted during the EXECUTION phase.&lt;/P&gt;&lt;P&gt;NOTE: 0 records were written to the file CMDS.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 07:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DDE-error/m-p/110286#M22874</guid>
      <dc:creator>Virpi</dc:creator>
      <dc:date>2013-02-15T07:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: DDE error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DDE-error/m-p/110287#M22875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excel needs to be open and running to receive the DDE commands. The "DDE session is not ready" error makes it look like Excel may not have been ready (fully started and waiting)&lt;/P&gt;&lt;P&gt;I use this code before the filename statement to make sure Excel is ready.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(system(start Excel));&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* wait to make sure excel is done starting the number is seconds of delay&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the value in sleep can be smaller for faster disk drives*/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(sleep(2));&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 16:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DDE-error/m-p/110287#M22875</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-02-15T16:24:56Z</dc:date>
    </item>
  </channel>
</rss>

