<?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: Export to excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777335#M247279</link>
    <description>Create a CSV or data source and link your Excel file to it. Update the CSV file and set the Excel file to refresh connections when opened. &lt;BR /&gt;&lt;A href="https://www.intheblack.com/articles/2016/06/01/an-easier-way-to-use-csv-files-in-excel" target="_blank"&gt;https://www.intheblack.com/articles/2016/06/01/an-easier-way-to-use-csv-files-in-excel&lt;/A&gt;</description>
    <pubDate>Fri, 29 Oct 2021 16:01:17 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-10-29T16:01:17Z</dc:date>
    <item>
      <title>Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777141#M247205</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am after some suggestions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a huge dataset around a million records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know and have done a proc export to csv and it works fine and is quick too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the ods excel option but it failed -&amp;nbsp;&lt;SPAN&gt;ERROR: The SAS System stopped processing this step because of insufficient memory. On further reading up, I understand that the ods excel options holds the whole table in memory before creating the excel and hence the failure. I don't&amp;nbsp;have the option to change the MEMSIZE at the moment.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Even though the csv file is ok, I need to be able to add some formatting and autofilter etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see that&amp;nbsp;ods tagsets.excelxp could be an option as it holds only cell at a time in memory if I am not mistaken.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But is that the only option I have or has anybody else got a better suggestion please ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 23:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777141#M247205</guid>
      <dc:creator>Anuz</dc:creator>
      <dc:date>2021-10-28T23:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777159#M247213</link>
      <description>&lt;P&gt;What version of SAS do you have? Prior to SAS 9.4M3 ODS EXCEL was pre-production and buggy. 9.4M5 is fairly stable.&lt;/P&gt;
&lt;P&gt;And how 'around a million records' are you?&amp;nbsp;Excel has a row limit of 1,048,576 rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/382230"&gt;@Anuz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am after some suggestions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a huge dataset around a million records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know and have done a proc export to csv and it works fine and is quick too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the ods excel option but it failed -&amp;nbsp;&lt;SPAN&gt;ERROR: The SAS System stopped processing this step because of insufficient memory. On further reading up, I understand that the ods excel options holds the whole table in memory before creating the excel and hence the failure. I don't&amp;nbsp;have the option to change the MEMSIZE at the moment.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Even though the csv file is ok, I need to be able to add some formatting and autofilter etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see that&amp;nbsp;ods tagsets.excelxp could be an option as it holds only cell at a time in memory if I am not mistaken.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But is that the only option I have or has anybody else got a better suggestion please ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 03:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777159#M247213</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-29T03:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777166#M247214</link>
      <description>&lt;P&gt;In my experience ODS is to be avoided with large amounts of data as it is VERY resource intensive. Either you will run out of memory or it will take a huge amount of time to run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not do your formatting in Excel after reading in the CSV? BTW managing a million rows in a spreadsheet is pushing the boundaries a bit...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 04:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777166#M247214</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-10-29T04:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777170#M247216</link>
      <description>&lt;P&gt;ODS is too slow for very large datasets. How about use proc export to generate a .xlsx file and then use DDE skill to format it?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 05:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777170#M247216</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2021-10-29T05:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777186#M247225</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;9.4 M3&lt;/P&gt;
&lt;P&gt;Very close to the million - but wont hit the limit -&amp;nbsp;&lt;SPAN&gt;1,048,576&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 08:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777186#M247225</guid>
      <dc:creator>Anuz</dc:creator>
      <dc:date>2021-10-29T08:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777193#M247227</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270406"&gt;@whymath&lt;/a&gt;&amp;nbsp;ok. I haven't really used DDE to format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My plan is to get my SAS script to be run on a scheduler. This creates a xls report on a daily basis. I need to some basic formatting like autofilter,title and a background color to the column headings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would that be possible ? Can you give me some pointers maybe ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 08:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777193#M247227</guid>
      <dc:creator>Anuz</dc:creator>
      <dc:date>2021-10-29T08:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777197#M247230</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270406"&gt;@whymath&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;ODS is too slow for very large datasets. How about use proc export to generate a .xlsx file and then use DDE skill to format it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One reason not to use DDE is that there are programs out there that use the same communications stuff that DDE uses and DDE may not work at all. Cisco Jabber is one such. You have to KILL the processes involved with Jabber not just close the program window if you have it running before DDE will work.(Ask me just how long it took to determine that was the cause the one job run once a year that I used DDE with and failed with nothing happening.)&amp;nbsp; Since Microsoft has basically stopped pushing/supporting DDE it becomes much harder to use&amp;nbsp; because compliance with DDE for other applications is no longer a requirement and who know how many other programs are interfering with the communications that DDE uses.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 09:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777197#M247230</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-29T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777200#M247232</link>
      <description>&lt;P&gt;Once upon a time about 80 lines was typical for a "page" of text. A file with around a million lines then consists of around 12,500 pages using that definition.&lt;/P&gt;
