<?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 Retain group variable is different then keep both records , else if group='Other' then keep only tis in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Retain-group-variable-is-different-then-keep-both-records-else/m-p/704320#M215910</link>
    <description>&lt;P&gt;I have a specific requirement. Keep all the duplicate records if the group is different except in one instance&amp;nbsp;If the record is unique with Group='Other' then keep this otherwise delete all duplicate records where group='Other'. Always take the most recent subDate&lt;/P&gt;&lt;P&gt;data to_clean;&lt;BR /&gt;infile cards dlm='|' truncover ;&lt;BR /&gt;input subDate :mmddyy10. unitName :$100. ADDR1 :$100. group $4.;&lt;BR /&gt;format subDate yymmdd10.;&lt;BR /&gt;cards;&lt;BR /&gt;&lt;STRONG&gt;11/21/2020|BAIRD HUDSON ENTERPRISES|106 E MAIN|Other&lt;/STRONG&gt;&lt;BR /&gt;10/30/2020|BAIRD HUDSON ENTERPRISES|106 E MAIN STREET|TNF&lt;BR /&gt;&lt;STRONG&gt;10/30/2020|BIG HORN ENTERPRISE|146 S. BENT STREET|SNF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;10/30/2020|BIG HORN ENTERPRISE|641 WARREN STREET|SNF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;11/5/2020|BROOKDALE |tt|ALF&lt;/STRONG&gt;&lt;BR /&gt;10/29/2020|BROOKDALE|2401 COUGAR AVENUE|ALF&lt;BR /&gt;&lt;STRONG&gt;10/30/2020|ELMCROFT|1551 SUGARLAND DRIVE|ALF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;11/2/2020|ELMCROFT|1551 SUGARLAND DRIVE DRIVE|SNF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;11/21/2020|GREEN HOUSE LIVING|2311 SHIRLEY|SNF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;10/29/2020|GREEN HOUSE LIVING|2311 SHIRLEY COVE|ALF&lt;/STRONG&gt;&lt;BR /&gt;11/21/2020|MISSION AT THE VILLA|1445 UINTA|ALF&lt;BR /&gt;11/2/2020|MISSION AT THE VILLA|1445 UINTA DRIVE|Other&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 01:43:34 GMT</pubDate>
    <dc:creator>Stalk</dc:creator>
    <dc:date>2020-12-08T01:43:34Z</dc:date>
    <item>
      <title>Retain group variable is different then keep both records , else if group='Other' then keep only tis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retain-group-variable-is-different-then-keep-both-records-else/m-p/704320#M215910</link>
      <description>&lt;P&gt;I have a specific requirement. Keep all the duplicate records if the group is different except in one instance&amp;nbsp;If the record is unique with Group='Other' then keep this otherwise delete all duplicate records where group='Other'. Always take the most recent subDate&lt;/P&gt;&lt;P&gt;data to_clean;&lt;BR /&gt;infile cards dlm='|' truncover ;&lt;BR /&gt;input subDate :mmddyy10. unitName :$100. ADDR1 :$100. group $4.;&lt;BR /&gt;format subDate yymmdd10.;&lt;BR /&gt;cards;&lt;BR /&gt;&lt;STRONG&gt;11/21/2020|BAIRD HUDSON ENTERPRISES|106 E MAIN|Other&lt;/STRONG&gt;&lt;BR /&gt;10/30/2020|BAIRD HUDSON ENTERPRISES|106 E MAIN STREET|TNF&lt;BR /&gt;&lt;STRONG&gt;10/30/2020|BIG HORN ENTERPRISE|146 S. BENT STREET|SNF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;10/30/2020|BIG HORN ENTERPRISE|641 WARREN STREET|SNF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;11/5/2020|BROOKDALE |tt|ALF&lt;/STRONG&gt;&lt;BR /&gt;10/29/2020|BROOKDALE|2401 COUGAR AVENUE|ALF&lt;BR /&gt;&lt;STRONG&gt;10/30/2020|ELMCROFT|1551 SUGARLAND DRIVE|ALF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;11/2/2020|ELMCROFT|1551 SUGARLAND DRIVE DRIVE|SNF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;11/21/2020|GREEN HOUSE LIVING|2311 SHIRLEY|SNF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;10/29/2020|GREEN HOUSE LIVING|2311 SHIRLEY COVE|ALF&lt;/STRONG&gt;&lt;BR /&gt;11/21/2020|MISSION AT THE VILLA|1445 UINTA|ALF&lt;BR /&gt;11/2/2020|MISSION AT THE VILLA|1445 UINTA DRIVE|Other&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 01:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retain-group-variable-is-different-then-keep-both-records-else/m-p/704320#M215910</guid>
      <dc:creator>Stalk</dc:creator>
      <dc:date>2020-12-08T01:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Retain group variable is different then keep both records , else if group='Other' then keep only</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retain-group-variable-is-different-then-keep-both-records-else/m-p/704370#M215932</link>
      <description>&lt;P&gt;Maybe this is a late-monday-effect (had a day off yesterday): i don't see a clear definition of "duplicate" in your description.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 07:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retain-group-variable-is-different-then-keep-both-records-else/m-p/704370#M215932</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-12-08T07:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Retain group variable is different then keep both records , else if group='Other' then keep only</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retain-group-variable-is-different-then-keep-both-records-else/m-p/704416#M215942</link>
      <description>Duplicates are across the multiple fields unitName, ADDR1,group;&lt;BR /&gt;If a record is unique and GROUP='Other' then keep&lt;BR /&gt;If a record is a duplicate and GROUP='Other', then delete that one.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retain-group-variable-is-different-then-keep-both-records-else/m-p/704416#M215942</guid>
      <dc:creator>Stalk</dc:creator>
      <dc:date>2020-12-08T14:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Retain group variable is different then keep both records , else if group='Other' then keep only</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retain-group-variable-is-different-then-keep-both-records-else/m-p/704639#M216029</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/358432"&gt;@Stalk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Duplicates are across the multiple fields unitName, ADDR1,group;&lt;BR /&gt;If a record is unique and GROUP='Other' then keep&lt;BR /&gt;If a record is a duplicate and GROUP='Other', then delete that one.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what should happen to those observations with Group NE 'Other'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 06:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retain-group-variable-is-different-then-keep-both-records-else/m-p/704639#M216029</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-12-09T06:44:31Z</dc:date>
    </item>
  </channel>
</rss>

