<?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 collapse records with consecutive dates in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-collapse-records-with-consecutive-dates/m-p/618953#M35415</link>
    <description>&lt;P&gt;A couple of questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;does subject play any role in the calculations or analysis? If so, how?&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;can start date and end date be different?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;If you answer YES to any of these, can you provide a more realistic example of the data?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Also:&amp;nbsp;&lt;/SPAN&gt;when you say "&lt;SPAN&gt;Because the date is not a consecutive date" what date are you referring to, start date or enddate?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also: can you please provide working SAS code to read in your example data into a SAS data set?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 21:06:15 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-01-21T21:06:15Z</dc:date>
    <item>
      <title>How to collapse records with consecutive dates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-collapse-records-with-consecutive-dates/m-p/618917#M35414</link>
      <description>I have records as follows:&lt;BR /&gt;&lt;BR /&gt;Subject startdt. enddt dur&lt;BR /&gt;01 01jan2019 01jan2019 1&lt;BR /&gt;01 02jan2019 02jan2019 1&lt;BR /&gt;01 03jan2019 03jan2019 1&lt;BR /&gt;01 05jan2019 05jan2019 1&lt;BR /&gt;&lt;BR /&gt;I want the records with consecutive dates, that is from 1jan to 3jan be collapsed as 1 record and the dur value should be 3. Also the 5jan record should be left as is Because the date is not a consecutive date.</description>
      <pubDate>Tue, 21 Jan 2020 18:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-collapse-records-with-consecutive-dates/m-p/618917#M35414</guid>
      <dc:creator>nisha_a</dc:creator>
      <dc:date>2020-01-21T18:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to collapse records with consecutive dates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-collapse-records-with-consecutive-dates/m-p/618953#M35415</link>
      <description>&lt;P&gt;A couple of questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;does subject play any role in the calculations or analysis? If so, how?&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;can start date and end date be different?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;If you answer YES to any of these, can you provide a more realistic example of the data?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Also:&amp;nbsp;&lt;/SPAN&gt;when you say "&lt;SPAN&gt;Because the date is not a consecutive date" what date are you referring to, start date or enddate?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also: can you please provide working SAS code to read in your example data into a SAS data set?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 21:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-collapse-records-with-consecutive-dates/m-p/618953#M35415</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-21T21:06:15Z</dc:date>
    </item>
  </channel>
</rss>

