<?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 SAS Base in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Base/m-p/800038#M314660</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data abc;&lt;BR /&gt;input name$ status sal;&lt;BR /&gt;datalines;&lt;BR /&gt;hhh 0 4500&lt;BR /&gt;hhh 1 5600&lt;BR /&gt;ddd 0 7688&lt;BR /&gt;uhd 1 7544&lt;BR /&gt;yhd 0 6666&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have 3 variables &lt;STRONG&gt;name ,&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;status &lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;sal&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;i want to pick status 0 when the names are same(as 0 is original status and 1 is duplicated).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex: we have two observation above with same name&amp;nbsp;&lt;/P&gt;&lt;P&gt;hhh 0&lt;BR /&gt;hhh 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i want to pick the values with 0 status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 02:32:03 GMT</pubDate>
    <dc:creator>Pandu</dc:creator>
    <dc:date>2022-03-04T02:32:03Z</dc:date>
    <item>
      <title>SAS Base</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Base/m-p/800038#M314660</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data abc;&lt;BR /&gt;input name$ status sal;&lt;BR /&gt;datalines;&lt;BR /&gt;hhh 0 4500&lt;BR /&gt;hhh 1 5600&lt;BR /&gt;ddd 0 7688&lt;BR /&gt;uhd 1 7544&lt;BR /&gt;yhd 0 6666&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have 3 variables &lt;STRONG&gt;name ,&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;status &lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;sal&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;i want to pick status 0 when the names are same(as 0 is original status and 1 is duplicated).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex: we have two observation above with same name&amp;nbsp;&lt;/P&gt;&lt;P&gt;hhh 0&lt;BR /&gt;hhh 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i want to pick the values with 0 status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 02:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Base/m-p/800038#M314660</guid>
      <dc:creator>Pandu</dc:creator>
      <dc:date>2022-03-04T02:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Base/m-p/800041#M314663</link>
      <description>&lt;P&gt;If you only have either 0 or 1 Status per person, how about the following code to do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=abc out=sorted;
  by name status;
run;

data want;
  set sorted;
  by name status;
  if first.name;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Mar 2022 02:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Base/m-p/800041#M314663</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-03-04T02:52:48Z</dc:date>
    </item>
  </channel>
</rss>

