<?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: Data Manipulation in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196677#M4318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go support.sas.com.&lt;/P&gt;&lt;P&gt;Search for RETAIN statement. There you will have syntax and tons of samples.&lt;/P&gt;&lt;P&gt;By reading your response, I think you need some basic SAS programming training.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Mar 2015 14:29:38 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2015-03-07T14:29:38Z</dc:date>
    <item>
      <title>Data Manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196674#M4315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 3 columns of data shown in the table below. It's the same format that exist in my data set. I want minimum 1-R2 value of each cluster against their cluster name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="264"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="23" width="107"&gt;Cluster&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="74"&gt;Variable&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="83"&gt;1-R**2 Ratio&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt;Cluster 1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;brclus2&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.4901&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MIPhone&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MIPOS&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MIPOSAmt&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MICC&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MICCBal&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MICCPurc&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt;Cluster 2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;HMVal&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.3206&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;Age&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.4632&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MIIncome&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.0247&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MIHMOwn&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.0811&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MILORes&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.0247&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MIHMVal&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.0247&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;MIAge&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.1094&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt;Cluster 3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;Dep&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.4235&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;Checks&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.3383&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="107"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;Teller&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="83"&gt;0.5586&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;" width="107"&gt;Cluster 4&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;" width="74"&gt;MTGBal&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;" width="83"&gt;0.039&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The desired output is shown in the table below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="228"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="23" width="64"&gt;Cluster&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="73"&gt;Variable&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="91"&gt;1-R**2 Ratio&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="64"&gt;Cluster 1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="73"&gt;MIPhone&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="91"&gt;0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="64"&gt;Cluster 2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="73"&gt;MIIncome&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="91"&gt;0.0247&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="64"&gt;Cluster 3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="73"&gt;Checks&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="91"&gt;0.3383&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;" width="64"&gt;Cluster 4&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;" width="73"&gt;MTGBal&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;" width="91"&gt;0.039&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in anticipation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 10:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196674#M4315</guid>
      <dc:creator>Ujjawal</dc:creator>
      <dc:date>2015-03-07T10:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196675#M4316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your input data is like a report?&lt;/P&gt;&lt;P&gt;Use retain in the data step to get the cluster name/no on each line.&lt;/P&gt;&lt;P&gt;But how do you chose which "variable" 1-R**2 Ratio-values to keep if there are many that have the same value, the original order?&lt;/P&gt;&lt;P&gt;If so, you could a couple of different techniques. One is to again use retain to keep track on the minimum value. Then read the output database.&lt;/P&gt;&lt;P&gt;Another can be to use SQL. Use monotonic() to keep track of original sorting order, and use having&amp;nbsp; min(row_no) = row_no and min(1-R**2 Ratio) = 1-R**2 Ratio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 10:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196675#M4316</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-03-07T10:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196676#M4317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we retain the cluster values, can you please explain with SAS Code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I am new so please dont mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 13:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196676#M4317</guid>
      <dc:creator>shubhayog</dc:creator>
      <dc:date>2015-03-07T13:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data Manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196677#M4318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go support.sas.com.&lt;/P&gt;&lt;P&gt;Search for RETAIN statement. There you will have syntax and tons of samples.&lt;/P&gt;&lt;P&gt;By reading your response, I think you need some basic SAS programming training.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 14:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196677#M4318</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-03-07T14:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data Manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196678#M4319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RETAIN can't magically fix your data problem as implied by @linus you will need some kind of additional logic.&amp;nbsp; I like to use UPDATE for this, it can fix a number of variables without having to do too much work.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; cluster;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; Cluster &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$10.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; Variable $ Ratio;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;Cluster 1&amp;nbsp;&amp;nbsp; brclus2&amp;nbsp; 0.4901&lt;BR /&gt;.&amp;nbsp; MIPhone&amp;nbsp; 0.005&lt;BR /&gt;.&amp;nbsp; MIPOS 0.005&lt;BR /&gt;.&amp;nbsp; MIPOSAmt 0.005&lt;BR /&gt;.&amp;nbsp; MICC&amp;nbsp; 0.005&lt;BR /&gt;.&amp;nbsp; MICCBal&amp;nbsp; 0.005&lt;BR /&gt;.&amp;nbsp; MICCPurc 0.005&lt;BR /&gt;Cluster 2&amp;nbsp;&amp;nbsp; HMVal 0.3206&lt;BR /&gt;.&amp;nbsp; Age&amp;nbsp;&amp;nbsp; 0.4632&lt;BR /&gt;.&amp;nbsp; MIIncome 0.0247&lt;BR /&gt;.&amp;nbsp; MIHMOwn&amp;nbsp; 0.0811&lt;BR /&gt;.&amp;nbsp; MILORes&amp;nbsp; 0.0247&lt;BR /&gt;.&amp;nbsp; MIHMVal&amp;nbsp; 0.0247&lt;BR /&gt;.&amp;nbsp; MIAge 0.1094&lt;BR /&gt;Cluster 3&amp;nbsp;&amp;nbsp; Dep&amp;nbsp;&amp;nbsp; 0.4235&lt;BR /&gt;.&amp;nbsp; Checks&amp;nbsp;&amp;nbsp; 0.3383&lt;BR /&gt;.&amp;nbsp; Teller&amp;nbsp;&amp;nbsp; 0.5586&lt;BR /&gt;Cluster 4&amp;nbsp;&amp;nbsp; MTGBal&amp;nbsp;&amp;nbsp; 0.039&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;;;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; cv / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=cv;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;retain&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dummy &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; cluster;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;keep&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dummy cluster;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; filled;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;update&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; cv(obs=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;) cv;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dummy;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; cluster(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=cluster);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dummy;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;IMG __jive_id="9492" alt="3-7-2015 8-46-55 AM.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/9492_3-7-2015 8-46-55 AM.png" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 14:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196678#M4319</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-03-07T14:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196679#M4320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This doesn't answer&amp;nbsp; multiple variables with same low ratio.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jim &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data;&amp;nbsp;&amp;nbsp;&amp;nbsp; retain cluster $8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input @1 clu&amp;nbsp; $8.&amp;nbsp;&amp;nbsp; @20 variable $8.&amp;nbsp;&amp;nbsp; @35 ratio;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if clu=:'clust'&amp;nbsp; then cluster=clu;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; **** grab cluster;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sort;&amp;nbsp; by cluster ratio;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data new;&amp;nbsp; set;&amp;nbsp; by cluster;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if first.cluster then output;&amp;nbsp;&amp;nbsp;&amp;nbsp; **** lowest ratio;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc print;&amp;nbsp;&amp;nbsp; run;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 14:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196679#M4320</guid>
      <dc:creator>Jim_G</dc:creator>
      <dc:date>2015-03-07T14:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196680#M4321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for help. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 15:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation/m-p/196680#M4321</guid>
      <dc:creator>shubhayog</dc:creator>
      <dc:date>2015-03-07T15:17:48Z</dc:date>
    </item>
  </channel>
</rss>

