<?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: How to accomplish this in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99672#M20970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should post some sample data and output you want to clarify your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 06:09:19 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2012-05-02T06:09:19Z</dc:date>
    <item>
      <title>How to accomplish this</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99667#M20965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to loop thru each of record to see if value in a particular date fields gets changed over time. There are multiple records for same entity in my table(kind of history table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to do this using data setp/proc sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;sasbase&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 15:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99667#M20965</guid>
      <dc:creator>sasbasls</dc:creator>
      <dc:date>2012-05-01T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to accomplish this</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99668#M20966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you give me some more details as to how the data is stored? a list of column names for example...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 15:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99668#M20966</guid>
      <dc:creator>asishgautam</dc:creator>
      <dc:date>2012-05-01T15:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to accomplish this</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99669#M20967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table where historical info related to that entity is stored over time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Entity_ID, col 2 , col 3 ...etc , and few date fields. So I want to check if a particular entity id is changed over time(against one of date fields) or not ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 15:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99669#M20967</guid>
      <dc:creator>sasbasls</dc:creator>
      <dc:date>2012-05-01T15:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to accomplish this</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99670#M20968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to show some sample data and sample output.&amp;nbsp; I'm guessing you want something like:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data have;&lt;BR /&gt;&amp;nbsp; input entity_id $4. datecol1 ddmmyy8.;&lt;BR /&gt;&amp;nbsp; format datecol1 mmddyy8.;&lt;BR /&gt;&amp;nbsp; datalines;&lt;BR /&gt;1234 010111&lt;BR /&gt;1234 010111&lt;BR /&gt;1234 010111&lt;BR /&gt;1234 030111&lt;BR /&gt;1235 020111&lt;BR /&gt;1235 020111&lt;BR /&gt;1235 030111&lt;BR /&gt;1235 040111&lt;BR /&gt;&amp;nbsp; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; select distinct entity_id, datecol1 from have;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output would be:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;entity_id&amp;nbsp; datecol1&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;---------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/11&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/03/11&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1235&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/02/11&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1235&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/03/11&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1235&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/04/11&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 20:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99670#M20968</guid>
      <dc:creator>JasonDiVirgilio</dc:creator>
      <dc:date>2012-05-01T20:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to accomplish this</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99671#M20969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% clear on what you're looking for, an example of what your data looks like would be helpful.&lt;/P&gt;&lt;P&gt;Using Jason data the following will give you distinct entries for records where the datecol1 are have different entries. You can remove the distinct keyword for all entries instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct * from have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by entity_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; having min(datecol1) ne max(datecol1);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 22:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99671#M20969</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-05-01T22:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to accomplish this</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99672#M20970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should post some sample data and output you want to clarify your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 06:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-accomplish-this/m-p/99672#M20970</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-05-02T06:09:19Z</dc:date>
    </item>
  </channel>
</rss>

