<?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 do I retain only the data specific to identifiers located in another dataset? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-retain-only-the-data-specific-to-identifiers-located-in/m-p/79022#M17076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am relatively new to SAS and has been trying to sort my dataset. I have a dataset A containing the identifiers for companies I need and another dataset B containing the whole universe of companies. How do I find only the companies I need from the universe in dataset B using the identifiers in dataset A?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any advice given.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 05:35:01 GMT</pubDate>
    <dc:creator>lavernal</dc:creator>
    <dc:date>2013-01-18T05:35:01Z</dc:date>
    <item>
      <title>How do I retain only the data specific to identifiers located in another dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-retain-only-the-data-specific-to-identifiers-located-in/m-p/79022#M17076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am relatively new to SAS and has been trying to sort my dataset. I have a dataset A containing the identifiers for companies I need and another dataset B containing the whole universe of companies. How do I find only the companies I need from the universe in dataset B using the identifiers in dataset A?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any advice given.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 05:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-retain-only-the-data-specific-to-identifiers-located-in/m-p/79022#M17076</guid>
      <dc:creator>lavernal</dc:creator>
      <dc:date>2013-01-18T05:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I retain only the data specific to identifiers located in another dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-retain-only-the-data-specific-to-identifiers-located-in/m-p/79023#M17077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many ways.&lt;/P&gt;&lt;P&gt;Classic SAS code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge A(in=in1) B ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by id;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if in1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;/P&gt;&lt;P&gt; create table want as select * from a left join b on a.id = b.id ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 06:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-retain-only-the-data-specific-to-identifiers-located-in/m-p/79023#M17077</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-01-18T06:02:00Z</dc:date>
    </item>
  </channel>
</rss>

