<?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: Min Function Error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117121#M32291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would look at the log more closely.&amp;nbsp; I would guess that it would be stipulating either first_date, last_date, or information_date.&amp;nbsp; One of those appears to not exist in your data.&amp;nbsp; If you do a proc contents on the input data do all three show up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 17:34:26 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-09-10T17:34:26Z</dc:date>
    <item>
      <title>Min Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117118#M32288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting an error for the following code -&amp;gt;&amp;nbsp; &lt;STRONG&gt;Function MIN requires a numeric expression as argument 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sql;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;create table&amp;nbsp; TEST as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff6600;"&gt;min(min(FIRST_Date, information_date)) as First_V2&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(LAST_Date)as Last_V2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;group by&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Can someone tell me what I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 16:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117118#M32288</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-09-10T16:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Min Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117119#M32289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was there more to the error message, specifically, something like one of the variables wasn't found in the table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117119#M32289</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-09-10T17:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Min Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117120#M32290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Art, just one more line after that message :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: The following columns were not found in the contributing tables: First_V2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I don't get this line as this is the variable I am creating using the min statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117120#M32290</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-09-10T17:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Min Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117121#M32291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would look at the log more closely.&amp;nbsp; I would guess that it would be stipulating either first_date, last_date, or information_date.&amp;nbsp; One of those appears to not exist in your data.&amp;nbsp; If you do a proc contents on the input data do all three show up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117121#M32291</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-09-10T17:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Min Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117122#M32292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vomer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your error is in the syntax for the summary function min.&amp;nbsp; You have used the syntax for the MIN function from the DATA step instead of the summary function syntax required by PROC SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The summary function MIN has one argument, not two.&amp;nbsp; Review the documentation in the PROC SQL manual.&amp;nbsp; You got it right for the MAX summary function, but I can't tell what you are trying to do in the expression that starts "min(min(" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117122#M32292</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-09-10T17:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Min Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117123#M32293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;all those data set exist guys. I am trying to get the cumulative min of the 2 variables : &lt;SPAN style="color: #ff6600; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;FIRST_Date, information_date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I just do min (&lt;SPAN style="color: #ff6600; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;FIRST_Date, information_date&lt;/SPAN&gt;) then it does not give me that which is why I tried the min (min() approach... but it is not working &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117123#M32293</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-09-10T17:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Min Function Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117124#M32294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is telling you the FIRST_DATE is a character variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-Function-Error/m-p/117124#M32294</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-09-10T17:59:59Z</dc:date>
    </item>
  </channel>
</rss>

