<?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: returning the first event date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/returning-the-first-event-date/m-p/309442#M66558</link>
    <description>&lt;P&gt;Dates are numeric so you can use the MIN() function to find the earliest date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;duration = min(event1_end, event2_end, event3_end) - event_beg_date;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2016 22:22:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-11-04T22:22:36Z</dc:date>
    <item>
      <title>returning the first event date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/returning-the-first-event-date/m-p/309440#M66557</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;id event_beg_date event1_end  event2_end event3_end 
1    01/01/2005  04/05/2005  03/10/2005  06/01/2005&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have the above code. I want to calculate the number of days between the event_beg_Date and the first event that happen across the three event dates.&lt;/P&gt;&lt;P&gt;So for example above, the code should retain the number of days between 01/01/2005 and 03/10/2005&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 22:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/returning-the-first-event-date/m-p/309440#M66557</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-11-04T22:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: returning the first event date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/returning-the-first-event-date/m-p/309442#M66558</link>
      <description>&lt;P&gt;Dates are numeric so you can use the MIN() function to find the earliest date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;duration = min(event1_end, event2_end, event3_end) - event_beg_date;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 22:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/returning-the-first-event-date/m-p/309442#M66558</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-04T22:22:36Z</dc:date>
    </item>
  </channel>
</rss>