&lt;P&gt;Who is reading that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What kind of formatting is so important in a 12000 page document?&lt;/P&gt;
&lt;P&gt;Autofilter??? Might spend a LOT time waiting for that feature to return much of anything. Excel spends an awful lot of overhead with its internal displays. If a column contains thousands of value levels, which seems entirely likely with a million records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be better off making separate sheets for the levels of the most common "filtered" variables.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 09:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777200#M247232</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-29T09:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777219#M247236</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/382230"&gt;@Anuz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;9.4 M3&lt;/P&gt;
&lt;P&gt;Very close to the million - but wont hit the limit -&amp;nbsp;&lt;SPAN&gt;1,048,576&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is just a matter of time and will render all the time you spent wasted. Data keeps growing, always (40+ years in IT speaking here). Even when you don't expect it.&lt;/P&gt;
&lt;P&gt;A million of rows has no place in a toy tool like Excel. In our company, use of Excel for BI means is explicitly forbidden because we already had money-costing issues by people doing that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do all the heavy lifting in SAS, and write nice final reports (which won't extend beyond a few screen pages) to Excel so you pamper your managers.&lt;/P&gt;
&lt;P&gt;Even better, supply the final reports as HTML reports on the server.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 09:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777219#M247236</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-29T09:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777268#M247247</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;understand.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The scenario is that I need to make this data available to a BAU team that don't have access to databases or tools (like SAS) and are non-technical.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When they need they need to be able to access this data for analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any other way you can suggest that I can provide this data to the team ? I am now thinking maybe make it available as a table that can maybe open in MS access. at least that way they can query that table with filters in it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way I can export the table to an MS access friendly extract from SAS ? Any thoughts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 12:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777268#M247247</guid>
      <dc:creator>Anuz</dc:creator>
      <dc:date>2021-10-29T12:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777335#M247279</link>
      <description>Create a CSV or data source and link your Excel file to it. Update the CSV file and set the Excel file to refresh connections when opened. &lt;BR /&gt;&lt;A href="https://www.intheblack.com/articles/2016/06/01/an-easier-way-to-use-csv-files-in-excel" target="_blank"&gt;https://www.intheblack.com/articles/2016/06/01/an-easier-way-to-use-csv-files-in-excel&lt;/A&gt;</description>
      <pubDate>Fri, 29 Oct 2021 16:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777335#M247279</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-29T16:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777341#M247282</link>
      <description>&lt;P&gt;Create a template Excel file. &lt;BR /&gt;Create your filters/formats in a nice Excel TABLE - must be an Excel Table structure. &lt;BR /&gt;&lt;A href="https://www.intheblack.com/articles/2016/06/01/an-easier-way-to-use-csv-files-in-excel" target="_self"&gt;Link that table to a different source, CSV.&lt;/A&gt; &lt;BR /&gt;Use PROC EXPORT to export to the CSV/Sheet and then have your pivot table updated. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 16:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777341#M247282</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-29T16:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777399#M247312</link>
      <description>&lt;P&gt;What you export here is&amp;nbsp;&lt;U&gt;&lt;EM&gt;data&lt;/EM&gt;&lt;/U&gt;, not a&amp;nbsp;&lt;U&gt;&lt;EM&gt;report&lt;/EM&gt;&lt;/U&gt;, so no formatting is needed. Use data steps to write CSV files.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 19:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777399#M247312</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-29T19:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777472#M247359</link>
      <description>&lt;P&gt;PS any tabular system worth the money can read csv files.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Oct 2021 07:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/777472#M247359</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-30T07:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/805391#M317258</link>
      <description>&lt;P&gt;Our ongoing hackathon project can inject values into Excel/ Word/ PowerPoint cells without Microsoft DDE, it might be a solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 19:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel/m-p/805391#M317258</guid>
      <dc:creator>Bravez</dc:creator>
      <dc:date>2022-03-31T19:52:45Z</dc:date>
    </item>
  </channel>
</rss>

