<?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 SAS Programming - COVID-19 PROJECT!! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649038#M194523</link>
    <description>&lt;P&gt;@Programming&lt;/P&gt;&lt;P&gt;Novice SAS Programmer here: I have a very large datasets I am combing through, however I am running into a issue with how I might go about automating the consolidation of a repeated measures arrangement into a new dataset. Some background information which might help orient the community to the attached sample document "SAS_question.csv":&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The score uses the&amp;nbsp;"+" and "-" as they are meaningful -- these are stored as text variables in SAS.&lt;/LI&gt;&lt;LI&gt;I want to find and select the lowest value (this will exclusively be the "-" values) for a given individual (denoted by ID)&lt;/LI&gt;&lt;LI&gt;After locating the lowest value for a given individual, I want to put that into a new dataset&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;How should the code be written to accomplish this? I am willing to learn what will be the easiest way to accomplish this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further background -- this will be for COVID-19 related research and I am trying to get this valuable information out to the medical community ASAP. Any help would be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2020 22:52:59 GMT</pubDate>
    <dc:creator>add4514</dc:creator>
    <dc:date>2020-05-19T22:52:59Z</dc:date>
    <item>
      <title>SAS Programming - COVID-19 PROJECT!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649038#M194523</link>
      <description>&lt;P&gt;@Programming&lt;/P&gt;&lt;P&gt;Novice SAS Programmer here: I have a very large datasets I am combing through, however I am running into a issue with how I might go about automating the consolidation of a repeated measures arrangement into a new dataset. Some background information which might help orient the community to the attached sample document "SAS_question.csv":&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The score uses the&amp;nbsp;"+" and "-" as they are meaningful -- these are stored as text variables in SAS.&lt;/LI&gt;&lt;LI&gt;I want to find and select the lowest value (this will exclusively be the "-" values) for a given individual (denoted by ID)&lt;/LI&gt;&lt;LI&gt;After locating the lowest value for a given individual, I want to put that into a new dataset&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;How should the code be written to accomplish this? I am willing to learn what will be the easiest way to accomplish this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further background -- this will be for COVID-19 related research and I am trying to get this valuable information out to the medical community ASAP. Any help would be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 22:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649038#M194523</guid>
      <dc:creator>add4514</dc:creator>
      <dc:date>2020-05-19T22:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming - COVID-19 PROJECT!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649042#M194527</link>
      <description>&lt;P&gt;Question, why are your + and - values character? Pretty much a trivial exercise if they are numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example if the score is numeric:&lt;/P&gt;
&lt;PRE&gt;proc summary data=have nway;
   class id;
   var score;
   output out=work.summary (drop=_type_) min=;
run;&lt;/PRE&gt;
&lt;P&gt;Would create a new data set with the Id, the smallest score (and an extra variable _freq_ with the number of records that ID had in the starting set , you could remove it by adding it to the Drop list).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is how to read that data in so score is numeric:&lt;/P&gt;
&lt;PRE&gt;data have;
   infile "d:\path\SASQuestion.csv" dlm=',' ;
   input id $ score;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 23:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649042#M194527</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-19T23:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming - COVID-19 PROJECT!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649049#M194534</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;I have a very large datasets&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Are these SAS data sets? If so just run this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;proc&amp;nbsp; sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; select ID, min(SCORE) from TABLE group by ID;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 23:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649049#M194534</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-19T23:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming - COVID-19 PROJECT!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649077#M194553</link>
      <description>&lt;P&gt;I didn't even think of that!!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 02:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649077#M194553</guid>
      <dc:creator>add4514</dc:creator>
      <dc:date>2020-05-20T02:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming - COVID-19 PROJECT!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649078#M194554</link>
      <description>&lt;P&gt;great idea!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 02:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-COVID-19-PROJECT/m-p/649078#M194554</guid>
      <dc:creator>add4514</dc:creator>
      <dc:date>2020-05-20T02:52:39Z</dc:date>
    </item>
  </channel>
</rss>

