<?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: Identify all records having unexpected change in a data element value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Identify-all-records-having-unexpected-change-in-a-data-element/m-p/414363#M101518</link>
    <description>Is it possible to identify the record having the least used LHIN.&lt;BR /&gt;e.g. 102 3 05JAN2017 70</description>
    <pubDate>Fri, 17 Nov 2017 13:28:22 GMT</pubDate>
    <dc:creator>DeepakSwain</dc:creator>
    <dc:date>2017-11-17T13:28:22Z</dc:date>
    <item>
      <title>Identify all records having unexpected change in a data element value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-all-records-having-unexpected-change-in-a-data-element/m-p/414107#M101428</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;For your kind information, I am trying to identify all records of a person who is having changes in the value of a particular data element which is usually not expected in general. Here ID 102 is having LHIN value changed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
format date date9.;
input id $ LHIN 2. date date9. pulse 3. ;
datalines;
101 1 01JAN2017 90
101 1 03JAN2017 80
101 1 05JAN2017 70 
102 2 01JAN2017 90
102 2 03JAN2017 70
102 3 05JAN2017 70
;
run;



data want;
format date date9.;
input id $ LHIN 2. date date9. pulse 3. ;
datalines;
102 2 01JAN2017 90
102 2 03JAN2017 70
102 3 05JAN2017 70
;
run;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for your kind reply.&lt;BR /&gt;Regards,&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Nov 2017 19:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-all-records-having-unexpected-change-in-a-data-element/m-p/414107#M101428</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2017-11-16T19:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Identify all records having unexpected change in a data element value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-all-records-having-unexpected-change-in-a-data-element/m-p/414117#M101432</link>
      <description>&lt;P&gt;So you're looking for ID's where the LHIN changes for the person?&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/38137"&gt;@DeepakSwain&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;For your kind information, I am trying to identify all records of a person who is having changes in the value of a particular data element which is usually not expected in general. Here ID 102 is having LHIN value changed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
format date date9.;
input id $ LHIN 2. date date9. pulse 3. ;
datalines;
101 1 01JAN2017 90
101 1 03JAN2017 80
101 1 05JAN2017 70 
102 2 01JAN2017 90
102 2 03JAN2017 70
102 3 05JAN2017 70
;
run;



data want;
format date date9.;
input id $ LHIN 2. date date9. pulse 3. ;
datalines;
102 2 01JAN2017 90
102 2 03JAN2017 70
102 3 05JAN2017 70
;
run;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for your kind reply.&lt;BR /&gt;Regards,&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 20:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-all-records-having-unexpected-change-in-a-data-element/m-p/414117#M101432</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-16T20:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Identify all records having unexpected change in a data element value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-all-records-having-unexpected-change-in-a-data-element/m-p/414134#M101447</link>
      <description>&lt;P&gt;Perhaps&lt;/P&gt;
&lt;PRE&gt;proc sql;
   create table want as
   select b.*
   from (select id 
             from (select distinct id,lhin from have)
             group by id
             having count(*)&amp;gt;1
         ) as a
         left join 
         have as b
         on a.id=b.id
   ;
quit;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Nov 2017 20:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-all-records-having-unexpected-change-in-a-data-element/m-p/414134#M101447</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-16T20:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Identify all records having unexpected change in a data element value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-all-records-having-unexpected-change-in-a-data-element/m-p/414363#M101518</link>
      <description>Is it possible to identify the record having the least used LHIN.&lt;BR /&gt;e.g. 102 3 05JAN2017 70</description>
      <pubDate>Fri, 17 Nov 2017 13:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-all-records-having-unexpected-change-in-a-data-element/m-p/414363#M101518</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2017-11-17T13:28:22Z</dc:date>
    </item>
  </channel>
</rss>

