<?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 Where statement vs where data set option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Where-statement-vs-where-data-set-option/m-p/227410#M40975</link>
    <description>&lt;P&gt;Is there any processing difference between where statement or where = data set option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data temp;&lt;/P&gt;&lt;P&gt;set temp1(where = (state = 'NJ');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data temp;&lt;/P&gt;&lt;P&gt;set temp1;&lt;/P&gt;&lt;P&gt;where state = 'NJ';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is better in terms of performance? I know we will get same result but is there any performace improvement if use as datas set option compare to sas statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Sun, 27 Sep 2015 00:16:07 GMT</pubDate>
    <dc:creator>nkm123</dc:creator>
    <dc:date>2015-09-27T00:16:07Z</dc:date>
    <item>
      <title>Where statement vs where data set option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement-vs-where-data-set-option/m-p/227410#M40975</link>
      <description>&lt;P&gt;Is there any processing difference between where statement or where = data set option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data temp;&lt;/P&gt;&lt;P&gt;set temp1(where = (state = 'NJ');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data temp;&lt;/P&gt;&lt;P&gt;set temp1;&lt;/P&gt;&lt;P&gt;where state = 'NJ';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is better in terms of performance? I know we will get same result but is there any performace improvement if use as datas set option compare to sas statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2015 00:16:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement-vs-where-data-set-option/m-p/227410#M40975</guid>
      <dc:creator>nkm123</dc:creator>
      <dc:date>2015-09-27T00:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement vs where data set option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement-vs-where-data-set-option/m-p/227411#M40976</link>
      <description>&lt;P&gt;There is no difference in speed, and no difference in how the processing takes place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Differences are in the flexibility when using more than one incoming SAS data set. &amp;nbsp;Examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data both;&lt;/P&gt;&lt;P&gt;merge a b;&lt;/P&gt;&lt;P&gt;by state;&lt;/P&gt;&lt;P&gt;where gender='M';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the WHERE statement applies to both incoming data sets, so GENDER must appear in both. &amp;nbsp;Compare that with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data both;&lt;/P&gt;&lt;P&gt;merge a (where=(gender='M')) &amp;nbsp;b (where=(age &amp;gt; 21));&lt;/P&gt;&lt;P&gt;by state;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By using WHERE as a data set option, separate conditions can be applied to each incoming DATA set. &amp;nbsp;A stand-alone WHERE statement would not be possible to accomplish the same task.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2015 00:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement-vs-where-data-set-option/m-p/227411#M40976</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-09-27T00:51:14Z</dc:date>
    </item>
  </channel>
</rss>

