<?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: Creating a Minimum and Maximum Value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Minimum-and-Maximum-Value/m-p/645390#M192919</link>
    <description>&lt;P&gt;This is the same question you posted in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Using-proc-sql-to-create-min-and-max/m-p/645368" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/Using-proc-sql-to-create-min-and-max/m-p/645368&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should follow the answers there.&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 19:44:51 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-05-05T19:44:51Z</dc:date>
    <item>
      <title>Creating a Minimum and Maximum Value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Minimum-and-Maximum-Value/m-p/645386#M192918</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a new variable that indicates a minimum value and a maximum value of a parameter by subjid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically trying to follow this specification:&lt;/P&gt;&lt;P&gt;Per SUBJID &amp;amp; PARAM:&lt;BR /&gt;MAXIMUM = the first record with the largest AVAL&lt;BR /&gt;MINIMUM = the first record with the smallest AVAL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example lets say i have this set of data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;subjid paramcd aval&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 34&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 39&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 28&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 28&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 40&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 40&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1 ABC 9&lt;/P&gt;&lt;P&gt;1 ABC 9&lt;/P&gt;&lt;P&gt;1 ABC 9&lt;/P&gt;&lt;P&gt;1 ABC 9&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want the variable DTYPE to indicate the first max value and the first min value: Also if the aval value is the same i want to put both min and max&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;subjid paramcd aval dtype&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 34&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 39&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 28 min&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 28&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 40 max&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 ALT 40&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 15 max&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 9 min&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 APT 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1 ABC 9 min&lt;/P&gt;&lt;P&gt;1 ABC 9 max&lt;/P&gt;&lt;P&gt;1 ABC 9&lt;/P&gt;&lt;P&gt;1 ABC 9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 19:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-Minimum-and-Maximum-Value/m-p/645386#M192918</guid>
      <dc:creator>Dregerator</dc:creator>
      <dc:date>2020-05-05T19:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Minimum and Maximum Value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Minimum-and-Maximum-Value/m-p/645390#M192919</link>
      <description>&lt;P&gt;This is the same question you posted in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Using-proc-sql-to-create-min-and-max/m-p/645368" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/Using-proc-sql-to-create-min-and-max/m-p/645368&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should follow the answers there.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 19:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-Minimum-and-Maximum-Value/m-p/645390#M192919</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-05T19:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Minimum and Maximum Value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Minimum-and-Maximum-Value/m-p/645392#M192921</link>
      <description>&lt;P&gt;I am starting to believe you are not after Proc SQL only solution anymore as mentioned in your original stated requirement on the other thread, and so you have a lot more options to choose from the original thread. &lt;EM&gt;I did see your response to my request there. I appreciate it.&lt;/EM&gt;&amp;nbsp; Relax and keep the communication in the same thread.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I am caught up with anything and everything to do at work but SAS. It's rather frustrating to miss all the fun here.&amp;nbsp; I will try to get my hands on your requirement soon as I can, unless you already have received one from somebody else.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 00:31:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-Minimum-and-Maximum-Value/m-p/645392#M192921</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-05-06T00:31:10Z</dc:date>
    </item>
  </channel>
</rss>

