<?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: calculating earliest among a group of dates in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/calculating-earliest-among-a-group-of-dates/m-p/15599#M2750</link>
    <description>Dates are numbers, so use the min function in a data step.....&lt;BR /&gt;
&lt;BR /&gt;
data a;                                                                                                                                 &lt;BR /&gt;
set b;                                                                                                                                  &lt;BR /&gt;
min_date=min(of date1-date4);                                                                                                           &lt;BR /&gt;
format min_date date8.;                                                                                                                 &lt;BR /&gt;
run;</description>
    <pubDate>Mon, 06 Apr 2009 16:20:57 GMT</pubDate>
    <dc:creator>Jay</dc:creator>
    <dc:date>2009-04-06T16:20:57Z</dc:date>
    <item>
      <title>calculating earliest among a group of dates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculating-earliest-among-a-group-of-dates/m-p/15598#M2749</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
In a sas dataset, I have 4 different dates (as 4 columns), need to find the earliest date among those per observation. &lt;BR /&gt;
Is there any better way to handle this (apart from recursive multiple if then else statements).Thanks.&lt;BR /&gt;
&lt;BR /&gt;
Kumar.</description>
      <pubDate>Mon, 06 Apr 2009 15:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculating-earliest-among-a-group-of-dates/m-p/15598#M2749</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-06T15:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculating earliest among a group of dates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculating-earliest-among-a-group-of-dates/m-p/15599#M2750</link>
      <description>Dates are numbers, so use the min function in a data step.....&lt;BR /&gt;
&lt;BR /&gt;
data a;                                                                                                                                 &lt;BR /&gt;
set b;                                                                                                                                  &lt;BR /&gt;
min_date=min(of date1-date4);                                                                                                           &lt;BR /&gt;
format min_date date8.;                                                                                                                 &lt;BR /&gt;
run;</description>
      <pubDate>Mon, 06 Apr 2009 16:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculating-earliest-among-a-group-of-dates/m-p/15599#M2750</guid>
      <dc:creator>Jay</dc:creator>
      <dc:date>2009-04-06T16:20:57Z</dc:date>
    </item>
  </channel>
</rss>

