<?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: Dataset too large to export to Excel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163053#M42322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is to find out all possibilities of using the number '1', '3' ,4' '6' and operators '+', '-', '*' '/' and with "(" and ")" considered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;1+3*6+4&lt;/P&gt;&lt;P&gt;1/3*6+4&lt;/P&gt;&lt;P&gt;1/(3*6)+4&lt;/P&gt;&lt;P&gt;1/3*(6+4)&lt;/P&gt;&lt;P&gt;1/3*6-4&lt;/P&gt;&lt;P&gt;1/3*(6-4)&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 15:50:12 GMT</pubDate>
    <dc:creator>Elvin</dc:creator>
    <dc:date>2014-07-03T15:50:12Z</dc:date>
    <item>
      <title>Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163043#M42312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have generated a large SAS dataset, which I want to export to Excel for further use but it have too many records (&amp;gt;65536 rows). My Excel file can only show the data up to 65536 row. What should I do? Or, how can I tell PROC EXPORT to export a certain range of records to Excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 22:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163043#M42312</guid>
      <dc:creator>Elvin</dc:creator>
      <dc:date>2014-07-01T22:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163044#M42313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have Excel 2003? It's 11 years old &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;P&gt;You can either separate the file into different tabs and/or workbooks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a specific variable you can use a WHERE clause in your proc export. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data=have (where =(group_var in (list of valid obs))) etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to automate it there's other ways. &lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/kb/16/587.html" style="font-size: 10pt; line-height: 1.5em;" title="http://support.sas.com/kb/16/587.html"&gt;16587 - Exporting SAS® data sets of more than 65,536 rows to Microsoft Excel&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or a direct link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="ftp://ftp.sas.com/techsup/download/base/datasplitter2excel2.sas"&gt;ftp://ftp.sas.com/techsup/download/base/datasplitter2excel2.sas&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 23:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163044#M42313</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-07-01T23:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163045#M42314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is, what do you want to do in Excel with that kind of data?&lt;/P&gt;&lt;P&gt;Excel is a spreadsheet calculator and not a BI package, so you should use it for what it was designed for.&lt;/P&gt;&lt;P&gt;Hint: A "sheet" is usually something the size of Legal or A4.&lt;/P&gt;&lt;P&gt;The fact that MS tries to frankenstein Excel into some kind of database bastard by repeatedly increasing the maximum number of rows does not magically turn Excel into Oracle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 06:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163045#M42314</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-07-02T06:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163046#M42315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reeza, I think that solution you linked to uses DDE, personally I would rather use newer tech than that.&amp;nbsp; Tagset solution below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I completely agree with KurtBremser on this, Excel really shouldn't be used for any kind of database/data transfer or pretty much anything else, you wouldn't for instance, use paint to create your outputs why use another tool not designed for it.&amp;nbsp; If it is for data transfer, then delimited, XML, dataset, are all far better.&amp;nbsp; For review, then consider what is actually need in the review, maybe a graph or a tabulation would be beter, maybe a profile?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have (drop=i);&lt;BR /&gt;&amp;nbsp; do i=1 to 100000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a="Hello"; output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; select&amp;nbsp; (NOBS/65000) + 1&lt;BR /&gt;&amp;nbsp; into&amp;nbsp;&amp;nbsp;&amp;nbsp; :LOOP_COUNT&lt;BR /&gt;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; SASHELP.VTABLE&lt;BR /&gt;&amp;nbsp; where&amp;nbsp;&amp;nbsp; LIBNAME="WORK"&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; MEMNAME="HAVE";&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; call execute('ods tagsets.excelxp file="s:\temp\rob\test.xls" style=statistical;');&lt;BR /&gt;&amp;nbsp; do i=1 to &amp;amp;LOOP_COUNT.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('ods tagsets.excelxp options(sheet_name="Sheet'||strip(put(i,best.))||'");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data tmp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_ &amp;gt;= '||strip(put(i-1,best.))||' * 65000 and _n_ &amp;lt; '||strip(put(i,best.))||' * 65000 then output;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc report data=tmp nowd;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column a;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define a / "My Var";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;');&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; call execute('ods _all_ close;');&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 08:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163046#M42315</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-02T08:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163047#M42316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't use DDE as far as I can see, what makes you think it does?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tagsets are generally a good option but have a few drawbacks themselves:&lt;/P&gt;&lt;P&gt;1. Not a native Excel files, depending on what version it generates warnings which may not be desirable. &lt;/P&gt;&lt;P&gt;2. Generates big files&lt;/P&gt;&lt;P&gt;3. Slower than a standard proc export. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 22:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163047#M42316</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-07-02T22:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163048#M42317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well on the first link, it states:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; You must run the SAS 8 program interactively, or at least with a controlling terminal, because it launches Excel during its process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This indicates that it fires up the DDE system as the only reason to open Excel would be to send DDE commands to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 09:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163048#M42317</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-03T09:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163049#M42318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, to add to your points:&lt;/P&gt;&lt;P&gt;1. Not a native Excel files, depending on what version it generates warnings which may not be desirable. &lt;/P&gt;&lt;P&gt;Yes, however MS has now moved to a zipped XML based format, and the proprietary binary file which used to be the native XL file will (hopefully) start to disappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Generates big files&lt;/P&gt;&lt;P&gt;Indeed, if size is a problem, don't use XML, use CSV instead - without quotes its probably to smallest simplest file you can do without some compression technique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163049#M42318</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-03T10:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163050#M42319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, my intention to export Sasdata set to Excel is to concatenate each record and evaluate the character expression, (which I know well how to do in Excel). The bigger picture of my interest is to list out all possibilities of using the number '1', '3' ,4' '6' and operators '+', '-', '*' '/' and with "(" and ")" considered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code and the dataset=FINAL_Last1 (where the variable 'Summing' contains 200000+ records) is where I get stuck to use Excel. How can I tell SAS to evaluate the string expression resided in variable 'Summing'? I found out I can use Macro, but would like to see your answers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, thank you Reeza for the tagset solution. That is really new to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code may not be efficient to do what it intends to, I am learning and playing around with SAS. Welcome any inputs.&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;OPTIONS OBS=MAX ;&lt;/P&gt;&lt;P&gt;OPTIONS FIRSTOBS=1 ;&lt;/P&gt;&lt;P&gt;data New_X1 ;&lt;/P&gt;&lt;P&gt;INPUT X1 $1;&lt;/P&gt;&lt;P&gt;DATALINES;&lt;/P&gt;&lt;P&gt;+ &lt;/P&gt;&lt;P&gt;- &lt;/P&gt;&lt;P&gt;* &lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data New_X2 ;&lt;/P&gt;&lt;P&gt;INPUT X2 $1;&lt;/P&gt;&lt;P&gt;DATALINES;&lt;/P&gt;&lt;P&gt;+ &lt;/P&gt;&lt;P&gt;- &lt;/P&gt;&lt;P&gt;* &lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;data New_X3 ;&lt;/P&gt;&lt;P&gt;INPUT X3 $1;&lt;/P&gt;&lt;P&gt;DATALINES;&lt;/P&gt;&lt;P&gt;+ &lt;/P&gt;&lt;P&gt;- &lt;/P&gt;&lt;P&gt;* &lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CREATE TABLE hope AS&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp; New_X1, New_X2 ,New_X3;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data New_Y (KEEP=y1s y2s y3s y4s);&lt;/P&gt;&lt;P&gt;array y[4] $1 ('1' '3' '4' '6');&lt;/P&gt;&lt;P&gt;n2=fact(4);&lt;/P&gt;&lt;P&gt;DO i=1 to n2;&lt;/P&gt;&lt;P&gt;permut_OrderImportant2=allperm(i, of y&lt;LI&gt;);&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;put&amp;nbsp; permut_OrderImportant2 +2 y1-y4;&lt;/P&gt;&lt;P&gt;y1s=y[1]; y2s=y[2]; y3s=y[3]; y4s=y[4];output;&lt;/P&gt;&lt;P&gt;END;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data New_Z (KEEP=Z1s Z2s Z3s Z4s Z5s Z6s);&lt;/P&gt;&lt;P&gt;array z[6] $1 ('('&amp;nbsp; ')'&amp;nbsp; '' '' '' '');&lt;/P&gt;&lt;P&gt;n3=fact(6);&lt;/P&gt;&lt;P&gt;DO i=1 to n3;&lt;/P&gt;&lt;P&gt;permut_OrderImportant2=allperm(i, of z&lt;LI&gt;);&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;put&amp;nbsp; permut_OrderImportant2 +2 z1-z4;&lt;/P&gt;&lt;P&gt;Z1s=z[1]; Z2s=z[2]; Z3s=z[3]; Z4s=z[4]; Z5s=z[5]; Z6s=z[6];output;&lt;/P&gt;&lt;P&gt;END;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CREATE TABLE FINAL AS&lt;/P&gt;&lt;P&gt;SELECT Z1s,y1s,X1,Z2s,y2s,Z3s,X2,Z4s,y3s,Z5s,X3,y4s,Z6s&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp; hope, New_Y, New_Z;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=FINAL;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FINAL_Last;&lt;/P&gt;&lt;P&gt;SET FINAL;&lt;/P&gt;&lt;P&gt;IF (z1s eq ")") THEN DELETE;&lt;/P&gt;&lt;P&gt;IF (z2s eq ")") THEN DELETE;&lt;/P&gt;&lt;P&gt;IF (z3s eq "(") THEN DELETE;&lt;/P&gt;&lt;P&gt;IF (z4s eq ")") THEN DELETE;&lt;/P&gt;&lt;P&gt;IF (z5s eq "(") THEN DELETE;&lt;/P&gt;&lt;P&gt;IF (z6s eq "(") THEN DELETE;&lt;/P&gt;&lt;P&gt;IF (z1s eq "" and z2s=")" ) THEN DELETE;&lt;/P&gt;&lt;P&gt;IF (z1s eq "" and z3s=")" ) THEN DELETE;&lt;/P&gt;&lt;P&gt;IF (z4s eq "(" and z5s=")" ) THEN DELETE;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FINAL_Last1 (KEEP=Summing);&lt;/P&gt;&lt;P&gt;SET FINAL_Last;&lt;/P&gt;&lt;P&gt;Summing= Z1s||y1s||X1||Z2s||y2s||Z3s||X2||Z4s||y3s||Z5s||X3||y4s||Z6s;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC CONTENTS DATA=FINAL_Last1;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 15:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163050#M42319</guid>
      <dc:creator>Elvin</dc:creator>
      <dc:date>2014-07-03T15:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163051#M42320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you need to calculate all the formulas, why not calculate the values directly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 15:44:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163051#M42320</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-07-03T15:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163052#M42321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correction: The tagsolution is given by RW9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 15:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163052#M42321</guid>
      <dc:creator>Elvin</dc:creator>
      <dc:date>2014-07-03T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163053#M42322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is to find out all possibilities of using the number '1', '3' ,4' '6' and operators '+', '-', '*' '/' and with "(" and ")" considered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;1+3*6+4&lt;/P&gt;&lt;P&gt;1/3*6+4&lt;/P&gt;&lt;P&gt;1/(3*6)+4&lt;/P&gt;&lt;P&gt;1/3*(6+4)&lt;/P&gt;&lt;P&gt;1/3*6-4&lt;/P&gt;&lt;P&gt;1/3*(6-4)&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 15:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163053#M42322</guid>
      <dc:creator>Elvin</dc:creator>
      <dc:date>2014-07-03T15:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163054#M42323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, not running your code I am suspecting your final dataset looks like this:&lt;/P&gt;&lt;P&gt;Summing&lt;/P&gt;&lt;P&gt;1+3*6+4&lt;/P&gt;&lt;P&gt;1/3*6+4&lt;/P&gt;&lt;P&gt;1/(3*6)+4&lt;/P&gt;&lt;P&gt;1/3*(6+4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An you send that to Excel and it resolves the formula?&lt;/P&gt;&lt;P&gt;If so then you can also do:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set final end=last;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_=1 then call execute('data wanted_result; attrib formula format=$20. result=best.;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute(' formula="'||strip(summing)||'"; result='||strip(summing)||'; output;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if last then call execute('run;');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the above will do is generate the code for a new dataset, and for each row of your final dataset produce a code line which populates formula and result in this new dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 18:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163054#M42323</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-03T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset too large to export to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163055#M42324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I swear I don't why people resort to excel when they have access to SAS .&lt;/P&gt;&lt;P&gt;Aside from the ugly code, the answer is within a couple of lines of modifications:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME f TEMP;&amp;nbsp; * allocate a temporary file ;&lt;/P&gt;&lt;P&gt;DATA FINAL_Last1 (KEEP=Summing);&lt;/P&gt;&lt;P&gt;SET FINAL_Last;&lt;/P&gt;&lt;P&gt;FILE f; * write to temporary file ;&lt;/P&gt;&lt;P&gt;Summing= Z1s||y1s||X1||Z2s||y2s||Z3s||X2||Z4s||y3s||Z5s||X3||y4s||Z6s;&lt;/P&gt;&lt;P&gt;PUT 'eval=' summing $QUOTE. ';'&amp;nbsp; summing= '; OUTPUT;';&amp;nbsp; * write this out ;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FSLIST FILEREF=f; RUN; * this is so you can look at the code ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA results; * data set with the answer ;&lt;/P&gt;&lt;P&gt;%include f;&amp;nbsp; * this includes the code we're going to write ;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 18:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Dataset-too-large-to-export-to-Excel/m-p/163055#M42324</guid>
      <dc:creator>rcwright</dc:creator>
      <dc:date>2014-07-03T18:36:51Z</dc:date>
    </item>
  </channel>
</rss>

