<?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: Displaying &amp;quot;Please Wait&amp;quot; for long running stored processes (multiple outputs) in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Displaying-quot-Please-Wait-quot-for-long-running-stored/m-p/239895#M3772</link>
    <description>&lt;P&gt;I found this post from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46760"&gt;@boemskats﻿&lt;/a&gt;very helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Stored-Processes/Stored-process-writing-to-the-browser-and-excelxp-tagset/m-p/152833#M2666" target="_blank"&gt;https://communities.sas.com/t5/SAS-Stored-Processes/Stored-process-writing-to-the-browser-and-excelxp-tagset/m-p/152833#M2666&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And discussed more in this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Stored-Processes/Is-there-documentation-on-REPLAY-stored-process/m-p/164836/highlight/true#M2721" target="_blank"&gt;https://communities.sas.com/t5/SAS-Stored-Processes/Is-there-documentation-on-REPLAY-stored-process/m-p/164836/highlight/true#M2721&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My implementation of this is something like:&lt;/P&gt;&lt;P&gt;1. Have a stored process that produces an the Excel file (or whatever) and writes it to some temp space on the SAS server.&lt;/P&gt;&lt;P&gt;2. That server returns an html page which has the please wait message and and iframe.&lt;/P&gt;&lt;P&gt;3. The iframe invokes a second stored process (StreamResults) via URL which streams the Excel file back to the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically, as I understand it, a browser cannot get receive both an html file and an excel file in one request from a web server, because you only have one header to define the content as html or excel. &amp;nbsp;So the workaround is to have the stored proces return an html file, and then that html file can invoke a second stored process (in an iframe) which delivers the excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It takes a bit of work to set up, but it's been working well for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2015 00:38:23 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2015-12-18T00:38:23Z</dc:date>
    <item>
      <title>Displaying "Please Wait" for long running stored processes (multiple outputs)</title>
      <link>https://communities.sas.com/t5/Developers/Displaying-quot-Please-Wait-quot-for-long-running-stored/m-p/105439#M3770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi guys,&amp;nbsp; I have a stored process that takes several min to complete.&amp;nbsp; I found a paper (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/kb/26/181.html"&gt;http://support.sas.com/kb/26/181.html&lt;/A&gt;&lt;SPAN&gt;)&amp;nbsp; that describes how to display a "Please Wait" message while the stored proc runs.&amp;nbsp; That works great!&amp;nbsp; My issue is that the output of my stored proc is an Excel workbook generated with the ExcelXP tagset, not HTML.&amp;nbsp; Using the linked sample results in the modified headers being ignored and my results are sent to HTML, not Excel.&amp;nbsp; Is there any way to display a "Please Wait" message while the stored proc is running, then use the headers to open a "Open/Save As" box for Excel?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 15:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Displaying-quot-Please-Wait-quot-for-long-running-stored/m-p/105439#M3770</guid>
      <dc:creator>FrankE</dc:creator>
      <dc:date>2012-12-20T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying "Please Wait" for long running stored processes (multiple outputs)</title>
      <link>https://communities.sas.com/t5/Developers/Displaying-quot-Please-Wait-quot-for-long-running-stored/m-p/227362#M3771</link>
      <description>&lt;P&gt;Hello Frank,&lt;/P&gt;
&lt;P&gt;I have the same issue. Did you find the solution for that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lokraj&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 20:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Displaying-quot-Please-Wait-quot-for-long-running-stored/m-p/227362#M3771</guid>
      <dc:creator>Lokraj</dc:creator>
      <dc:date>2015-09-25T20:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying "Please Wait" for long running stored processes (multiple outputs)</title>
      <link>https://communities.sas.com/t5/Developers/Displaying-quot-Please-Wait-quot-for-long-running-stored/m-p/239895#M3772</link>
      <description>&lt;P&gt;I found this post from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46760"&gt;@boemskats﻿&lt;/a&gt;very helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Stored-Processes/Stored-process-writing-to-the-browser-and-excelxp-tagset/m-p/152833#M2666" target="_blank"&gt;https://communities.sas.com/t5/SAS-Stored-Processes/Stored-process-writing-to-the-browser-and-excelxp-tagset/m-p/152833#M2666&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And discussed more in this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Stored-Processes/Is-there-documentation-on-REPLAY-stored-process/m-p/164836/highlight/true#M2721" target="_blank"&gt;https://communities.sas.com/t5/SAS-Stored-Processes/Is-there-documentation-on-REPLAY-stored-process/m-p/164836/highlight/true#M2721&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My implementation of this is something like:&lt;/P&gt;&lt;P&gt;1. Have a stored process that produces an the Excel file (or whatever) and writes it to some temp space on the SAS server.&lt;/P&gt;&lt;P&gt;2. That server returns an html page which has the please wait message and and iframe.&lt;/P&gt;&lt;P&gt;3. The iframe invokes a second stored process (StreamResults) via URL which streams the Excel file back to the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically, as I understand it, a browser cannot get receive both an html file and an excel file in one request from a web server, because you only have one header to define the content as html or excel. &amp;nbsp;So the workaround is to have the stored proces return an html file, and then that html file can invoke a second stored process (in an iframe) which delivers the excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It takes a bit of work to set up, but it's been working well for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 00:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Displaying-quot-Please-Wait-quot-for-long-running-stored/m-p/239895#M3772</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2015-12-18T00:38:23Z</dc:date>
    </item>
  </channel>
</rss>

