<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Find-min-and-max/m-p/659175#M197534</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/294547"&gt;@Emma8&lt;/a&gt;&amp;nbsp; please see if this helps&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID $ var1 var2 var3 ;
cards;
A 4 1 5
B . 5 5
C 1 1 4
;

data want;
 set have;
 array t var1-var3;
 min=min(of t(*));
 min_name=vname(t(whichn(min,of t(*))));
 max=max(of t(*));
 max_name=vname(t(whichn(max,of t(*))));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Jun 2020 23:59:39 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2020-06-15T23:59:39Z</dc:date>
    <item>
      <title>Find min and max</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-min-and-max/m-p/659170#M197531</link>
      <description />
      <pubDate>Tue, 16 Jun 2020 01:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-min-and-max/m-p/659170#M197531</guid>
      <dc:creator>Emma8</dc:creator>
      <dc:date>2020-06-16T01:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find min and max</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-min-and-max/m-p/659175#M197534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/294547"&gt;@Emma8&lt;/a&gt;&amp;nbsp; please see if this helps&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID $ var1 var2 var3 ;
cards;
A 4 1 5
B . 5 5
C 1 1 4
;

data want;
 set have;
 array t var1-var3;
 min=min(of t(*));
 min_name=vname(t(whichn(min,of t(*))));
 max=max(of t(*));
 max_name=vname(t(whichn(max,of t(*))));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jun 2020 23:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-min-and-max/m-p/659175#M197534</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-06-15T23:59:39Z</dc:date>
    </item>
  </channel>
</rss>

