<?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: Proc tabulate does not export to excel - blank excel in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661949#M22744</link>
    <description>&lt;P&gt;I get the following error in the log.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;9    ods excel file='D:\Softwares\data.xlsx';
10   proc tabulate data=xx.data02 FORMAT=5.;
NOTE: Writing HTML Body file: sashtml1.htm
11   class Verification_Year Product_NUMBER;
12   var ID_availability;
13   table Verification_Year ALL, ALL ID_availability*Product_NUMBER;
14   run;

ERROR: There is not enough memory to perform class method OM_NEW(3) of
       "SCRIPT.TCELL".
ERROR: The SAS System stopped processing this step because of insufficient
       memory.
NOTE: There were 927313 observations read from the data set
      XX.DATA02.
NOTE: At least one W.D format was too small for the number to be printed. The
      decimal may be shifted by the "BEST" format.
NOTE: PROCEDURE TABULATE used (Total process time):
      real time           22:37.82
      cpu time            22:35.09

15   ods excel close;
NOTE: Writing EXCEL file: D:\Softwares\data.xlsx

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Jun 2020 23:25:36 GMT</pubDate>
    <dc:creator>mmhxc5</dc:creator>
    <dc:date>2020-06-17T23:25:36Z</dc:date>
    <item>
      <title>Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661924#M22737</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I would like to use the following code to output the proc tabulate to an excel file, but it at the end, the out is displayed in HTML and an empty excel file opens.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='D:\Softwares\data.xlsx)';
proc tabulate data=xx.data02 FORMAT=5.;
class Verification_Year Product_NUMBER;
var ID_availability;
table Verification_Year ALL, ALL ID_availability*Product_NUMBER;
run;
ods excel close&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The output is with a very large number of columns and maybe larger than an excel number of rows. Couldd anyone could help me to output this in an excel file - may in several sheets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 21:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661924#M22737</guid>
      <dc:creator>mmhxc5</dc:creator>
      <dc:date>2020-06-17T21:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661928#M22738</link>
      <description>&lt;P&gt;the last part of the code has a semicolon in the code that I am running.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jun 2020 21:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661928#M22738</guid>
      <dc:creator>mmhxc5</dc:creator>
      <dc:date>2020-06-17T21:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661929#M22739</link>
      <description>&lt;P&gt;I would not be surprised if the ) at the end of the file name is causing issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post the LOG, copy the log including everything from the ODS excel statement to the Ods excel close.&lt;/P&gt;
&lt;P&gt;Paste the text into a code box opened with the &amp;lt;/&amp;gt; icon on the forum.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 21:46:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661929#M22739</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-17T21:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661933#M22740</link>
      <description>&lt;P&gt;Good catch! but that is just an error when I typed the code here. It is not in my code.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 22:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661933#M22740</guid>
      <dc:creator>mmhxc5</dc:creator>
      <dc:date>2020-06-17T22:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661935#M22741</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This code using SASHELP.PRDSALE as a test worked for me, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1592431784457.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/45312i6439D1DA33D0B9DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1592431784457.png" alt="Cynthia_sas_0-1592431784457.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; My guess is that there's some other issue, but without more information from you (exact log message, data to test) it's just a guess as to what might be wrong.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 22:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661935#M22741</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-06-17T22:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661936#M22742</link>
      <description>&lt;P&gt;How large is large?&lt;/P&gt;
&lt;P&gt;Is there a BY variable you can use to reduce the size of each sheet?&amp;nbsp; For example you might use VERIFICATION_YEAR as the BY variable and get a different sheet for each value.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 22:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661936#M22742</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-06-17T22:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661941#M22743</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/253384"&gt;@mmhxc5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I would like to use the following code to output the proc tabulate to an excel file, but it at the end, the out is displayed in HTML and an empty excel file opens.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='D:\Softwares\data.xlsx)';
proc tabulate data=xx.data02 FORMAT=5.;
class Verification_Year Product_NUMBER;
var ID_availability;
table Verification_Year ALL, ALL ID_availability*Product_NUMBER;
run;
ods excel close&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output is with a very large number of columns and maybe larger than an excel number of rows. Could anyone could help me to output this in an excel file - may in several sheets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you have a lot of Product numbers then maybe it is would be better to place the id_availability and Product_number on the row and the Years as the columns.&lt;/P&gt;
&lt;P&gt;Maybe&lt;/P&gt;
&lt;PRE&gt;ods excel file='D:\Softwares\data.xlsx)';
   proc tabulate data=xx.data02 FORMAT=5.;
   class Verification_Year Product_NUMBER;
   var ID_availability;
   table ALL Product_NUMBER *ID_availability,
           Verification_Year ALL
   ;
