<?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 ods excel out of memory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-out-of-memory/m-p/854553#M337727</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inside the ods block I have several proc reports (not shown), I want to populate one worksheet with a table using proc print.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For 10000 rows it works, but for the whole table (200k rows) it gives the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options casdatalimit=all;

ods _all_ close;
ods excel file="/caslibs/marketing/testing.xlsx" 
options(sheet_interval='none' sheet_name='All VWFS');

proc print data=MKT.FATFISH_LCV2;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 12:20:05 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2023-01-19T12:20:05Z</dc:date>
    <item>
      <title>ods excel out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-out-of-memory/m-p/854553#M337727</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inside the ods block I have several proc reports (not shown), I want to populate one worksheet with a table using proc print.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For 10000 rows it works, but for the whole table (200k rows) it gives the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options casdatalimit=all;

ods _all_ close;
ods excel file="/caslibs/marketing/testing.xlsx" 
options(sheet_interval='none' sheet_name='All VWFS');

proc print data=MKT.FATFISH_LCV2;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 12:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-excel-out-of-memory/m-p/854553#M337727</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-01-19T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-out-of-memory/m-p/854555#M337729</link>
      <description>&lt;P&gt;This solution from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;works for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options casdatalimit=all;

ods _all_ close;
ods excel file="/caslibs/marketing/testing2.xlsx" 
options(sheet_interval='none' sheet_name='All VWFS');

proc print data=MKT.FATFISH_LCV2(obs=1000);
run;

ods excel close;

proc export
  data=MKT.FATFISH_LCV2(obs=10000)
  file="/caslibs/marketing/testing2.xlsx"
  dbms=xlsx
  replace
;
sheet="cars";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2023 12:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-excel-out-of-memory/m-p/854555#M337729</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-01-19T12:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-out-of-memory/m-p/854607#M337760</link>
      <description>&lt;P&gt;ODS is good for readable reports, not for mass data transfer. Use PROC EXPORT or LIBNAME XLSX.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 15:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-excel-out-of-memory/m-p/854607#M337760</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-19T15:17:56Z</dc:date>
    </item>
  </channel>
</rss>

