<?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: Stored Process - output to XLSX in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350735#M18342</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I am running your example Try3, I get prompted by the browser to eiter open or save the excel file. I choose save. When I then try to open it, I get an error message that says that either the file format or filetype is Invalid. Why do I get this message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Morten Fredrik&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 07:49:13 GMT</pubDate>
    <dc:creator>AMUMOR_SAS</dc:creator>
    <dc:date>2017-04-18T07:49:13Z</dc:date>
    <item>
      <title>Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/349358#M18332</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have several&amp;nbsp;STP programs that uses the following output in Excel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;%if &amp;amp;Valg. = EXCEL %then %do;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Set HTTP headers */&lt;/P&gt;&lt;P&gt;&amp;nbsp; rc = stpsrv_header('Content-type','application/vnd.ms-excel');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Prompt to SAVE or OPEN the attachment file named test.xls using Excel */&lt;/P&gt;&lt;P&gt;rc = stpsrv_header('Content-disposition','attachment; filename=filename.xls');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%End;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I have to do to get a prompt to SAVE&amp;nbsp;ot OPEN&amp;nbsp;for XLSX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Morten Fredrik Amundsen&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 10:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/349358#M18332</guid>
      <dc:creator>AMUMOR_SAS</dc:creator>
      <dc:date>2017-04-12T10:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/349466#M18333</link>
      <description>Hi:&lt;BR /&gt;  There has to be more to your stored process than the content-type header. What destination are you using or what does the rest of your code look like? Are you using an ODSDEST override or using _WEBOUT? Are you using %STPBEGIN? How are you invoking this SP? In the Information Delivery Portal or using the Stored Process Web App? There is a separate forum for Stored Processes and you might find more help there. But they will want to know the same information. Just showing the content-type header is not enough information.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 12 Apr 2017 14:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/349466#M18333</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-04-12T14:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350237#M18338</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, of course there is more. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I'm sorry that my information&amp;nbsp;was'nt acurate enough.&lt;/P&gt;&lt;P&gt;I am using ODSDEST override, and %STPBEGIN and %STPEND. I invoke the STP using the Delivery Portal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Morten Fredrik Amundsen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2017 09:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350237#M18338</guid>
      <dc:creator>AMUMOR_SAS</dc:creator>
      <dc:date>2017-04-15T09:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350249#M18340</link>
      <description>&lt;P&gt;And for the ODSDEST override, your destination is??? MSOFFICE2K? TAGSETS.EXCELXP? CSV? &lt;BR /&gt;&lt;BR /&gt; I don't understand the rest of your question: "What do I have to do to get a prompt to SAVE ot OPEN for XLSX?" When I run a stored process that creates Excel output using TAGSETS.EXCELXP for example after I supply the prompts, the SP runs and I get prompted by the browser to either Open or Save the file. SAS doesn't control that popup window, it comes from the browser. I have some examples of code we used in the Stored Process class -- but they used TAGSETS.EXCELXP because that version of the class was before ODS EXCEL was available.&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My suggestion is that you try each of these SPs separately, as simple stored processes, outside of your fancy macro code. These only do a PROC PRINT with SASHELP.CLASS, no LIBNAME needed. You should be able to simply register these and then run them to see which one works best. (I like method #1 with _webout because if I have suboptions to pass in I think it is easier to use this method then %stpbegin.)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;** Test 1: TAGSETS.EXCELXP with _Webout;
data _null_;
  rc = stpsrv_header('Content-type','application/vnd.ms-excel;');
  rc = stpsrv_header('Content-disposition','attachment; filename=try1.xls');
run;
ods listing close;

ods tagsets.excelxp body=_webout style=sasweb;

  proc print data=sashelp.class noobs;
    title 'test1 excelxp mimetype=application/vnd.ms-excel';
  run; 

ods tagsets.excelxp close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
** Test 2: TAGSETS.EXCELXP with %stpbegin;

%global _odsdest _odsstyle _odsstylesheet;

%let _odsdest=tagsets.excelxp;
%let _odsstyle=sasweb;
%let _odsstylesheet=;

data _null_;
  rc = stpsrv_header('Content-type','application/vnd.ms-excel;');
  rc = stpsrv_header('Content-disposition','attachment; filename=try2.xls');
run;

*ProcessBody;
%stpbegin;

  proc print data=sashelp.class noobs;
    title 'test2 excelxp mimetype=application/vnd.ms-excel';
  run; 

%stpend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
** Test 3: ODS EXCEL (if you have 9.4) with %stpbegin;

%global _odsdest _odsstyle _odsstylesheet;

%let _odsdest=excel;
%let _odsstyle=sasweb;
%let _odsstylesheet=;

data _null_;
  rc = stpsrv_header('Content-type','application/vnd.ms-excel;');
  rc = stpsrv_header('Content-disposition','attachment; filename=try3.xlsx');
run;

*ProcessBody;
%stpbegin;

  proc print data=sashelp.class noobs;
    title 'test3 ods excel mimetype=application/vnd.ms-excel';
  run; 

%stpend;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Apr 2017 13:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350249#M18340</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-04-15T13:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350726#M18341</link>
      <description>Hello again,&lt;BR /&gt;When I run SP that creates Excel, I use destination MSOFFICE2K. I get prompted by the browser to either Open or Save the excel file. This creates the old excel format (xls).&lt;BR /&gt;I want to create the new excel format, xlsx. Which destination should I use to make it work?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Morten Fredrik Amundsen&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Apr 2017 07:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350726#M18341</guid>
      <dc:creator>AMUMOR_SAS</dc:creator>
      <dc:date>2017-04-18T07:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350735#M18342</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I am running your example Try3, I get prompted by the browser to eiter open or save the excel file. I choose save. When I then try to open it, I get an error message that says that either the file format or filetype is Invalid. Why do I get this message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Morten Fredrik&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 07:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350735#M18342</guid>
      <dc:creator>AMUMOR_SAS</dc:creator>
      <dc:date>2017-04-18T07:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350772#M18343</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tryed all three examples that you did post me. Both Example1 and Example2 where successful, but Example3, in which the excel file Try3 was created, was unsuccessful.&lt;/P&gt;&lt;P&gt;The excel file Try3 is created, but it is impossible to open. As I mentioned earlier, I get an error message which tells me that either the file format or file type is invalid. How come?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Morten Fredrik&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 10:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350772#M18343</guid>
      <dc:creator>AMUMOR_SAS</dc:creator>
      <dc:date>2017-04-18T10:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350837#M18344</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look here &lt;A href="https://communities.sas.com/t5/SAS-Stored-Processes/ODS-EXCEL-in-Web-StoredProcess/td-p/286083" target="_blank"&gt;https://communities.sas.com/t5/SAS-Stored-Processes/ODS-EXCEL-in-Web-StoredProcess/td-p/286083&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basicaly you will use the follwoing code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data _null_;
  rc = stpsrv_header('Content-type','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
  rc = stpsrv_header('Content-disposition','attachment; filename=try3.xlsx');
run;

ods excel file = _webout style=Plateau;
proc print data=sashelp.cars;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;make sure you do not have the %stpbegin and %stpend somewhere in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 13:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350837#M18344</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-04-18T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350842#M18345</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Morten Fredrik&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 13:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/350842#M18345</guid>
      <dc:creator>AMUMOR_SAS</dc:creator>
      <dc:date>2017-04-18T13:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473314#M21151</link>
      <description>&lt;P&gt;...waiting message...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to post a waiting message in STP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Displaying the &amp;quot;Please Wait&amp;quot; message for a long-running stored process" href="http://support.sas.com/kb/30/889.html" target="_self"&gt;Displaying the "Please Wait" message for a long-running stored process&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 11:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473314#M21151</guid>
      <dc:creator>niko_gallo</dc:creator>
      <dc:date>2018-06-26T11:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473318#M21152</link>
      <description>Hi niko_gallo,&lt;BR /&gt;&lt;BR /&gt;Thanks very much for this "Please Wait" Example. I'll test it.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Morten Fredrik</description>
      <pubDate>Tue, 26 Jun 2018 11:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473318#M21152</guid>
      <dc:creator>AMUMOR_SAS</dc:creator>
      <dc:date>2018-06-26T11:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473338#M21153</link>
      <description>&lt;P&gt;hi Morten,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my SAS code is similar...is:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods excel file=_webout style=plateau;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;rc = stpsrv_header('Content-type','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');&lt;BR /&gt;rc = stpsrv_header("Content-disposition","attachment; filename=&amp;amp;_name_report._&amp;amp;_dt_report_ymd..XLS");&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data =&amp;amp;_flnm. noobs label ;run;&lt;BR /&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 12:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473338#M21153</guid>
      <dc:creator>niko_gallo</dc:creator>
      <dc:date>2018-06-26T12:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473376#M21156</link>
      <description>Hi:&lt;BR /&gt;  Your Content Type DATA _NULL_ step must be BEFORE the ODS EXCEL statement. Look again at Bruno's code in the solution to the post.&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 26 Jun 2018 13:15:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473376#M21156</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-06-26T13:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473395#M21157</link>
      <description>&lt;P&gt;hi chintia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the following solution it's wrong! because print the xls on the webpage...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data _null_;
     file _webout;
     put '&amp;lt;html&amp;gt;';
     put '&amp;lt;body&amp;gt;';
     put '&amp;lt;div id="pleasewait"&amp;gt;';
     put '&amp;lt;h2&amp;gt;Please Wait. Your request is being processed.&amp;lt;/h2&amp;gt;';  
     put '&amp;lt;/div&amp;gt;';  
     do i = 1 to 10;
       put "                                       ";
     end;
   run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; _null_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  rc &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; stpsrv_header&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'Content-type'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  rc &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; stpsrv_header&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'Content-disposition'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'attachment; filename=try3.xlsx'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;excel&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;file&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; _webout &lt;SPAN class="token keyword"&gt;style&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;Plateau&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;print&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;sashelp&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;cars&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;excel&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;close&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="waiting message.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21413i2438196D1AB54185/image-size/large?v=v2&amp;amp;px=999" role="button" title="waiting message.png" alt="waiting message.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 14:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473395#M21157</guid>
      <dc:creator>niko_gallo</dc:creator>
      <dc:date>2018-06-26T14:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473429#M21158</link>
      <description>HI: &lt;BR /&gt;In your original question, you posted ODS EXCEL code. The original question that I answered was only about the placement of your Content-type header needing to be outside of the ODS EXCEL call.&lt;BR /&gt;&lt;BR /&gt;  You've added extra code that sends a waiting message, as illustrated in this Tech Support note:&lt;BR /&gt;&lt;A href="http://support.sas.com/kb/30/889.html" target="_blank"&gt;http://support.sas.com/kb/30/889.html&lt;/A&gt; and my guess is that you have some kind of timing issue. It is possible that your Stored Process doesn't actually NEED a waiting message and so the ODS EXCEL results are coming back to the browser WITH the waiting message. This would be something you need to work on with Tech Support. Someone needs to look at ALL of your code and ALL of your stored process metadata and understand exactly HOW you are submitting the stored process (from a client application, from the Add-in for Microsoft Office, from the Stored Process Web Application...).&lt;BR /&gt;&lt;BR /&gt;  To submit a track to Tech Support, you can fill out this form &lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt; and reference this community forum posting in your mail to them with the other required information.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 26 Jun 2018 15:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473429#M21158</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-06-26T15:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473446#M21159</link>
      <description>&lt;P&gt;hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i submit my STP from SAS portal (Windows IE) and this is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*ProcessBody;&lt;BR /&gt;ods excel file=_webout style=plateau;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;rc = stpsrv_header('Content-type','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');&lt;BR /&gt;rc = stpsrv_header("Content-disposition","attachment; filename=report.XLS");&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data =report (drop = dtreport) noobs label ;run;&lt;BR /&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not have any problem with this sas-code...so...i want to insert the waiting message&amp;nbsp;between when i submit the STP and when i save the output in xls format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Niko&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473446#M21159</guid>
      <dc:creator>niko_gallo</dc:creator>
      <dc:date>2018-06-26T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473503#M21160</link>
      <description>Hi, you have 2 different types of output coming to the browser. You have an HTML-based waiting message and an Excel XML-based workbook.  Therefore, you need 2 "pipelines" from the server back to the browser. One of those "pipelines" will need to have an Content-type header for the HTML waiting message, then the second "pipeline" will return the ODS Excel output as long as the Content-type header signals that the second pipeline is going to be XML that needs to be handled differently than the HTML.&lt;BR /&gt;&lt;BR /&gt;I still think your best resource is opening a track with Tech Support.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 26 Jun 2018 17:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473503#M21160</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-06-26T17:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473560#M21166</link>
      <description>Ooook</description>
      <pubDate>Tue, 26 Jun 2018 22:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/473560#M21166</guid>
      <dc:creator>niko_gallo</dc:creator>
      <dc:date>2018-06-26T22:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/480424#M21321</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have a problem with ouptut xlsx with a stored process server.&lt;/P&gt;&lt;P&gt;any suggestion?&lt;BR /&gt;thanks in advance&lt;/P&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;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;SAS-CODE&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ods excel options(sheet_name="&amp;amp;_report_name.") file=_webout style=plateau;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;rc = stpsrv_header('Content-type','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');&lt;BR /&gt;rc = stpsrv_header("Content-disposition","attachment; filename=&amp;amp;_report_name._&amp;amp;_dt_report_ymd..XLSX");&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data =&amp;amp;_report_name. noobs label ;run;&lt;BR /&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;LOG STORED PROCESS&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;NOTE: There were &lt;FONT color="#FF6600"&gt;283923&lt;/FONT&gt; observations read from the data set WORK.CENTRISC.&lt;BR /&gt;NOTE: The PROCEDURE PRINT printed pages 1-977.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 1:54.75&lt;BR /&gt;cpu time 1:48.84&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ERROR: An exception has been encountered.&lt;BR /&gt;Please contact technical support and provide them with the following traceback information:&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 13:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/480424#M21321</guid>
      <dc:creator>niko_gallo</dc:creator>
      <dc:date>2018-07-23T13:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - output to XLSX</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/480475#M21322</link>
      <description>Hi:&lt;BR /&gt;  The error message explains that the step failed because of insufficient memory and looks like you got traceback information for Tech Support. Working with Tech Support seems your best resource for this issue.&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 23 Jul 2018 15:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stored-Process-output-to-XLSX/m-p/480475#M21322</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-07-23T15:13:14Z</dc:date>
    </item>
  </channel>
</rss>

