<?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 Removing missing values in a group in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-missing-values-in-a-group/m-p/207166#M38523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could probably be the really novice task but i am unable to get the answer easily. &lt;/P&gt;&lt;P&gt;My EMP table looks like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 270px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="78"&gt;E&lt;STRONG&gt;mp_Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Address&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Phone&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Dept&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1234&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;park road&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want in output is single observation like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 270px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="78"&gt;&lt;STRONG&gt;Emp_Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Address&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Phone&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Dept&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;park road&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1234&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need direction please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 13:11:46 GMT</pubDate>
    <dc:creator>yashpande</dc:creator>
    <dc:date>2015-04-30T13:11:46Z</dc:date>
    <item>
      <title>Removing missing values in a group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-missing-values-in-a-group/m-p/207166#M38523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could probably be the really novice task but i am unable to get the answer easily. &lt;/P&gt;&lt;P&gt;My EMP table looks like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 270px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="78"&gt;E&lt;STRONG&gt;mp_Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Address&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Phone&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Dept&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1234&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;park road&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want in output is single observation like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 270px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="78"&gt;&lt;STRONG&gt;Emp_Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Address&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Phone&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Dept&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;park road&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1234&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need direction please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-missing-values-in-a-group/m-p/207166#M38523</guid>
      <dc:creator>yashpande</dc:creator>
      <dc:date>2015-04-30T13:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Removing missing values in a group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-missing-values-in-a-group/m-p/207167#M38524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's short, but understanding it might require some study on your part.&amp;nbsp; Assuming your data set is sorted by EMP_NAME:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; update emp (obs=0) emp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by emp_name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-missing-values-in-a-group/m-p/207167#M38524</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-04-30T13:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Removing missing values in a group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-missing-values-in-a-group/m-p/207168#M38525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also do the same thing by merging:&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile datalines dlm="," dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input Emp_Name $ Address $ Phone $ Dept $;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;abc,,1234,&lt;/P&gt;&lt;P&gt;abc,park road,,&lt;/P&gt;&lt;P&gt;abc,,,Sales&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge have (keep=emp_name address where=(address ne ""))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have (keep=emp_name phone where=(phone ne ""))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have (keep=emp_name dept where=(dept ne ""));&lt;/P&gt;&lt;P&gt;&amp;nbsp; by emp_name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-missing-values-in-a-group/m-p/207168#M38525</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-30T13:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Removing missing values in a group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-missing-values-in-a-group/m-p/207169#M38526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a very simple example.&amp;nbsp;&amp;nbsp; My question is what business rules do you want to employ when you find something like multiple address for a given employee?&amp;nbsp;&amp;nbsp; If you had something like a status/update date, then perhaps you could sort on that to help choose?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 21:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-missing-values-in-a-group/m-p/207169#M38526</guid>
      <dc:creator>normarc</dc:creator>
      <dc:date>2015-04-30T21:31:54Z</dc:date>
    </item>
  </channel>
</rss>

