<?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: Deliverying Information Delivery Portal output as native Excel binary file in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Deliverying-Information-Delivery-Portal-output-as-native-Excel/m-p/106227#M3779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you use ODS, you are creating ASCII text files (either CSV, HTML or XML) that Excel knows how to open and render. I see you are using PHTML -- this is an HTML format with very little style (and not an XML format).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The only ways to deliver true, binary Excel files is to use PROC EXPORT or the LIBNAME engine for Excel. You might want to work with Tech Support on this question, because you would NOT use a stored process the way you are -- with ODS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 19:14:06 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-08-28T19:14:06Z</dc:date>
    <item>
      <title>Deliverying Information Delivery Portal output as native Excel binary file</title>
      <link>https://communities.sas.com/t5/Developers/Deliverying-Information-Delivery-Portal-output-as-native-Excel/m-p/106226#M3778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been given the requirement of downloading a custom report as a native Excel binary file and not as a XML file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user selects options in SAS Information Delivery Portal to create a custom report and then this report is returned to the user as an Excel file.&amp;nbsp; The simplified code below is what I currently have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;nbsp; Begin EG generated code (do not edit this line);&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;nbsp; Stored process registered by&lt;/P&gt;&lt;P&gt;*&amp;nbsp; Enterprise Guide Stored Process Manager V4.3&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;nbsp; ====================================================================&lt;/P&gt;&lt;P&gt;*&amp;nbsp; Stored process name: Stored Process for DDE&lt;/P&gt;&lt;P&gt;*&amp;nbsp; ====================================================================&lt;/P&gt;&lt;P&gt;*;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ProcessBody;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;data null_;&lt;/P&gt;&lt;P&gt;rc = stpsrv_header('Content-type','application/vnd.ms-excel');&lt;/P&gt;&lt;P&gt;rc = stpsrv_header('Content-disposition','attachment; filename=_.xls');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let _odsdest=phtml;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%STPBEGIN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%STPEND;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;nbsp; Begin EG generated code (do not edit this line);&lt;/P&gt;&lt;P&gt;;*';*";*/;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;nbsp; End EG generated code (do not edit this line);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 16:14:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Deliverying-Information-Delivery-Portal-output-as-native-Excel/m-p/106226#M3778</guid>
      <dc:creator>PSI_frank</dc:creator>
      <dc:date>2012-08-28T16:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deliverying Information Delivery Portal output as native Excel binary file</title>
      <link>https://communities.sas.com/t5/Developers/Deliverying-Information-Delivery-Portal-output-as-native-Excel/m-p/106227#M3779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you use ODS, you are creating ASCII text files (either CSV, HTML or XML) that Excel knows how to open and render. I see you are using PHTML -- this is an HTML format with very little style (and not an XML format).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The only ways to deliver true, binary Excel files is to use PROC EXPORT or the LIBNAME engine for Excel. You might want to work with Tech Support on this question, because you would NOT use a stored process the way you are -- with ODS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 19:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Deliverying-Information-Delivery-Portal-output-as-native-Excel/m-p/106227#M3779</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-08-28T19:14:06Z</dc:date>
    </item>
  </channel>
</rss>

