<?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: keeping specific rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/keeping-specific-rows/m-p/572530#M161566</link>
    <description>&lt;P&gt;Are you asking for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set test;
if date='&lt;SPAN&gt;20900101';&lt;/SPAN&gt;
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where date=&amp;nbsp;&lt;CODE class=" language-sas"&gt;'&lt;SPAN&gt;20900101';&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 21:10:53 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-07-10T21:10:53Z</dc:date>
    <item>
      <title>keeping specific rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/keeping-specific-rows/m-p/572527#M161564</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input id date$ var1$ var2$;
datalines;
1 20900101 abc abc2
2 20070102 cdf cdf2
2 20900101 jdk lao2
1 20110101 cds sxa
1 20150202 jui wsa
3 20900101 wer wes2 &lt;BR /&gt;1 21000101 rte www&lt;BR /&gt;4 20190101 www rrr 
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is my test data set.&amp;nbsp;&lt;SPAN&gt;I'm looking for a solution for keeping the specified rows.&amp;nbsp;If there is a 20900101&amp;nbsp; date from a particular id, then keep it.&amp;nbsp;The other rows which have the same ID just drop it or delete .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so my final table&amp;nbsp;I want it to look like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input id date$ var1$ var2$;
datalines;
1 20900101 abc abc2
2 20900101 jdk lao2
3 20900101 wer wes2
4 20190101 www rrr
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 21:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/keeping-specific-rows/m-p/572527#M161564</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2019-07-10T21:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: keeping specific rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/keeping-specific-rows/m-p/572530#M161566</link>
      <description>&lt;P&gt;Are you asking for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set test;
if date='&lt;SPAN&gt;20900101';&lt;/SPAN&gt;
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where date=&amp;nbsp;&lt;CODE class=" language-sas"&gt;'&lt;SPAN&gt;20900101';&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 21:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/keeping-specific-rows/m-p/572530#M161566</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-07-10T21:10:53Z</dc:date>
    </item>
  </channel>
</rss>

