<?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: Problem while exporting the output to excel in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Problem-while-exporting-the-output-to-excel/m-p/31374#M2600</link>
    <description>Hi:&lt;BR /&gt;
  The APPSRV_HEADER function was designed for use with SAS/IntrNet. The STPSRV_HEADER function is the one to use for stored processes. I have never used a %LET statement and %SYSFUNC to change the value of the the content-type header, so I can't comment on whether that is appropriate or not.&lt;BR /&gt;
&lt;BR /&gt;
  The only thing I can tell you is that if you use the tagsets.ExcelXP destination, you are creating a stored process that can only be executed in/from a limited number of client applications. You can execute this SP from the Portal, from the Stored Process Web Application (via URL). You could execute this from a custom front end -- JSP or whatever. &lt;BR /&gt;
&lt;BR /&gt;
  You MAY be able to execute this SP from within EG; however you will NOT be able to execute this SP from within the SAS/Addin for Microsoft Office. Word only "accepts" HTML, RTF or SASReport XML results from a SP; Excel only "accepts" HTML, CSV or SASReport XML results from an SP; and PPT only "accepts" SASReport XML from an SP.&lt;BR /&gt;
&lt;BR /&gt;
There have been several examples of using STPSRV_HEADER with stored processes that have already been posted to this forum. You should be able to find them with a search on STPSRV_HEADER in the forum search box.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 16 Jul 2008 16:33:48 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-07-16T16:33:48Z</dc:date>
    <item>
      <title>Problem while exporting the output to excel</title>
      <link>https://communities.sas.com/t5/Developers/Problem-while-exporting-the-output-to-excel/m-p/31373#M2599</link>
      <description>Hi &lt;BR /&gt;
I have requirement to export report output to excel using the below piece of code as a Stored Process at runtime&lt;BR /&gt;
I have Microsoft office 2007.&lt;BR /&gt;
/**************************************/&lt;BR /&gt;
%global _odsdest _odsoptions ;&lt;BR /&gt;
%let _odsdest = tagsets.excelXP;&lt;BR /&gt;
%let _odsoptions =;&lt;BR /&gt;
%let rv = %sysfunc(appsrv_header(Content-type,application/vnd.ms-excel));&lt;BR /&gt;
%stpbegin;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
%stpend;&lt;BR /&gt;
/**************************************/&lt;BR /&gt;
So Kindly let me know whether it is supported or not or there is any other alternative</description>
      <pubDate>Wed, 16 Jul 2008 04:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Problem-while-exporting-the-output-to-excel/m-p/31373#M2599</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-16T04:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting the output to excel</title>
      <link>https://communities.sas.com/t5/Developers/Problem-while-exporting-the-output-to-excel/m-p/31374#M2600</link>
      <description>Hi:&lt;BR /&gt;
  The APPSRV_HEADER function was designed for use with SAS/IntrNet. The STPSRV_HEADER function is the one to use for stored processes. I have never used a %LET statement and %SYSFUNC to change the value of the the content-type header, so I can't comment on whether that is appropriate or not.&lt;BR /&gt;
&lt;BR /&gt;
  The only thing I can tell you is that if you use the tagsets.ExcelXP destination, you are creating a stored process that can only be executed in/from a limited number of client applications. You can execute this SP from the Portal, from the Stored Process Web Application (via URL). You could execute this from a custom front end -- JSP or whatever. &lt;BR /&gt;
&lt;BR /&gt;
  You MAY be able to execute this SP from within EG; however you will NOT be able to execute this SP from within the SAS/Addin for Microsoft Office. Word only "accepts" HTML, RTF or SASReport XML results from a SP; Excel only "accepts" HTML, CSV or SASReport XML results from an SP; and PPT only "accepts" SASReport XML from an SP.&lt;BR /&gt;
&lt;BR /&gt;
There have been several examples of using STPSRV_HEADER with stored processes that have already been posted to this forum. You should be able to find them with a search on STPSRV_HEADER in the forum search box.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 16 Jul 2008 16:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Problem-while-exporting-the-output-to-excel/m-p/31374#M2600</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-07-16T16:33:48Z</dc:date>
    </item>
  </channel>
</rss>

