<?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 _webout appends previous results. in Developers</title>
    <link>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336436#M5260</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear all..&lt;BR /&gt;&lt;BR /&gt;My motive is creating a login page simply &amp;amp; if user click submit button by entering correct credential then my choice &amp;nbsp;macro [here in code it is &amp;nbsp;"index page"] &amp;nbsp;should run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have developed this code and it is working fine except &amp;nbsp;my index_page macro output&amp;nbsp;gets appended to the same page. i.e. _webout not clearing out previous contents.&lt;BR /&gt;&lt;BR /&gt;i tried n ways options to close _webout but couldnt succeed. Any suggestions to the same code ? any other way to do the same?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kindly give your inputs. Thanks !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yeah i have created stored process for this code where i have excluded stored process macros %stpbegin %stpend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code : &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO LOGIN_PAGE;&lt;BR /&gt;data _null_;&lt;BR /&gt;file _webout;&lt;BR /&gt;PUT '&amp;lt;HTML&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;HEAD&amp;gt; &amp;lt;TITLE&amp;gt;&amp;nbsp;TITLE GOES HERE&amp;lt;/TITLE&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;STYLE&amp;gt;';&lt;BR /&gt;PUT 'BODY {COLOR:#d66a00; BACKGROUND:WHITE}';&lt;BR /&gt;PUT '.LOGIN_WINDOW { PADDING: 10PX;WIDTH:100PX;PADDING:30PX; COLOR:BLACK; background-color:WHITE; border: 3px solid LIGHTGREY;MARGIN:5em auto 0}';&lt;BR /&gt;PUT 'button { background-color: #a65200;color: white; border:none; cursor: pointer;width: 100PX;}';&lt;BR /&gt;PUT '&amp;lt;/STYLE&amp;gt;&amp;lt;/HEAD&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;BODY&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;H1&amp;gt;&amp;lt;CENTER&amp;gt; PAGE HEADING GOES HERE&amp;nbsp;&amp;lt;/H1&amp;gt; &amp;lt;BR&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;form action='"&amp;amp;_URL"' method="POST"&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;INPUT TYPE="HIDDEN" NAME='"_PROGRAM"' VALUE='"&amp;amp;_PROGRAM"'&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;div class="LOGIN_WINDOW"&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;label&amp;gt;&amp;lt;b&amp;gt;Username&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;input type="text" name="uname" required&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;label&amp;gt;&amp;lt;b&amp;gt;Password&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;input type="password" name="psw" required&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;button type="submit"&amp;gt;&amp;lt;B&amp;gt;Login&amp;lt;B&amp;gt;&amp;lt;/button&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;/div&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;/FORM&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;/BODY&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;/HTML&amp;gt;';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;%MEND LOGIN_PAGE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%MACRO INDEX_PAGE;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;FILE _webout;&lt;BR /&gt;PUT '&amp;lt;HTML&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;HEAD&amp;gt; &amp;lt;TITLE&amp;gt; INDEX PAGE &amp;lt;/TITLE&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;STYLE&amp;gt;';&lt;BR /&gt;PUT 'BODY {COLOR:#d66a00; BACKGROUND:WHITE}';&lt;BR /&gt;PUT '&amp;lt;/STYLE&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;BODY&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;H1&amp;gt; &amp;lt;CENTER&amp;gt; WELCOME &amp;lt;CENTER&amp;gt; &amp;lt;/H1&amp;gt; &amp;lt;BR&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;/BODY&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;/HTML&amp;gt;';&lt;BR /&gt;RUN;&lt;BR /&gt;%MEND INDEX_PAGE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*---------------EXECUTION SEQUENCE----------------*/&lt;/P&gt;&lt;P&gt;%MACRO MAIN;&lt;/P&gt;&lt;P&gt;%LOGIN_PAGE;&lt;/P&gt;&lt;P&gt;%IF "&amp;amp;UNAME"="HI" %THEN %INDEX_PAGE;&lt;BR /&gt;%MEND MAIN;&lt;BR /&gt;%MAIN;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2017 04:44:38 GMT</pubDate>
    <dc:creator>Attyslogin</dc:creator>
    <dc:date>2017-02-28T04:44:38Z</dc:date>
    <item>
      <title>_webout appends previous results.</title>
      <link>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336436#M5260</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear all..&lt;BR /&gt;&lt;BR /&gt;My motive is creating a login page simply &amp;amp; if user click submit button by entering correct credential then my choice &amp;nbsp;macro [here in code it is &amp;nbsp;"index page"] &amp;nbsp;should run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have developed this code and it is working fine except &amp;nbsp;my index_page macro output&amp;nbsp;gets appended to the same page. i.e. _webout not clearing out previous contents.&lt;BR /&gt;&lt;BR /&gt;i tried n ways options to close _webout but couldnt succeed. Any suggestions to the same code ? any other way to do the same?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kindly give your inputs. Thanks !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yeah i have created stored process for this code where i have excluded stored process macros %stpbegin %stpend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code : &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO LOGIN_PAGE;&lt;BR /&gt;data _null_;&lt;BR /&gt;file _webout;&lt;BR /&gt;PUT '&amp;lt;HTML&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;HEAD&amp;gt; &amp;lt;TITLE&amp;gt;&amp;nbsp;TITLE GOES HERE&amp;lt;/TITLE&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;STYLE&amp;gt;';&lt;BR /&gt;PUT 'BODY {COLOR:#d66a00; BACKGROUND:WHITE}';&lt;BR /&gt;PUT '.LOGIN_WINDOW { PADDING: 10PX;WIDTH:100PX;PADDING:30PX; COLOR:BLACK; background-color:WHITE; border: 3px solid LIGHTGREY;MARGIN:5em auto 0}';&lt;BR /&gt;PUT 'button { background-color: #a65200;color: white; border:none; cursor: pointer;width: 100PX;}';&lt;BR /&gt;PUT '&amp;lt;/STYLE&amp;gt;&amp;lt;/HEAD&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;BODY&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;H1&amp;gt;&amp;lt;CENTER&amp;gt; PAGE HEADING GOES HERE&amp;nbsp;&amp;lt;/H1&amp;gt; &amp;lt;BR&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;form action='"&amp;amp;_URL"' method="POST"&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;INPUT TYPE="HIDDEN" NAME='"_PROGRAM"' VALUE='"&amp;amp;_PROGRAM"'&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;div class="LOGIN_WINDOW"&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;label&amp;gt;&amp;lt;b&amp;gt;Username&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;input type="text" name="uname" required&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;label&amp;gt;&amp;lt;b&amp;gt;Password&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;input type="password" name="psw" required&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;button type="submit"&amp;gt;&amp;lt;B&amp;gt;Login&amp;lt;B&amp;gt;&amp;lt;/button&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;/div&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;/FORM&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;/BODY&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;/HTML&amp;gt;';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;%MEND LOGIN_PAGE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%MACRO INDEX_PAGE;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;FILE _webout;&lt;BR /&gt;PUT '&amp;lt;HTML&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;HEAD&amp;gt; &amp;lt;TITLE&amp;gt; INDEX PAGE &amp;lt;/TITLE&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;STYLE&amp;gt;';&lt;BR /&gt;PUT 'BODY {COLOR:#d66a00; BACKGROUND:WHITE}';&lt;BR /&gt;PUT '&amp;lt;/STYLE&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;BODY&amp;gt;';&lt;BR /&gt;PUT '&amp;lt;H1&amp;gt; &amp;lt;CENTER&amp;gt; WELCOME &amp;lt;CENTER&amp;gt; &amp;lt;/H1&amp;gt; &amp;lt;BR&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;/BODY&amp;gt;';&lt;BR /&gt;PUT'&amp;lt;/HTML&amp;gt;';&lt;BR /&gt;RUN;&lt;BR /&gt;%MEND INDEX_PAGE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*---------------EXECUTION SEQUENCE----------------*/&lt;/P&gt;&lt;P&gt;%MACRO MAIN;&lt;/P&gt;&lt;P&gt;%LOGIN_PAGE;&lt;/P&gt;&lt;P&gt;%IF "&amp;amp;UNAME"="HI" %THEN %INDEX_PAGE;&lt;BR /&gt;%MEND MAIN;&lt;BR /&gt;%MAIN;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 04:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336436#M5260</guid>
      <dc:creator>Attyslogin</dc:creator>
      <dc:date>2017-02-28T04:44:38Z</dc:date>
    </item>
    <item>
      <title>Sv: _webout appends previous results.</title>
      <link>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336449#M5261</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;You just need to make sure that your "login_page" macro doesn't run if a username is submitted.&lt;/P&gt;
