<?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: FInd Min and max value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/FInd-Min-and-max-value/m-p/264716#M51972</link>
    <description>&lt;P&gt;All those summary functions (max, min, sum, ...) have the advantage that they return a non-missing value as long as one of the arguments is non-missing. If you want a missing value treated as the minimum, you will have to code that manually.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 05:45:37 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-04-19T05:45:37Z</dc:date>
    <item>
      <title>FInd Min and max value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FInd-Min-and-max-value/m-p/264710#M51970</link>
      <description>&lt;P&gt;I want to find the min value.&lt;BR /&gt;data t;&lt;BR /&gt;input x;&lt;BR /&gt;cards;&lt;BR /&gt;10&lt;BR /&gt;20&lt;BR /&gt;40&lt;BR /&gt;30&lt;BR /&gt;26&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i found this code&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data t1;&lt;BR /&gt;set t end=last;&lt;BR /&gt;retain y;&lt;/P&gt;&lt;P&gt;y=min(y,x);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;And it's giving the right solution.I want to ask that initially the value of y is missing and if we using min(y,x) then it should come as missing value as missing value has the lowest priority, then how come it is coming 10 . Please explain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 04:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FInd-Min-and-max-value/m-p/264710#M51970</guid>
      <dc:creator>pawandh</dc:creator>
      <dc:date>2016-04-19T04:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: FInd Min and max value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FInd-Min-and-max-value/m-p/264715#M51971</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245915.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245915.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.. the min function only returns a missing value, if all arguments are missing. This is simply how the function works.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 05:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FInd-Min-and-max-value/m-p/264715#M51971</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2016-04-19T05:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: FInd Min and max value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FInd-Min-and-max-value/m-p/264716#M51972</link>
      <description>&lt;P&gt;All those summary functions (max, min, sum, ...) have the advantage that they return a non-missing value as long as one of the arguments is non-missing. If you want a missing value treated as the minimum, you will have to code that manually.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 05:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FInd-Min-and-max-value/m-p/264716#M51972</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-19T05:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: FInd Min and max value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FInd-Min-and-max-value/m-p/264719#M51973</link>
      <description>&lt;P&gt;Although it works I would highly recommend using proc means instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc means data=have stackods min max;
Var x;
ODS output summary=want;
Run;

Proc print data=want;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2016 06:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FInd-Min-and-max-value/m-p/264719#M51973</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-19T06:11:38Z</dc:date>
    </item>
  </channel>
</rss>