run;
ods excel close&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You still should post the log.And are you sure that Id_availability should be in that order? It looks very odd to have an analysis variable summing over a class variable that way.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 22:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661941#M22743</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-17T22:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661949#M22744</link>
      <description>&lt;P&gt;I get the following error in the log.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;9    ods excel file='D:\Softwares\data.xlsx';
10   proc tabulate data=xx.data02 FORMAT=5.;
NOTE: Writing HTML Body file: sashtml1.htm
11   class Verification_Year Product_NUMBER;
12   var ID_availability;
13   table Verification_Year ALL, ALL ID_availability*Product_NUMBER;
14   run;

ERROR: There is not enough memory to perform class method OM_NEW(3) of
       "SCRIPT.TCELL".
ERROR: The SAS System stopped processing this step because of insufficient
       memory.
NOTE: There were 927313 observations read from the data set
      XX.DATA02.
NOTE: At least one W.D format was too small for the number to be printed. The
      decimal may be shifted by the "BEST" format.
NOTE: PROCEDURE TABULATE used (Total process time):
      real time           22:37.82
      cpu time            22:35.09

15   ods excel close;
NOTE: Writing EXCEL file: D:\Softwares\data.xlsx

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jun 2020 23:25:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/661949#M22744</guid>
      <dc:creator>mmhxc5</dc:creator>
      <dc:date>2020-06-17T23:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/663237#M22766</link>
      <description>&lt;P&gt;Hi, Here is the error from the code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;9    ods excel file='D:\Softwares\data.xlsx';
10   proc tabulate data=xx.data02 FORMAT=5.;
NOTE: Writing HTML Body file: sashtml1.htm
11   class Verification_Year Product_NUMBER;
12   var ID_availability;
13   table Verification_Year ALL, ALL ID_availability*Product_NUMBER;
14   run;

ERROR: There is not enough memory to perform class method OM_NEW(3) of
       "SCRIPT.TCELL".
ERROR: The SAS System stopped processing this step because of insufficient
       memory.
NOTE: There were 927313 observations read from the data set
      XX.DATA02.
NOTE: At least one W.D format was too small for the number to be printed. The
      decimal may be shifted by the "BEST" format.
NOTE: PROCEDURE TABULATE used (Total process time):
      real time           22:37.82
      cpu time            22:35.09

15   ods excel close;
NOTE: Writing EXCEL file: D:\Softwares\data.xlsx&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jun 2020 17:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/663237#M22766</guid>
      <dc:creator>mmhxc5</dc:creator>
      <dc:date>2020-06-18T17:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate does not export to excel - blank excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/663349#M22779</link>
      <description>Hi:&lt;BR /&gt;  There's an older posting here: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-gives-error-for-larger-data-set/td-p/192648" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-gives-error-for-larger-data-set/td-p/192648&lt;/A&gt; with a similar error message. My suggestion is that you open a track with Tech Support and then they can investigate the older cause. Meanwhile, there are some suggestions in the track that may work for you. &lt;BR /&gt;&lt;BR /&gt;PROC TABULATE does run out of memory if you have too many crossings of the CLASS variables. But it sticks in my mind that the limit was some very big number so I doubt that is the issue. Tech Support is your best bet for this issue in my opinion.&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 19 Jun 2020 00:42:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-tabulate-does-not-export-to-excel-blank-excel/m-p/663349#M22779</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-06-19T00:42:31Z</dc:date>
    </item>
  </channel>
</rss>

