<?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 Out of memory while writing to Excel file in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307418#M17239</link>
    <description>&lt;P&gt;I'm using trying to export ~35000 positions to an Excel sheet with 'ods excel file'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a while, I get this error:&lt;/P&gt;&lt;P&gt;Error: Not enough memory to SET/GET instance attribute OA_RAW_VALUE(2660) for "SCRIPT.TCELL".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The whole process takes up more than 2GiB. Is there a way to solve this issue without increasing memory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2016 14:33:52 GMT</pubDate>
    <dc:creator>WouterKBC</dc:creator>
    <dc:date>2016-10-26T14:33:52Z</dc:date>
    <item>
      <title>Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307418#M17239</link>
      <description>&lt;P&gt;I'm using trying to export ~35000 positions to an Excel sheet with 'ods excel file'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a while, I get this error:&lt;/P&gt;&lt;P&gt;Error: Not enough memory to SET/GET instance attribute OA_RAW_VALUE(2660) for "SCRIPT.TCELL".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The whole process takes up more than 2GiB. Is there a way to solve this issue without increasing memory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307418#M17239</guid>
      <dc:creator>WouterKBC</dc:creator>
      <dc:date>2016-10-26T14:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307426#M17241</link>
      <description>&lt;P&gt;More importantly, do you believe Excel is the best store for 35k observations? &amp;nbsp;That will create a vast file, depending on number of variables - not sure what positions are. &amp;nbsp;Have you tried/can you - libname excel, and copy the data that way, or use proc export which can create an xls file - as its binary they tend to be far smaller. &amp;nbsp;But really Excel isn't the place for that many observations, is this for a data transfer, use a file format which is good for that task, e.g. CSV, or delimited.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc export is probably the way to go if you really have to use Excel.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307426#M17241</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-26T14:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307428#M17242</link>
      <description>&lt;P&gt;I'm using&lt;/P&gt;&lt;PRE&gt;proc print data&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would proc export work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried libname excel, but it gives me&lt;/P&gt;&lt;PRE&gt;ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307428#M17242</guid>
      <dc:creator>WouterKBC</dc:creator>
      <dc:date>2016-10-26T14:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307430#M17243</link>
      <description>&lt;P&gt;For XLSX native files - these are actually XML files in a ZIP file, so the size is far larger than binary XLS:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/01/25/export-to-excel-got-easier/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2012/01/25/export-to-excel-got-easier/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For XLS its similar, you change the dbms value to XLS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris goes over some of the methods here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307430#M17243</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-26T14:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307433#M17245</link>
      <description>&lt;P&gt;I have to work with XLSX.&lt;/P&gt;&lt;P&gt;The link you gave works, but in my previous code I had something like&lt;/P&gt;&lt;PRE&gt;sum cnt / style={tagattr='Format:#,##0'};&lt;/PRE&gt;&lt;P&gt;Which caluclated the sum of this column. Is this possible in this method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 15:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307433#M17245</guid>
      <dc:creator>WouterKBC</dc:creator>
      <dc:date>2016-10-26T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307434#M17246</link>
      <description>&lt;P&gt;Yes. &amp;nbsp;Why do you have to work with XLSX? &amp;nbsp;You have already limited yourself by using Excel, maybe you should only use cell B16 (joking, but seriously, use the best tool for the job).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 15:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307434#M17246</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-26T15:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307435#M17247</link>
      <description>&lt;P&gt;You have to ask the almighty overlords. They are immune to reason and arguments.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 15:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307435#M17247</guid>
      <dc:creator>WouterKBC</dc:creator>
      <dc:date>2016-10-26T15:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307460#M17249</link>
      <description>&lt;P&gt;Libname XLSX should work (not excel)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What version of SAS are you using?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 18:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307460#M17249</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-26T18:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307508#M17251</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/101012"&gt;@WouterKBC&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;You have to ask the almighty overlords. They are immune to reason and arguments.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the result is as they desire do they need to know what you may have done in the middle?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 21:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307508#M17251</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-26T21:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Out of memory while writing to Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307606#M17256</link>
      <description>&lt;P&gt;&lt;EM&gt;If the result is as they desire do they need to know what you may have done in the middle?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They don't. So you suggest making an xls file and then convert it to xlsx? How do I do that?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 11:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Out-of-memory-while-writing-to-Excel-file/m-p/307606#M17256</guid>
      <dc:creator>WouterKBC</dc:creator>
      <dc:date>2016-10-27T11:36:28Z</dc:date>
    </item>
  </channel>
</rss>

