<?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: File is in use _webout in Developers</title>
    <link>https://communities.sas.com/t5/Developers/File-is-in-use-webout/m-p/62226#M3150</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Solution is to modify the stored process.&lt;BR /&gt;
&lt;BR /&gt;
From the "SAS Code" window when editing a STP, click the "Include Code For" button.  Deselect the option "Stored process macros".&lt;BR /&gt;
&lt;BR /&gt;
Should work fine after that, and yes, it will still run as a stored proc without these macros.&lt;BR /&gt;
&lt;BR /&gt;
Cheers.</description>
    <pubDate>Mon, 23 Aug 2010 12:21:59 GMT</pubDate>
    <dc:creator>mgst170</dc:creator>
    <dc:date>2010-08-23T12:21:59Z</dc:date>
    <item>
      <title>File is in use _webout</title>
      <link>https://communities.sas.com/t5/Developers/File-is-in-use-webout/m-p/62224#M3148</link>
      <description>Dear all,&lt;BR /&gt;
Thanks for u r help in my previous post.when stored process is executing for lomg time i am trying to write a statement to webout like "please wait" using proc template.&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc template;&lt;BR /&gt;
define style styles.oag2;&lt;BR /&gt;
parent = styles.default;&lt;BR /&gt;
style StartUpFunction from StartUpFunction / &lt;BR /&gt;
tagattr = "PleaseWait()";&lt;BR /&gt;
style Body from Body / prehtml = '&amp;lt;div id="hidepage"&lt;BR /&gt;
style="position:absolute; height:100%;width:100%;"&amp;gt; &lt;BR /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; &amp;lt;center&amp;gt;&lt;BR /&gt;
&amp;lt;b&amp;gt;&amp;lt;font face="Arial" color="#000099" size="3"&amp;gt; &lt;BR /&gt;
Your Request is Being Processed, Please Wait . . . &lt;BR /&gt;
&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt; &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; &lt;BR /&gt;
&amp;lt;/center&amp;gt; &amp;lt;/div&amp;gt;'; &lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html body = _webout&lt;BR /&gt;
style = oag2&lt;BR /&gt;
headtext = "&amp;lt;script&amp;gt; function PleaseWait()&lt;BR /&gt;
{if (document.getElementById) &lt;BR /&gt;
{document.getElementById('hidepage').style.visibility='hidden' } } &amp;lt;/script&amp;gt;";&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I am trying to generate output in excel format,so when i combine both the code ,its giving me an error as FILE IS IN USE _WEBOUT....&lt;BR /&gt;
i even checked on support.sas.com ,but still i am unable to resolve ,can you please run the below code and guide me where i am doing wrong....&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
/*  %*  Set a macro variable that will be used in the title;*/&lt;BR /&gt;
proc template;&lt;BR /&gt;
define style styles.oag2;&lt;BR /&gt;
parent = styles.default;&lt;BR /&gt;
style StartUpFunction from StartUpFunction / &lt;BR /&gt;
tagattr = "PleaseWait()";&lt;BR /&gt;
style Body from Body / prehtml = '&amp;lt;div id="hidepage"&lt;BR /&gt;
style="position:absolute; height:100%;width:100%;"&amp;gt; &lt;BR /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; &amp;lt;center&amp;gt;&lt;BR /&gt;
&amp;lt;b&amp;gt;&amp;lt;font face="Arial" color="#000099" size="3"&amp;gt; &lt;BR /&gt;
Your Request is Being Processed, Please Wait . . . &lt;BR /&gt;
&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt; &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; &lt;BR /&gt;
&amp;lt;/center&amp;gt; &amp;lt;/div&amp;gt;'; &lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html body = _webout&lt;BR /&gt;
style = oag2&lt;BR /&gt;
headtext = "&amp;lt;script&amp;gt; function PleaseWait()&lt;BR /&gt;
{if (document.getElementById) &lt;BR /&gt;
{document.getElementById('hidepage').style.visibility='hidden' } } &amp;lt;/script&amp;gt;";&lt;BR /&gt;
 %macro test;&lt;BR /&gt;
  %*  Special processing for downloading to Microsoft Excel or Word;&lt;BR /&gt;
