<?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: SAS Stored Process &amp;quot;Please Wait&amp;quot; Message in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/306134#M5129</link>
    <description>&lt;P&gt;I found the proc template code that allows this to work. Note however that the macro source needs to be updated to replace:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html text = '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods tagsets.html4 text = '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is the only needed change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the proc template code that I got to work. Note that I freely acknowledge that I am not at all at expert in PROC TEMPLATE. This code was originally provided to me by Tech Support for a related issue. And I was able to tweak it for this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;path&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; work.tmplmst(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;update&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) sashelp.tmplmst(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;read&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;template&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;edit&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; tagsets.html4;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;define&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;event&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; text;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;start:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;trigger&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; rowcol;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;trigger&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; cell_value;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;finish:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;trigger&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; cell_value;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2016 00:50:25 GMT</pubDate>
    <dc:creator>DonH</dc:creator>
    <dc:date>2016-10-21T00:50:25Z</dc:date>
    <item>
      <title>SAS Stored Process "Please Wait" Message</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/301115#M5123</link>
      <description>&lt;P&gt;I've been using Don Henderson's "please wait" example macro (&lt;A href="http://www.sascommunity.org/wiki/Generating_Descriptive_Please_Wait_Messages_for_Long_Running_Stored_Processes" target="_blank"&gt;http://www.sascommunity.org/wiki/Generating_Descriptive_Please_Wait_Messages_for_Long_Running_Stored_Processes&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One issue I'm having is that the "Step 1, 2, 3 Completed.." message is not overwriting the previous message. &amp;nbsp;So in other words when the stored process is completed I still see all of the previous "please wait" messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wanting to overwite each one of those messages and just display the final result when the stored process is completed. &amp;nbsp;I've tried to wrap the output in %stpbegin and %stpend, but so far no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did not work:&lt;/P&gt;
&lt;P&gt;%stpbegin;&lt;/P&gt;
&lt;P&gt;%PleaseWaitExample;&lt;/P&gt;
&lt;P&gt;%stpend;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 20:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/301115#M5123</guid>
      <dc:creator>mdavidson</dc:creator>
      <dc:date>2016-09-27T20:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process "Please Wait" Message</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/303199#M5124</link>
      <description>&lt;P&gt;A couple of questions.&lt;BR /&gt;&lt;BR /&gt;Are you trying to run the example from the link? If so, is that what is not working?&lt;BR /&gt;&lt;BR /&gt;What release of SAS are you using? The html/javascript that hides the previous messages is written using ODS HTML text= and I have seen issues with how such messages are being written by ODS in 9.4. If that is the issue, I believe there is a tech note about that. I can try to find that. I also have the proc template code that Technical Support provide that might help.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 15:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/303199#M5124</guid>
      <dc:creator>DonH</dc:creator>
      <dc:date>2016-10-07T15:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process "Please Wait" Message</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/303543#M5125</link>
      <description>&lt;P&gt;Thanks for the reply Don -- yes I am using SAS 9.4 I'll try and look up the note.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 12:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/303543#M5125</guid>
      <dc:creator>mdavidson</dc:creator>
      <dc:date>2016-10-10T12:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process "Please Wait" Message</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/303545#M5126</link>
      <description>&lt;P&gt;I found the thread --&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Stored-Processes/STP-javascript-generation-9-3-vs-9-4/td-p/261573" target="_blank"&gt;https://communities.sas.com/t5/SAS-Stored-Processes/STP-javascript-generation-9-3-vs-9-4/td-p/261573&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not as elegant as your original design but it works &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 13:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/303545#M5126</guid>
      <dc:creator>mdavidson</dc:creator>
      <dc:date>2016-10-10T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process "Please Wait" Message</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/303552#M5127</link>
      <description>&lt;P&gt;Quentin's solution works. But i was thinking of another thread that was not specific to the "Please Wait" example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I worked with TS on a related issue where JavaScript written by ODS HTML TEXT= was not working. TS provided some template code so the generated tags did not include table tags. That restored the JavaScript functionality.&lt;BR /&gt;&lt;BR /&gt;I don't have access to that code right now as it is at a client site. But I will check with TS about it and hopefully he can post it here.&lt;/P&gt;
&lt;P&gt;By running that code and using the template it creates, I suspect the Please Wait routine will work as is.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 13:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/303552#M5127</guid>
      <dc:creator>DonH</dc:creator>
      <dc:date>2016-10-10T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process "Please Wait" Message</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/306005#M5128</link>
      <description>&lt;P&gt;I ended up switching to use PROC ODSTEXT in 9.4, which does not get put inside a &amp;lt;TA BLE&amp;gt; tag, something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  proc odstext;
    p "&amp;lt;span id=""pleaseWait""&amp;gt;
       &amp;amp;message &amp;lt;p&amp;gt;
       &amp;lt;img src=""/SASStoredProcess/images/progress.gif""&amp;gt;
       &amp;lt;/span&amp;gt;
      "
    ;
  run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I like Don's idea of modifying the template to allow continued use of ODS HTML text.&amp;nbsp; That would be helpful to avoid rewriting some of my legacy code.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/306005#M5128</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2016-10-20T17:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Stored Process "Please Wait" Message</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/306134#M5129</link>
      <description>&lt;P&gt;I found the proc template code that allows this to work. Note however that the macro source needs to be updated to replace:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html text = '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods tagsets.html4 text = '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is the only needed change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the proc template code that I got to work. Note that I freely acknowledge that I am not at all at expert in PROC TEMPLATE. This code was originally provided to me by Tech Support for a related issue. And I was able to tweak it for this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;path&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; work.tmplmst(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;update&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) sashelp.tmplmst(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;read&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;template&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;edit&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; tagsets.html4;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;define&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;event&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; text;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;start:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;trigger&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; rowcol;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;trigger&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; cell_value;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;finish:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;trigger&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; cell_value;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 00:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Stored-Process-quot-Please-Wait-quot-Message/m-p/306134#M5129</guid>
      <dc:creator>DonH</dc:creator>
      <dc:date>2016-10-21T00:50:25Z</dc:date>
    </item>
  </channel>
</rss>

