<?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 Excel multiple sheet output using Stored Process in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Excel-multiple-sheet-output-using-Stored-Process/m-p/497066#M5774</link>
    <description>&lt;P&gt;Hi Team, We are trying to provide an options to generate the RTF, PDF and Excel file using STP. We are able to generate an output in RTF and in PDF format, but while trying to generate the Excel file the STP is giving the _webout related error, attached log file and below is the code snippet.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Sep 2018 17:31:26 GMT</pubDate>
    <dc:creator>dipanarya1</dc:creator>
    <dc:date>2018-09-19T17:31:26Z</dc:date>
    <item>
      <title>Excel multiple sheet output using Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Excel-multiple-sheet-output-using-Stored-Process/m-p/497066#M5774</link>
      <description>&lt;P&gt;Hi Team, We are trying to provide an options to generate the RTF, PDF and Excel file using STP. We are able to generate an output in RTF and in PDF format, but while trying to generate the Excel file the STP is giving the _webout related error, attached log file and below is the code snippet.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 17:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Excel-multiple-sheet-output-using-Stored-Process/m-p/497066#M5774</guid>
      <dc:creator>dipanarya1</dc:creator>
      <dc:date>2018-09-19T17:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Excel multiple sheet output using Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Excel-multiple-sheet-output-using-Stored-Process/m-p/497069#M5775</link>
      <description>&lt;P&gt;Attached log file.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 17:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Excel-multiple-sheet-output-using-Stored-Process/m-p/497069#M5775</guid>
      <dc:creator>dipanarya1</dc:creator>
      <dc:date>2018-09-19T17:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Excel multiple sheet output using Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Excel-multiple-sheet-output-using-Stored-Process/m-p/497072#M5776</link>
      <description>Please note the macro attached in first post is being called up in SAS STP.</description>
      <pubDate>Wed, 19 Sep 2018 17:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Excel-multiple-sheet-output-using-Stored-Process/m-p/497072#M5776</guid>
      <dc:creator>dipanarya1</dc:creator>
      <dc:date>2018-09-19T17:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Excel multiple sheet output using Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/Excel-multiple-sheet-output-using-Stored-Process/m-p/497145#M5777</link>
      <description>&lt;P&gt;How are you calling the STP?&amp;nbsp; From EG, a web browser, Excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are calling it from a web browser I'd suggest setting to `stream` output and removing the automatic `%STPBEGIN;` / `%STPEND;` macros.&amp;nbsp; This will ensure that any output sent to the `_webout` fileref will be received 'cleanly' by the client.&amp;nbsp; If downloading files then you&amp;nbsp;will&amp;nbsp;also have to set the http headers, eg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
&amp;nbsp; rc = stpsrv_header('Content-type','application/excel');
&amp;nbsp; rc = stpsrv_header('Content-disposition',"attachment; filename=myfile.xls");
run;&lt;/CODE&gt;&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;</description>
      <pubDate>Wed, 19 Sep 2018 21:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Excel-multiple-sheet-output-using-Stored-Process/m-p/497145#M5777</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2018-09-19T21:06:55Z</dc:date>
    </item>
  </channel>
</rss>

