<?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 Re: Selective Viewing and Removal of Observations - Basic Question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611471#M178211</link>
    <description>Sorry, can't download attachments.</description>
    <pubDate>Thu, 12 Dec 2019 23:29:12 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-12-12T23:29:12Z</dc:date>
    <item>
      <title>Selective Viewing and Removal of Observations - Basic Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611459#M178204</link>
      <description>&lt;P&gt;Hello - I have a basic question I can't seem to figure out.&amp;nbsp; I have a dataset with IDs and a test conducted multiple times per ID.&amp;nbsp; I want to 1) view and 2) eliminate all IDs for which I have one or fewer test values.&amp;nbsp; Here are the results of a proc freq.&lt;/P&gt;&lt;P&gt;Using SAS Studio/University.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anissa&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 22:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611459#M178204</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2019-12-12T22:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selective Viewing and Removal of Observations - Basic Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611467#M178207</link>
      <description>How can you have fewer than one test value? Is that indicating a missing data? It helps if you can provide some examples of what you have and what you want as your output.</description>
      <pubDate>Thu, 12 Dec 2019 23:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611467#M178207</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-12T23:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selective Viewing and Removal of Observations - Basic Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611469#M178209</link>
      <description>&lt;P&gt;Thank you very much for your reply!.&amp;nbsp; I had posted a screenshot but SAS removed it for improper format!.&amp;nbsp; Here it is.&lt;/P&gt;&lt;P&gt;What I mean is I want to "see" a list of all USUBJIDs for which I have 1 test or fewer and then I want to eliminate these from my dataset*.&amp;nbsp; I hope this helps.&amp;nbsp; Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 23:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611469#M178209</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2019-12-12T23:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selective Viewing and Removal of Observations - Basic Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611471#M178211</link>
      <description>Sorry, can't download attachments.</description>
      <pubDate>Thu, 12 Dec 2019 23:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611471#M178211</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-12T23:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selective Viewing and Removal of Observations - Basic Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611473#M178213</link>
      <description>&lt;P&gt;Assuming you can count records based on ID this may work though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
by ID;
run;

data single multiple;
set have;
by id;

if first.id and last.id then output single;
else output multiple;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will write all the records that occur only once to the a data set called single and multiple records to the data set multiple. If that doesn't work, please elaborate on your issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/264621"&gt;@anissak1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you very much for your reply!.&amp;nbsp; I had posted a screenshot but SAS removed it for improper format!.&amp;nbsp; Here it is.&lt;/P&gt;
&lt;P&gt;What I mean is I want to "see" a list of all USUBJIDs for which I have 1 test or fewer and then I want to eliminate these from my dataset*.&amp;nbsp; I hope this helps.&amp;nbsp; Thanks again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 23:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611473#M178213</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-12T23:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Selective Viewing and Removal of Observations - Basic Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611478#M178216</link>
      <description>&lt;P&gt;Thank you Reeza!&amp;nbsp; I will try tonight and let you know if it works.&amp;nbsp; I really appreciate it.&amp;nbsp; Especially as it is clear I could have asked the question more precisely.&amp;nbsp; Definitely still on the early part of the SAS learning curve!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 23:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Selective-Viewing-and-Removal-of-Observations-Basic-Question/m-p/611478#M178216</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2019-12-12T23:56:33Z</dc:date>
    </item>
  </channel>
</rss>

