<?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 SAS Tip: where also in SAS Tips from the Community</title>
    <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-where-also/m-p/442603#M119</link>
    <description>&lt;P&gt;You can use an &lt;STRONG&gt;ALSO&lt;/STRONG&gt;&amp;nbsp;operator in a &lt;STRONG&gt;WHERE&lt;/STRONG&gt;&amp;nbsp;statement (or function). Use a series of &lt;STRONG&gt;WHERE&lt;/STRONG&gt;&amp;nbsp;statements instead of a single statement. The &lt;EM&gt;condition clauses&lt;/EM&gt;&amp;nbsp;are combined as if you wrote a single &lt;STRONG&gt;WHERE&lt;/STRONG&gt;&amp;nbsp;statement with the &lt;EM&gt;condition clauses&lt;/EM&gt;&amp;nbsp;&lt;STRONG&gt;AND&lt;/STRONG&gt;ed together. For example,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data = sashelp.class;
 title 'Teenage Boys';
 where Sex = 'M';
 where also Age &amp;gt; 12;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;produces the same output that the following &lt;STRONG&gt;WHERE&lt;/STRONG&gt; statement would:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where Sex = 'M' and Age &amp;gt; 12;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that the first &lt;STRONG&gt;WHERE&lt;/STRONG&gt; statement can also use the &lt;STRONG&gt;ALSO&lt;/STRONG&gt; modifier even if there is no prior WHERE statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data = sashelp.class;
 title 'Teenage Boys';
 where also Sex = 'M';
 where also Age &amp;gt; 12;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;P&gt;Thanks to Don Henderson&amp;nbsp;for sharing this tip on sasCommunity.org.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 22:11:35 GMT</pubDate>
    <dc:creator>SAS_Tipster</dc:creator>
    <dc:date>2018-03-05T22:11:35Z</dc:date>
    <item>
      <title>SAS Tip: where also</title>
      <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-where-also/m-p/442603#M119</link>
      <description>&lt;P&gt;You can use an &lt;STRONG&gt;ALSO&lt;/STRONG&gt;&amp;nbsp;operator in a &lt;STRONG&gt;WHERE&lt;/STRONG&gt;&amp;nbsp;statement (or function). Use a series of &lt;STRONG&gt;WHERE&lt;/STRONG&gt;&amp;nbsp;statements instead of a single statement. The &lt;EM&gt;condition clauses&lt;/EM&gt;&amp;nbsp;are combined as if you wrote a single &lt;STRONG&gt;WHERE&lt;/STRONG&gt;&amp;nbsp;statement with the &lt;EM&gt;condition clauses&lt;/EM&gt;&amp;nbsp;&lt;STRONG&gt;AND&lt;/STRONG&gt;ed together. For example,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data = sashelp.class;
 title 'Teenage Boys';
 where Sex = 'M';
 where also Age &amp;gt; 12;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;produces the same output that the following &lt;STRONG&gt;WHERE&lt;/STRONG&gt; statement would:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where Sex = 'M' and Age &amp;gt; 12;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that the first &lt;STRONG&gt;WHERE&lt;/STRONG&gt; statement can also use the &lt;STRONG&gt;ALSO&lt;/STRONG&gt; modifier even if there is no prior WHERE statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data = sashelp.class;
 title 'Teenage Boys';
 where also Sex = 'M';
 where also Age &amp;gt; 12;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;P&gt;Thanks to Don Henderson&amp;nbsp;for sharing this tip on sasCommunity.org.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 22:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-where-also/m-p/442603#M119</guid>
      <dc:creator>SAS_Tipster</dc:creator>
      <dc:date>2018-03-05T22:11:35Z</dc:date>
    </item>
  </channel>
</rss>

