<?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 How to filter dataset values by values in another table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dataset-values-by-values-in-another-table/m-p/767552#M243357</link>
    <description>&lt;P&gt;What I want to do is filter one table by the values in another.&amp;nbsp;Something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set have;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;where variable_i &amp;gt;= othertable[variable_i, column_name];&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variable_i exists in both tables and has 10 different values. The problem is that the filter value should be different for each of those values, and I don't want to hard code anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it's because I'm too used to R, where this would be so easy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 20:42:37 GMT</pubDate>
    <dc:creator>kz_</dc:creator>
    <dc:date>2021-09-13T20:42:37Z</dc:date>
    <item>
      <title>How to filter dataset values by values in another table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dataset-values-by-values-in-another-table/m-p/767552#M243357</link>
      <description>&lt;P&gt;What I want to do is filter one table by the values in another.&amp;nbsp;Something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set have;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;where variable_i &amp;gt;= othertable[variable_i, column_name];&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variable_i exists in both tables and has 10 different values. The problem is that the filter value should be different for each of those values, and I don't want to hard code anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it's because I'm too used to R, where this would be so easy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 20:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dataset-values-by-values-in-another-table/m-p/767552#M243357</guid>
      <dc:creator>kz_</dc:creator>
      <dc:date>2021-09-13T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dataset values by values in another table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dataset-values-by-values-in-another-table/m-p/767565#M243361</link>
      <description>Merge the two tables and then look up the value. &lt;BR /&gt;Load the second table into a temporary array and look up the values in the array.&lt;BR /&gt;Use SQL which is also a merge. &lt;BR /&gt;&lt;BR /&gt;If you want specific examples you'll need to provide example data. &lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2021 21:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dataset-values-by-values-in-another-table/m-p/767565#M243361</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-13T21:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dataset values by values in another table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dataset-values-by-values-in-another-table/m-p/768355#M243717</link>
      <description>&lt;P&gt;Thank you. I was hoping there was a less annoying way, like creating a macrovariable vector.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 19:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dataset-values-by-values-in-another-table/m-p/768355#M243717</guid>
      <dc:creator>kz_</dc:creator>
      <dc:date>2021-09-17T19:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dataset values by values in another table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dataset-values-by-values-in-another-table/m-p/768358#M243718</link>
      <description>Can't say without specifics</description>
      <pubDate>Fri, 17 Sep 2021 19:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dataset-values-by-values-in-another-table/m-p/768358#M243718</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-17T19:41:10Z</dc:date>
    </item>
  </channel>
</rss>

