<?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: testing quoted code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/testing-quoted-code/m-p/39196#M256262</link>
    <description>&amp;gt; dt &amp;lt;&amp;lt; clear row states;&lt;BR /&gt;
&amp;gt; dt &amp;lt;&amp;lt; select where( !(:PartNo == "81817" &amp;amp; :Month ==&lt;BR /&gt;
&amp;gt; "1/2010" &amp;amp; :JobID == "PROD" )) &amp;lt;&amp;lt; Exclude( 1 ) &amp;lt;&amp;lt;&lt;BR /&gt;
&amp;gt; Hide( 1 );&lt;BR /&gt;
&amp;gt; dt &amp;lt;&amp;lt; invert row selection;&lt;BR /&gt;
&amp;gt; result = dt &amp;lt;&amp;lt; Get selected rows;&lt;BR /&gt;
&amp;gt; result = N Row (result); &lt;BR /&gt;
&amp;gt; // Code works fine up to this point&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; //Would like to run additional analysis only on&lt;BR /&gt;
&amp;gt; selected rows,&lt;BR /&gt;
&amp;gt; // however, the following code carries our the&lt;BR /&gt;
&amp;gt; calculation on the entire col &lt;BR /&gt;
&amp;gt; // instead of just the selected rows&lt;BR /&gt;
&amp;gt; result2 = dt &amp;lt;&amp;lt; Select Where (:Name("Margin&lt;BR /&gt;
&amp;gt; Col")&amp;lt;=5);&lt;BR /&gt;
&amp;gt; result2 = N Row (result2);</description>
    <pubDate>Wed, 24 Nov 2010 16:54:20 GMT</pubDate>
    <dc:creator>reneeharper</dc:creator>
    <dc:date>2010-11-24T16:54:20Z</dc:date>
    <item>
      <title>testing quoted code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/testing-quoted-code/m-p/39195#M256261</link>
      <description>dt &amp;lt;&amp;lt; clear row states;&lt;BR /&gt;
  dt &amp;lt;&amp;lt; select where( !(:PartNo == "81817" &amp;amp; :Month   == "1/2010" &amp;amp; :JobID == "PROD" )) &amp;lt;&amp;lt; Exclude( 1 ) &amp;lt;&amp;lt; Hide( 1 );&lt;BR /&gt;
  dt &amp;lt;&amp;lt; invert row selection;&lt;BR /&gt;
  result = dt &amp;lt;&amp;lt; Get selected rows;&lt;BR /&gt;
  result = N Row (result); &lt;BR /&gt;
  // Code works fine up to this point&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
//Would like to run additional analysis only on selected rows,&lt;BR /&gt;
// however, the following code carries our the calculation on the entire col &lt;BR /&gt;
// instead of just the selected rows&lt;BR /&gt;
result2 = dt &amp;lt;&amp;lt; Select Where (:Name("Margin Col")&amp;lt;=5);&lt;BR /&gt;
result2 = N Row (result2);&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: ForumAdmin@sas&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: ForumAdmin@sas&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: ForumAdmin@sas&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: ForumAdmin@sas&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: ForumAdmin@sas&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: ForumAdmin@sas&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: ForumAdmin@sas

Message was edited by: ForumAdmin@sas</description>
      <pubDate>Wed, 24 Nov 2010 16:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/testing-quoted-code/m-p/39195#M256261</guid>
      <dc:creator>reneeharper</dc:creator>
      <dc:date>2010-11-24T16:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: testing quoted code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/testing-quoted-code/m-p/39196#M256262</link>
      <description>&amp;gt; dt &amp;lt;&amp;lt; clear row states;&lt;BR /&gt;
&amp;gt; dt &amp;lt;&amp;lt; select where( !(:PartNo == "81817" &amp;amp; :Month ==&lt;BR /&gt;
&amp;gt; "1/2010" &amp;amp; :JobID == "PROD" )) &amp;lt;&amp;lt; Exclude( 1 ) &amp;lt;&amp;lt;&lt;BR /&gt;
&amp;gt; Hide( 1 );&lt;BR /&gt;
&amp;gt; dt &amp;lt;&amp;lt; invert row selection;&lt;BR /&gt;
&amp;gt; result = dt &amp;lt;&amp;lt; Get selected rows;&lt;BR /&gt;
&amp;gt; result = N Row (result); &lt;BR /&gt;
&amp;gt; // Code works fine up to this point&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; //Would like to run additional analysis only on&lt;BR /&gt;
&amp;gt; selected rows,&lt;BR /&gt;
&amp;gt; // however, the following code carries our the&lt;BR /&gt;
&amp;gt; calculation on the entire col &lt;BR /&gt;
&amp;gt; // instead of just the selected rows&lt;BR /&gt;
&amp;gt; result2 = dt &amp;lt;&amp;lt; Select Where (:Name("Margin&lt;BR /&gt;
&amp;gt; Col")&amp;lt;=5);&lt;BR /&gt;
&amp;gt; result2 = N Row (result2);</description>
      <pubDate>Wed, 24 Nov 2010 16:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/testing-quoted-code/m-p/39196#M256262</guid>
      <dc:creator>reneeharper</dc:creator>
      <dc:date>2010-11-24T16:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: testing quoted code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/testing-quoted-code/m-p/39197#M256263</link>
      <description>[newcode]  dt &amp;lt;&amp;lt; clear row states;&lt;BR /&gt;
[newcode]  dt &amp;lt;&amp;lt; select where( !(:PartNo == &amp;amp;quote;81817" &amp;amp; :Month == "1/2010" [newcode]  &amp;amp; :JobID == "PROD" )) &amp;lt;&amp;lt; Exclude( 1 ) &amp;lt;&amp;lt; Hide( 1 );&lt;BR /&gt;
[newcode]  dt &amp;lt;&amp;lt; invert row selection;&lt;BR /&gt;
[newcode]  result = dt &amp;lt;&amp;lt; Get selected rows;&lt;BR /&gt;
[newcode]  result = N Row (result); &lt;BR /&gt;
[newcode]  // Code works fine up to this point&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
//Would like to run additional analysis only on selected rows,&lt;BR /&gt;
// however, the following code carries our the calculation on the entire col &lt;BR /&gt;
// instead of just the selected rows&lt;BR /&gt;
result2 = dt &amp;lt;&amp;lt; Select Where (:Name("Margin Col")&amp;lt;=5);&lt;BR /&gt;
result2 = N Row (result2);

Message was edited by: ForumAdmin@sas</description>
      <pubDate>Wed, 24 Nov 2010 17:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/testing-quoted-code/m-p/39197#M256263</guid>
      <dc:creator>reneeharper</dc:creator>
      <dc:date>2010-11-24T17:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: testing quoted code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/testing-quoted-code/m-p/39198#M256264</link>
      <description>&amp;gt; [newcode]  dt &amp;lt;&amp;lt; clear row states;&lt;BR /&gt;
&amp;gt; [newcode]  dt &amp;lt;&amp;lt; select where( !(:PartNo ==&lt;BR /&gt;
&amp;gt; &amp;amp;quote;81817" &amp;amp; :Month == "1/2010" [newcode]  &amp;amp;&lt;BR /&gt;
&amp;gt; :JobID == "PROD" )) &amp;lt;&amp;lt; Exclude( 1 ) &amp;lt;&amp;lt; Hide( 1 );&lt;BR /&gt;
&amp;gt; [newcode]  dt &amp;lt;&amp;lt; invert row selection;&lt;BR /&gt;
&amp;gt; [newcode]  result = dt &amp;lt;&amp;lt; Get selected rows;&lt;BR /&gt;
&amp;gt; [newcode]  result = N Row (result); &lt;BR /&gt;
&amp;gt; [newcode]  // Code works fine up to this point&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; //Would like to run additional analysis only on&lt;BR /&gt;
&amp;gt; selected rows,&lt;BR /&gt;
&amp;gt; // however, the following code carries our the&lt;BR /&gt;
&amp;gt; calculation on the entire col &lt;BR /&gt;
&amp;gt; // instead of just the selected rows&lt;BR /&gt;
&amp;gt; result2 = dt &amp;lt;&amp;lt; Select Where (:Name("Margin&lt;BR /&gt;
&amp;gt; Col")&amp;lt;=5);&lt;BR /&gt;
&amp;gt; result2 = N Row (result2);&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Message was edited by: ForumAdmin@sas</description>
      <pubDate>Wed, 24 Nov 2010 17:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/testing-quoted-code/m-p/39198#M256264</guid>
      <dc:creator>reneeharper</dc:creator>
      <dc:date>2010-11-24T17:15:42Z</dc:date>
    </item>
  </channel>
</rss>

