<?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 subset a large dataset using a list of specific ID numbers? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-subset-a-large-dataset-using-a-list-of-specific-ID/m-p/663320#M8334</link>
    <description>&lt;P&gt;I have a series of patients who have certain characteristics( variables)&lt;/P&gt;&lt;P&gt;I need to pick out the patients that meet the criteria by using their patient ID (300 unique identifiers) and separate them into their own dataset so they are alike only by that one characteristic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i=I want it to be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Data want;&lt;BR /&gt;SET have;&lt;BR /&gt;where patientnum= 3 6 5 4 8 7 9 0 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;but this doesn't work. and using OR and AND statements cancels the previous ID number&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 21:08:39 GMT</pubDate>
    <dc:creator>sasgyro</dc:creator>
    <dc:date>2020-06-18T21:08:39Z</dc:date>
    <item>
      <title>How do I subset a large dataset using a list of specific ID numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-subset-a-large-dataset-using-a-list-of-specific-ID/m-p/663320#M8334</link>
      <description>&lt;P&gt;I have a series of patients who have certain characteristics( variables)&lt;/P&gt;&lt;P&gt;I need to pick out the patients that meet the criteria by using their patient ID (300 unique identifiers) and separate them into their own dataset so they are alike only by that one characteristic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i=I want it to be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Data want;&lt;BR /&gt;SET have;&lt;BR /&gt;where patientnum= 3 6 5 4 8 7 9 0 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;but this doesn't work. and using OR and AND statements cancels the previous ID number&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 21:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-subset-a-large-dataset-using-a-list-of-specific-ID/m-p/663320#M8334</guid>
      <dc:creator>sasgyro</dc:creator>
      <dc:date>2020-06-18T21:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subset a large dataset using a list of specific ID numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-subset-a-large-dataset-using-a-list-of-specific-ID/m-p/663323#M8335</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; Data want;
SET have;
where patientnum in (3 6 5 4 8 7 9 0) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*or*/

where patientnum in (3, 6, 5, 4, 8, 7, 9, 0) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 21:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-subset-a-large-dataset-using-a-list-of-specific-ID/m-p/663323#M8335</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-06-18T21:19:02Z</dc:date>
    </item>
  </channel>
</rss>

