<?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: Maximum value of a numeric variable sorted by patients in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Maximum-value-of-a-numeric-variable-sorted-by-patients/m-p/260331#M50498</link>
    <description>&lt;P&gt;Thanks a lot KurtBremser. It was exactly the commando I needed. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2016 07:16:24 GMT</pubDate>
    <dc:creator>Gothardt</dc:creator>
    <dc:date>2016-03-31T07:16:24Z</dc:date>
    <item>
      <title>Maximum value of a numeric variable sorted by patients</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximum-value-of-a-numeric-variable-sorted-by-patients/m-p/259049#M50041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset sorted by patients; e.g. 2 observations/lines (of data) for patient 1, 4 lines for patient 2 and so on. I have a variable (we call it "LINES") counting the lines for each patient (1, 2, 3, 4 and so on).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a new variable with data from the the last line for each patient, in other words the highest value of the variable "LINES" (sorted by patients).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I create a syntax with "highest value" (it should bed sorted by patients already) of a variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Mette&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>Fri, 25 Mar 2016 12:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximum-value-of-a-numeric-variable-sorted-by-patients/m-p/259049#M50041</guid>
      <dc:creator>Gothardt</dc:creator>
      <dc:date>2016-03-25T12:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value of a numeric variable sorted by patients</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximum-value-of-a-numeric-variable-sorted-by-patients/m-p/259050#M50042</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of describing in words your situation it will be useful to post an example of your data.&lt;/P&gt;&lt;P&gt;It is easier to look at data you have - data you want than reading a description.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 12:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximum-value-of-a-numeric-variable-sorted-by-patients/m-p/259050#M50042</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-03-25T12:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value of a numeric variable sorted by patients</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximum-value-of-a-numeric-variable-sorted-by-patients/m-p/259051#M50043</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
by patient lines;
run;

data want;
set have;
by patient;
if last.patient;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Mar 2016 12:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximum-value-of-a-numeric-variable-sorted-by-patients/m-p/259051#M50043</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-25T12:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value of a numeric variable sorted by patients</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximum-value-of-a-numeric-variable-sorted-by-patients/m-p/260331#M50498</link>
      <description>&lt;P&gt;Thanks a lot KurtBremser. It was exactly the commando I needed. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 07:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximum-value-of-a-numeric-variable-sorted-by-patients/m-p/260331#M50498</guid>
      <dc:creator>Gothardt</dc:creator>
      <dc:date>2016-03-31T07:16:24Z</dc:date>
    </item>
  </channel>
</rss>

