<?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: Problem with transferring values to Excel worksheet using DDE. in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Problem-with-transferring-values-to-Excel-worksheet-using-DDE/m-p/30568#M560</link>
    <description>Many thanks!&lt;BR /&gt;
&lt;BR /&gt;
LRECL=291 did it, but not LRECL=290.&lt;BR /&gt;
&lt;BR /&gt;
I suppose it was because the first 3 rows contained integers that they were transferred correctly.&lt;BR /&gt;
&lt;BR /&gt;
The following rows contained real numbers.</description>
    <pubDate>Tue, 12 May 2009 13:18:07 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-05-12T13:18:07Z</dc:date>
    <item>
      <title>Problem with transferring values to Excel worksheet using DDE.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Problem-with-transferring-values-to-Excel-worksheet-using-DDE/m-p/30566#M558</link>
      <description>I have a SAS table, MyTable, with 10 rows and 23 columns. The columns are named col1-col23. &lt;BR /&gt;
I am using DDE to transfer the table to a Excel worksheet MySheet in the workbook MyWorkbook.&lt;BR /&gt;
&lt;BR /&gt;
I have declared a range&lt;BR /&gt;
&lt;BR /&gt;
filename MyRange dde 'excel[MyWorkbook.xls]MySheet!r1c1:r10c23' notab;&lt;BR /&gt;
&lt;BR /&gt;
I use&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
set MyTable;&lt;BR /&gt;
file MyRange;&lt;BR /&gt;
put col1 '09'x col2 '09'x col3 '09'x ......... col22 '09'x col23;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The first 3 rows in the Excel sheet is filled correctly, but in the 4th row the 3 last columns, 21-23, is empty, and the values that should be in those cells comes in row 5, columns 1-3. There are no more values on row 5.&lt;BR /&gt;
The rest of the values then starts on row 6, and now again values are placed in all 23 columns.&lt;BR /&gt;
&lt;BR /&gt;
What can be wrong?</description>
      <pubDate>Tue, 12 May 2009 12:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Problem-with-transferring-values-to-Excel-worksheet-using-DDE/m-p/30566#M558</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-12T12:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with transferring values to Excel worksheet using DDE.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Problem-with-transferring-values-to-Excel-worksheet-using-DDE/m-p/30567#M559</link>
      <description>What kind of data step messages did you receive?&lt;BR /&gt;
&lt;BR /&gt;
Try increasing the LRECL, On the FILENAME or on the FILE statement.  &lt;BR /&gt;
&lt;BR /&gt;
You may find using DSD DLM='09'x FILE statement option easier than putting the TAB as constant text.</description>
      <pubDate>Tue, 12 May 2009 12:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Problem-with-transferring-values-to-Excel-worksheet-using-DDE/m-p/30567#M559</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-05-12T12:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with transferring values to Excel worksheet using DDE.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Problem-with-transferring-values-to-Excel-worksheet-using-DDE/m-p/30568#M560</link>
      <description>Many thanks!&lt;BR /&gt;
&lt;BR /&gt;
LRECL=291 did it, but not LRECL=290.&lt;BR /&gt;
&lt;BR /&gt;
I suppose it was because the first 3 rows contained integers that they were transferred correctly.&lt;BR /&gt;
&lt;BR /&gt;
The following rows contained real numbers.</description>
      <pubDate>Tue, 12 May 2009 13:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Problem-with-transferring-values-to-Excel-worksheet-using-DDE/m-p/30568#M560</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-12T13:18:07Z</dc:date>
    </item>
  </channel>
</rss>

