<?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: Excel 2007 (xlsx) and data range problem in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-xlsx-and-data-range-problem/m-p/28815#M548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having the exact same problem, which is really annoying, since I have a lot of ready reports in xlsx format and I cannot import any data into them at the proper ranges. I also run my code on a SAS 9.2 Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution out there for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 14:57:36 GMT</pubDate>
    <dc:creator>DukAp</dc:creator>
    <dc:date>2012-05-31T14:57:36Z</dc:date>
    <item>
      <title>Excel 2007 (xlsx) and data range problem</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-xlsx-and-data-range-problem/m-p/28814#M547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to export my data to xlsx file.&lt;/P&gt;&lt;P&gt;Since the data has more than 65k records, and I just want one excel sheet, I have to use this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a fancy excel template where I would like to put my SAS data using libname engine. This template also has a range defined on it, so SAS can know where to put the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, using the same template as an xls file and then using the xlsx template,I will have different results.&lt;/P&gt;&lt;P&gt;In the first case(xls), everything goes as is should: my first row(the fancy headers) still there, and the data goes exactly where I want it to go.&lt;/P&gt;&lt;P&gt;In the second case(xlsx), it seems that SAS ignores the range, since it starts writing the data in the first line of the excel (and erases my fancy headers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;libname excLib excel 'd:\test.xlsx';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc datasets lib=excLib nolist;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete dataRange;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data excLib.dataRange;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set myData;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname excLib clear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if I use the same code and save test.xlsx as test.xls it will work as I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched for a explanation for this, but I can't find it. Can anyone help me, please?&lt;/P&gt;&lt;P&gt;Using SAS 9.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must add that this only happens when I am running the code on the server (where I do not have excel installed). If I run it on my machine, where I have excel installed, it will work for both xls and xlsx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 13:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-xlsx-and-data-range-problem/m-p/28814#M547</guid>
      <dc:creator>nmduarte</dc:creator>
      <dc:date>2011-10-13T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Excel 2007 (xlsx) and data range problem</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-xlsx-and-data-range-problem/m-p/28815#M548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having the exact same problem, which is really annoying, since I have a lot of ready reports in xlsx format and I cannot import any data into them at the proper ranges. I also run my code on a SAS 9.2 Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution out there for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 14:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-xlsx-and-data-range-problem/m-p/28815#M548</guid>
      <dc:creator>DukAp</dc:creator>
      <dc:date>2012-05-31T14:57:36Z</dc:date>
    </item>
  </channel>
</rss>

