<?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 writing on excel in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185322#M1573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using code provided by SAS to write from SAS to Excel, but finally SAS does not write on Excel. Does someone know why ? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here an example of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options noxwait noxsync;&lt;/P&gt;&lt;P&gt;x '"c:program files\microsoft office\office14\excel.exe"';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename random dde&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'excel|sheet1!r1c1:r1c1';&lt;/P&gt;&lt;P&gt;data random;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file random;&lt;/P&gt;&lt;P&gt;x = "x";&lt;/P&gt;&lt;P&gt;put x;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 15:23:14 GMT</pubDate>
    <dc:creator>mcadena</dc:creator>
    <dc:date>2014-10-15T15:23:14Z</dc:date>
    <item>
      <title>writing on excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185322#M1573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using code provided by SAS to write from SAS to Excel, but finally SAS does not write on Excel. Does someone know why ? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here an example of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options noxwait noxsync;&lt;/P&gt;&lt;P&gt;x '"c:program files\microsoft office\office14\excel.exe"';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename random dde&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'excel|sheet1!r1c1:r1c1';&lt;/P&gt;&lt;P&gt;data random;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file random;&lt;/P&gt;&lt;P&gt;x = "x";&lt;/P&gt;&lt;P&gt;put x;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 15:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185322#M1573</guid>
      <dc:creator>mcadena</dc:creator>
      <dc:date>2014-10-15T15:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: writing on excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185323#M1574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can think of two problems. First, are you running 64 or 32 bit Excel. I have 32 bit, thus had to change Excel's location to program files (x86). Second, you probably have to add a data _null_ step with a sleep function to give Excel a chance to open before attempting to write to the file.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options noxwait noxsync;&lt;/P&gt;&lt;P&gt;x '"c:\program files (x86)\microsoft office\office14\excel.exe"';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename random dde&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; 'excel|sheet1!r1c1:r1c1';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; slept= sleep(1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;data random;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file random;&lt;/P&gt;&lt;P&gt;&amp;nbsp; slept= sleep(5);&lt;/P&gt;&lt;P&gt;&amp;nbsp; x = "x";&lt;/P&gt;&lt;P&gt;&amp;nbsp; put x;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 15:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185323#M1574</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-10-15T15:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: writing on excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185324#M1575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer, but I do not have any of those problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the sentence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;x '"c:\program files (x86)\microsoft office\office14\excel.exe"';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is only to open excel, but even that can de done manually. Executing only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename avg1 dde 'excel|US!r235c15:r235c15';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file avg1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x = "x";&lt;/P&gt;&lt;P&gt;&amp;nbsp; put x;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS log shows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The file AVG1 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|US!r235c15:r235c15,RECFM=V,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LRECL=256&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: 1 record was written to the file AVG1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 1.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.32 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apparently record was written, but cell (235;15) is still empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, I do not use a sleep function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 16:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185324#M1575</guid>
      <dc:creator>mcadena</dc:creator>
      <dc:date>2014-10-15T16:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: writing on excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185325#M1576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it by adding the data step with the sleep function like I did in my example. That STILL could easily be a problem that you do have, namely that Excel isn't ready to accept what you are trying to write to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 17:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185325#M1576</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-10-15T17:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: writing on excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185326#M1577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does this line&amp;nbsp;&amp;nbsp; x = "x"; does in your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 07:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185326#M1577</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-10-16T07:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: writing on excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185327#M1578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it but it does not work. However I succed to write in excel using range names !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I need to define a number of range names in my excel template.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 07:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185327#M1578</guid>
      <dc:creator>mcadena</dc:creator>
      <dc:date>2014-10-16T07:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: writing on excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185328#M1579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;x = "x"; defines variable x to be written in excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 07:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185328#M1579</guid>
      <dc:creator>mcadena</dc:creator>
      <dc:date>2014-10-16T07:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: writing on excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185329#M1580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After having tried it, I would strongly advise to use ods tagsets.excelxp in the future. Works on all platforms (does not need any crappy piece of MS SW), therefore WORKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 08:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/writing-on-excel/m-p/185329#M1580</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-16T08:05:35Z</dc:date>
    </item>
  </channel>
</rss>

