09-27-2016 04:14 PM
I've been using Don Henderson's "please wait" example macro (http://www.sascommunity.org/wiki/Generating_Descriptive_Please_Wait_Messages_for_Long_Running_Stored...)
One issue I'm having is that the "Step 1, 2, 3 Completed.." message is not overwriting the previous message. So in other words when the stored process is completed I still see all of the previous "please wait" messages.
I'm wanting to overwite each one of those messages and just display the final result when the stored process is completed. I've tried to wrap the output in %stpbegin and %stpend, but so far no luck.
Did not work:
10-07-2016 11:29 AM
A couple of questions.
Are you trying to run the example from the link? If so, is that what is not working?
10-10-2016 09:19 AM
Not as elegant as your original design but it works :/
10-10-2016 09:47 AM
Quentin's solution works. But i was thinking of another thread that was not specific to the "Please Wait" example.
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.
By running that code and using the template it creates, I suspect the Please Wait routine will work as is.
10-20-2016 01:07 PM - edited 10-20-2016 01:08 PM
I ended up switching to use PROC ODSTEXT in 9.4, which does not get put inside a <TA BLE> tag, something like:
proc odstext; p "<span id=""pleaseWait""> &message <p> <img src=""/SASStoredProcess/images/progress.gif""> </span> " ; run;
But I like Don's idea of modifying the template to allow continued use of ODS HTML text. That would be helpful to avoid rewriting some of my legacy code.
10-20-2016 08:50 PM
I found the proc template code that allows this to work. Note however that the macro source needs to be updated to replace:
ods html text = ' ';
ods tagsets.html4 text = ' ';
That is the only needed change.
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.
ods path work.tmplmst(update) sashelp.tmplmst(read);
define event text;