<?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 Finding the minimum time value among a list of variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Finding-the-minimum-time-value-among-a-list-of-variables/m-p/231357#M42077</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would anyone have a suggestion for which function to use to find the earliest time value from an array of variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;appreciate it!!&lt;/P&gt;</description>
    <pubDate>Fri, 23 Oct 2015 14:46:23 GMT</pubDate>
    <dc:creator>Maisha_Huq</dc:creator>
    <dc:date>2015-10-23T14:46:23Z</dc:date>
    <item>
      <title>Finding the minimum time value among a list of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-the-minimum-time-value-among-a-list-of-variables/m-p/231357#M42077</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would anyone have a suggestion for which function to use to find the earliest time value from an array of variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;appreciate it!!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 14:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-the-minimum-time-value-among-a-list-of-variables/m-p/231357#M42077</guid>
      <dc:creator>Maisha_Huq</dc:creator>
      <dc:date>2015-10-23T14:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the minimum time value among a list of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-the-minimum-time-value-among-a-list-of-variables/m-p/231365#M42078</link>
      <description>&lt;P&gt;Assuming you already have your array, called x&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  /* array x declaration */;
  do over x;
    min_date = min(of min_date,x);
  end;&lt;BR /&gt;/* or whatever date format you're working with */&lt;BR /&gt;  format min_date mmddyy10.; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Oct 2015 15:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-the-minimum-time-value-among-a-list-of-variables/m-p/231365#M42078</guid>
      <dc:creator>JoshB</dc:creator>
      <dc:date>2015-10-23T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the minimum time value among a list of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-the-minimum-time-value-among-a-list-of-variables/m-p/231367#M42079</link>
      <description>&lt;P&gt;Hi mate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data test;
 inv=101;  date2="02FEB1900 19:00"dt; date3="01JAN1890 11:22"DT; date4="09NOV2014 02:22"dt; 
 format date1-date4 datetime.;
run;

data want (drop=i);
 set test;
 array date{*} date:;
   mindate = min(of date{*});
   format mindate datetime20.;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Att&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 15:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-the-minimum-time-value-among-a-list-of-variables/m-p/231367#M42079</guid>
      <dc:creator>DartRodrigo</dc:creator>
      <dc:date>2015-10-23T15:13:26Z</dc:date>
    </item>
  </channel>
</rss>

