<?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: SAS help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/159866#M263228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since one row (perpatient) cannot provide both the highest and the lowest without adapting the data to provide at least one extra column.&lt;/P&gt;&lt;P&gt;These challenges are often solved with an efficient approach called a DOW loop.&lt;/P&gt;&lt;P&gt;Should be able to find a few examples by searching the communities.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Feb 2014 23:02:00 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2014-02-02T23:02:00Z</dc:date>
    <item>
      <title>SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/159865#M263227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with a specific part of my sas code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am supposed to use first. / last. and RETAIN to keep one record per patient and identify the highest and lowest temperature per patient. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with VS(vital signs data set ) which has multiple visits per patient and multiple temperatures recorded as well as multiple blood pressure taken ect.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following code, which keeps only one record per patient, but then there isnt a value for temperature for that patient, because the first time it sees usubjid (the unique subject identifier) the temperature isnt recorded then is that makes sense? I therefore am not sure how i would go about this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** i created vitals earlier in my code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data = vitals; &lt;/P&gt;&lt;P&gt;by usubjid; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data vitals2(keep= ftemp usubjid visitnum vstptnum); &lt;/P&gt;&lt;P&gt;set vitals; &lt;/P&gt;&lt;P&gt;by usubjid; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;retain ftemp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if first.usubjid and then output; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 22:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/159865#M263227</guid>
      <dc:creator>deezy55</dc:creator>
      <dc:date>2014-02-02T22:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/159866#M263228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since one row (perpatient) cannot provide both the highest and the lowest without adapting the data to provide at least one extra column.&lt;/P&gt;&lt;P&gt;These challenges are often solved with an efficient approach called a DOW loop.&lt;/P&gt;&lt;P&gt;Should be able to find a few examples by searching the communities.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 23:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/159866#M263228</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-02-02T23:02:00Z</dc:date>
    </item>
  </channel>
</rss>