%let OUTPUT_FORMAT = &amp;amp;_ODSDEST;&lt;BR /&gt;
  %if (%upcase(&amp;amp;_ODSDEST) eq HTML2EXCEL) %then %do;&lt;BR /&gt;
    %let _ODSDEST = tagsets.MSOffice2K;&lt;BR /&gt;
    %let OUTPUT_FORMAT = HTML;&lt;BR /&gt;
    %let OLD_HEADER =&lt;BR /&gt;
      %sysfunc(stpsrv_header(Content-type,application/vnd.ms-excel));&lt;BR /&gt;
  %end;&lt;BR /&gt;
  %else %if (%upcase(&amp;amp;_ODSDEST) eq HTML2WORD) %then %do;&lt;BR /&gt;
    %let _ODSDEST = tagsets.MSOffice2K;&lt;BR /&gt;
    %let OUTPUT_FORMAT = HTML;&lt;BR /&gt;
    %let OLD_HEADER =&lt;BR /&gt;
      %sysfunc(stpsrv_header(Content-type,application/msword));&lt;BR /&gt;
  %end;&lt;BR /&gt;
  %else %if (%upcase(&amp;amp;_ODSDEST) eq CHTML) %then&lt;BR /&gt;
    %let OUTPUT_FORMAT = Compact HTML;&lt;BR /&gt;
  %else %if (%upcase(&amp;amp;_ODSDEST) eq PHTML) %then&lt;BR /&gt;
    %let OUTPUT_FORMAT = Plain HTML;  &lt;BR /&gt;
&lt;BR /&gt;
  	 %if (%qcmpres(&amp;amp;OUTPUT_FORMAT) eq )&lt;BR /&gt;
      %then %let OUTPUT_FORMAT=&amp;amp;_ODSDEST;&lt;BR /&gt;
	%stpbegin;  &lt;BR /&gt;
DATA TEST;&lt;BR /&gt;
X=5;&lt;BR /&gt;
DO I= 1 TO 10000;&lt;BR /&gt;
Z=X*I;&lt;BR /&gt;
OUTPUT;&lt;BR /&gt;
END;&lt;BR /&gt;
RUN;&lt;BR /&gt;
PROC PRINT;&lt;BR /&gt;
RUN;&lt;BR /&gt;
%stpend;&lt;BR /&gt;
%mend test;&lt;BR /&gt;
%test;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Please help out.</description>
      <pubDate>Tue, 10 Aug 2010 13:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/File-is-in-use-webout/m-p/62224#M3148</guid>
      <dc:creator>MaheshPeesari</dc:creator>
      <dc:date>2010-08-10T13:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: File is in use _webout</title>
      <link>https://communities.sas.com/t5/Developers/File-is-in-use-webout/m-p/62225#M3149</link>
      <description>Take a look at these documents to see if they simplify things for you:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Usage Note 30889: Displaying the "Please Wait" message for a long-running stored process&lt;/B&gt;&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;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Sample 26181: Generating a Please Wait Message&lt;/B&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/26/181.html" target="_blank"&gt;http://support.sas.com/kb/26/181.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Vince DelGobbo&lt;BR /&gt;
SAS R&amp;amp;D</description>
      <pubDate>Tue, 10 Aug 2010 14:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/File-is-in-use-webout/m-p/62225#M3149</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2010-08-10T14:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: File is in use _webout</title>
      <link>https://communities.sas.com/t5/Developers/File-is-in-use-webout/m-p/62226#M3150</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Solution is to modify the stored process.&lt;BR /&gt;
&lt;BR /&gt;
From the "SAS Code" window when editing a STP, click the "Include Code For" button.  Deselect the option "Stored process macros".&lt;BR /&gt;
&lt;BR /&gt;
Should work fine after that, and yes, it will still run as a stored proc without these macros.&lt;BR /&gt;
&lt;BR /&gt;
Cheers.</description>
      <pubDate>Mon, 23 Aug 2010 12:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/File-is-in-use-webout/m-p/62226#M3150</guid>
      <dc:creator>mgst170</dc:creator>
      <dc:date>2010-08-23T12:21:59Z</dc:date>
    </item>
  </channel>
</rss>