&lt;P&gt;It could be something like&lt;/P&gt;
&lt;PRE&gt;/*---------------EXECUTION SEQUENCE----------------*/
%MACRO MAIN;
%IF "&amp;amp;UNAME"="HI" %THEN %INDEX_PAGE;
%ELSE %LOGIN_PAGE;
%MEND MAIN;
%MAIN;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Feb 2017 07:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336449#M5261</guid>
      <dc:creator>ThomasPalm</dc:creator>
      <dc:date>2017-02-28T07:13:09Z</dc:date>
    </item>
    <item>
      <title>Sv: _webout appends previous results.</title>
      <link>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336456#M5262</link>
      <description>&lt;P&gt;Its not working for me. Now its showing twice login page as else part is executing at initial pass.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 08:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336456#M5262</guid>
      <dc:creator>Attyslogin</dc:creator>
      <dc:date>2017-02-28T08:08:19Z</dc:date>
    </item>
    <item>
      <title>Sv: _webout appends previous results.</title>
      <link>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336463#M5263</link>
      <description>&lt;P&gt;This&amp;nbsp;is working on my end in ordinary sas:&lt;/P&gt;
&lt;PRE&gt;%global uname;
%let uname=HI;

%MACRO LOGIN_PAGE;
	%put Login_page;
%MEND LOGIN_PAGE;

%MACRO INDEX_PAGE;
	%put Index_page;
%MEND INDEX_PAGE;

/*---------------EXECUTION SEQUENCE----------------*/
%MACRO MAIN;
	%IF &amp;amp;UNAME eq HI %THEN %INDEX_PAGE;
	%else %login_page;
%MEND MAIN;
%MAIN;&lt;BR /&gt;
&lt;/PRE&gt;
&lt;P&gt;Are you sure, that you are using the changed code in your stored process?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 08:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336463#M5263</guid>
      <dc:creator>ThomasPalm</dc:creator>
      <dc:date>2017-02-28T08:21:07Z</dc:date>
    </item>
    <item>
      <title>Sv: _webout appends previous results.</title>
      <link>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336475#M5264</link>
      <description>&lt;P&gt;yeah .... still no success&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 09:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/webout-appends-previous-results/m-p/336475#M5264</guid>
      <dc:creator>Attyslogin</dc:creator>
      <dc:date>2017-02-28T09:04:41Z</dc:date>
    </item>
  </channel>
</rss>

