<?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: I need a code for the following scenerio in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-need-a-code-for-the-following-scenerio/m-p/18062#M2668</link>
    <description>What if:&lt;BR /&gt;
- you give us a working test dataset (valid input statement).&lt;BR /&gt;
- you give us an example showing based on the testdata showing how the desired result should look like.</description>
    <pubDate>Tue, 14 Apr 2009 09:50:31 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2009-04-14T09:50:31Z</dc:date>
    <item>
      <title>I need a code for the following scenerio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-a-code-for-the-following-scenerio/m-p/18061#M2667</link>
      <description>I need a code for the following scenerio&lt;BR /&gt;
 In a dataset I have columns like Acc_sk,Acc_ID, Coll_Status,Valid_from and Valid_to &lt;BR /&gt;
&lt;BR /&gt;
Dataset:Account&lt;BR /&gt;
Acc_sk  Acc_ID   Coll_Status Valid_from                          Valid_to&lt;BR /&gt;
1            001            open         4-13-2009 12:00:09 PM     4-13-2009 23:00:09 PM&lt;BR /&gt;
2            001            closed       4-13-2009 12:00:10 PM     1-1-2010 23:00:09 PM&lt;BR /&gt;
3            001            open         1-1-2010 23:00:09PM        1-1-5999 00:00:00 &lt;BR /&gt;
4            002            open         4-13-2009 12:00:09 PM     4-13-2009 23:00:09 PM&lt;BR /&gt;
5            002            closed      4-13-2009 12:00:10 PM     1-1-5999 00:00:00 &lt;BR /&gt;
  I need to  apply check in this table that wether the difference between valid_from of each Acc_ID where max(valid_to) and valid_to of its previus row should be of one sec.&lt;BR /&gt;
Moreover I need to make it generic where the value of target table will be in a macro and also the value of columns(like Acc_ID) will also be stored in a macro as a comma separated list.(means it could be one column or combination of one or more columns)</description>
      <pubDate>Tue, 14 Apr 2009 08:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-a-code-for-the-following-scenerio/m-p/18061#M2667</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-14T08:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: I need a code for the following scenerio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-a-code-for-the-following-scenerio/m-p/18062#M2668</link>
      <description>What if:&lt;BR /&gt;
- you give us a working test dataset (valid input statement).&lt;BR /&gt;
- you give us an example showing based on the testdata showing how the desired result should look like.</description>
      <pubDate>Tue, 14 Apr 2009 09:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-a-code-for-the-following-scenerio/m-p/18062#M2668</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-04-14T09:50:31Z</dc:date>
    </item>
  </channel>
</rss>

