<?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: _webout with Proc Export? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393835#M5512</link>
    <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Some performance issues with the ODS Excel destination were corrected in SAS 9.4 M4, and more changes were made in the upcoming M5 release. &amp;nbsp;As a workaround, you can start the SAS Server with a larger value for the MEMSIZE option as mentioned in this SAS Note:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;STRONG&gt;Problem Note 56985: An out of memory condition might occur when you use the ODS destination for Excel with large tables&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;A href="http://support.sas.com/kb/56/985.html" target="_blank"&gt;http://support.sas.com/kb/56/985.html&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;A larger value of MEMSIZE helps with out-of-memory conditions but likely won't do much for overall execution time.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC EXPORT or the one of the LIBNAME engines may be an alternative for you. &amp;nbsp;Workbooks created using the SAS/ACCESS to PC FIles Interface contain only the data, and no markup. &amp;nbsp;In other words, you don't get the rich formatting that the ODS destinations&amp;nbsp;provide. &amp;nbsp;Is that acceptable to you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2017 11:17:23 GMT</pubDate>
    <dc:creator>Vince_SAS</dc:creator>
    <dc:date>2017-09-07T11:17:23Z</dc:date>
    <item>
      <title>_webout with Proc Export?</title>
      <link>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393351#M5508</link>
      <description>&lt;P&gt;I have a stored process which creates excel extracts and let the user downloads on thier system. Currently, I am using ODS excel with _webout to create spreadhseets having multiple tabs. This method works fine when there are a couple of thousand of records but perform poorly for larger extracts.&lt;/P&gt;
&lt;P&gt;I cannot use ODS CSV as it dont creates multiple tabs spreadshhet. I dont want to use ODS tagest.excelxp as it dont creates native excel file and physical file would be huge for 100K spreadhseet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone suggested me that using Proc EXPORT would be more effieicnt that above techniques. but I&amp;nbsp;am not sure if I can use that with _webout.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if anyone has used Proc Export with _webout or can suggest better aproach to create excel file which is multi-tabs and let business user download extract to thier system using streaming output?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 19:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393351#M5508</guid>
      <dc:creator>mrg1212005</dc:creator>
      <dc:date>2017-09-05T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: _webout with Proc Export?</title>
      <link>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393395#M5509</link>
      <description>&lt;P&gt;PROC EXPORT or the LIBNAME EXCEL or XLSX engines would be worth exploring. SAS/ACCESS for PC File Formats would need to be installed and licensed for these to work.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 22:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393395#M5509</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-09-05T22:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: _webout with Proc Export?</title>
      <link>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393525#M5510</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;What version of SAS are you using, and do you license the SAS/ACCESS to PC File Formats product?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 12:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393525#M5510</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-09-06T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: _webout with Proc Export?</title>
      <link>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393578#M5511</link>
      <description>&lt;P&gt;Vince- I am using SAS v9.4_M4. I also have SAS/ACCESS to PC files,&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 14:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393578#M5511</guid>
      <dc:creator>mrg1212005</dc:creator>
      <dc:date>2017-09-06T14:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: _webout with Proc Export?</title>
      <link>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393835#M5512</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Some performance issues with the ODS Excel destination were corrected in SAS 9.4 M4, and more changes were made in the upcoming M5 release. &amp;nbsp;As a workaround, you can start the SAS Server with a larger value for the MEMSIZE option as mentioned in this SAS Note:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;STRONG&gt;Problem Note 56985: An out of memory condition might occur when you use the ODS destination for Excel with large tables&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;A href="http://support.sas.com/kb/56/985.html" target="_blank"&gt;http://support.sas.com/kb/56/985.html&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;A larger value of MEMSIZE helps with out-of-memory conditions but likely won't do much for overall execution time.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC EXPORT or the one of the LIBNAME engines may be an alternative for you. &amp;nbsp;Workbooks created using the SAS/ACCESS to PC FIles Interface contain only the data, and no markup. &amp;nbsp;In other words, you don't get the rich formatting that the ODS destinations&amp;nbsp;provide. &amp;nbsp;Is that acceptable to you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 11:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393835#M5512</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-09-07T11:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: _webout with Proc Export?</title>
      <link>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393857#M5513</link>
      <description>&lt;P&gt;For large files, I've found PROC EXPORT to be much faster than just about any ODS destination combined with PROC PRINT or PROC REPORT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Vince says, you don't get the pretty formatting with PROC EXPORT, but when you just want a way for users to pull "raw" data into Excel, it works fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I typically write the Excel file to some temp location, then (after some automated log checking), stream it back to the _webout with&amp;nbsp; a data _null_ step.&amp;nbsp; Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  proc export data=MyData
              outfile="%sysfunc(pathname(work))/somefile.xlsx" 
              dbms=xlsx
              label 
              replace
  ;
 run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; *Binary copy code from http://support.sas.com/kb/6/588.html, IO think there are  ;&lt;BR /&gt;  *better ways to do this if you google a bit;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file _webout recfm=s;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "%sysfunc(pathname(work))/somefile.xlsx" recfm=n;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_ = 1 then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = stpsrv_header('Content-type','application/vnd.ms-excel');&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = stpsrv_header('Content-disposition',"attachment; filename=MyExcel.xlsx");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input c $char1.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put c $char1. @@;&lt;BR /&gt;&amp;nbsp; run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Sep 2017 13:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393857#M5513</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-09-07T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: _webout with Proc Export?</title>
      <link>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393911#M5514</link>
      <description>Thanks. It worked fantastically for me.</description>
      <pubDate>Thu, 07 Sep 2017 15:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-with-Proc-Export/m-p/393911#M5514</guid>
      <dc:creator>mrg1212005</dc:creator>
      <dc:date>2017-09-07T15:08:01Z</dc:date>
    </item>
  </channel>
</rss>

