Usage Note 30889: Displaying the "Please Wait" message for a long-running stored process
When a user submits a long-running stored process using the SAS® Stored
Process Server, it is often helpful to issue a "Please Wait" message
to encourage the user to be patient and not press the Refresh or
Reload buttons on their Web browser. Pressing the
Refresh or Reload buttons while the stored process is running will cause the request to be
submitted a second time and the performance to become even slower.
The following example illustrates an approach for displaying the
"Please Wait" message, running the stored process, and then clearing
the "Please Wait" message at the top of the output. By default,
the "Please Wait" message will not be cleared unless you use an
approach such as that which is provided in the example.
This approach can also be used when running a request using the
SAS/IntrNet® Application Dispatcher.
/* Please Wait Example */
data _null_;
file _webout;
put '<html>';
put '<body>';
put '<div id="pleasewait">';
put '<h2>Please Wait. Your request is being processed.</h2>';
put '</div>';
do i = 1 to 10;
put " ";
end;
run;
data _null_;
x = sleep(3,1);
run;
%stpbegin;
proc print data=sashelp.class;
run;
%stpend;
/* Clear Please Wait message */
data _null_;
file _webout;
put '<script>';
put 'pleasewait.style.display="none";';
put '</script>';
put '</body></html>';
run;
Operating System and Release Information
SAS System | SAS Integration Technologies | z/OS | 9.1 TS1M3 SP4 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
Windows Vista | 9.1 TS1M3 SP4 | |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
HP-UX IPF | 9.1 TS1M3 SP4 | |
Linux | 9.1 TS1M3 SP4 | |
Linux on Itanium | 9.1 TS1M3 SP4 | |
OpenVMS Alpha | 9.1 TS1M3 SP4 | |
Tru64 UNIX | 9.1 TS1M3 SP4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The following example illustrates an approach for displaying the
"Please Wait" message, running the stored process, and then clearing
out the "Please Wait" message at the top of the output.
Date Modified: | 2008-06-26 11:13:57 |
Date Created: | 2008-01-09 09:58:39 |