<?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: Create groups no range in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-groups-no-range/m-p/330224#M74017</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/23718"&gt;@AZIQ1&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need some help with creating groups this is what i want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF value1&amp;nbsp;&amp;lt; 33 then score = 20 ;&lt;BR /&gt;IF &lt;SPAN&gt;value1&lt;/SPAN&gt; &amp;lt; 33.5 then score = 12&amp;nbsp;;&lt;BR /&gt;IF &lt;SPAN&gt;value1&lt;/SPAN&gt; &amp;lt; 34 then score = 13 ;&lt;BR /&gt;IF &lt;SPAN&gt;value1&lt;/SPAN&gt;&amp;nbsp;&amp;lt; 35 then score = 3&amp;nbsp;;&lt;BR /&gt;IF &lt;SPAN&gt;value1&amp;nbsp;&lt;/SPAN&gt;&amp;lt; 36 then score = 2 ;&lt;BR /&gt;Else score = 4 ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;its not giving me the values I need . The cutoff eg. for the first row should be 33 and second should be 33.5?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Multiple if statements as you have are all evaluated. So the LAST one in that is true gets teh assignment. That is what the ELSE does to the part after ELSE only when the immediately&amp;nbsp;previous is not true.&lt;/P&gt;
&lt;P&gt;You may also consider&lt;/P&gt;
&lt;P&gt;IF 33 le &lt;SPAN&gt;value1&lt;/SPAN&gt; &amp;lt; 34 then score = 13&lt;/P&gt;
&lt;P&gt;to set specific ranges.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2017 15:54:07 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-02-06T15:54:07Z</dc:date>
    <item>
      <title>Create groups no range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-groups-no-range/m-p/330004#M73928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need some help with creating groups this is what i want:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF value1&amp;nbsp;&amp;lt; 33 then score = 20 ;&lt;BR /&gt;IF &lt;SPAN&gt;value1&lt;/SPAN&gt; &amp;lt; 33.5 then score = 12&amp;nbsp;;&lt;BR /&gt;IF &lt;SPAN&gt;value1&lt;/SPAN&gt; &amp;lt; 34 then score = 13 ;&lt;BR /&gt;IF &lt;SPAN&gt;value1&lt;/SPAN&gt;&amp;nbsp;&amp;lt; 35 then score = 3&amp;nbsp;;&lt;BR /&gt;IF &lt;SPAN&gt;value1&amp;nbsp;&lt;/SPAN&gt;&amp;lt; 36 then score = 2 ;&lt;BR /&gt;Else score = 4 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its not giving me the values I need . The cutoff eg. for the first row should be 33 and second should be 33.5?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 04:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-groups-no-range/m-p/330004#M73928</guid>
      <dc:creator>AZIQ1</dc:creator>
      <dc:date>2017-02-05T04:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups no range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-groups-no-range/m-p/330005#M73929</link>
      <description>&lt;P&gt;Add elses to all but the first if statement. i.e.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;IF value1 &amp;lt; 33 then score = 20 ;
else IF value1 &amp;lt; 33.5 then score = 12 ;
else IF value1 &amp;lt; 34 then score = 13 ;
else IF value1 &amp;lt; 35 then score = 3 ;
else IF value1 &amp;lt; 36 then score = 2 ;
Else score = 4 ;
&lt;/PRE&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 04:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-groups-no-range/m-p/330005#M73929</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-02-05T04:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups no range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-groups-no-range/m-p/330224#M74017</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/23718"&gt;@AZIQ1&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need some help with creating groups this is what i want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF value1&amp;nbsp;&amp;lt; 33 then score = 20 ;&lt;BR /&gt;IF &lt;SPAN&gt;value1&lt;/SPAN&gt; &amp;lt; 33.5 then score = 12&amp;nbsp;;&lt;BR /&gt;IF &lt;SPAN&gt;value1&lt;/SPAN&gt; &amp;lt; 34 then score = 13 ;&lt;BR /&gt;IF &lt;SPAN&gt;value1&lt;/SPAN&gt;&amp;nbsp;&amp;lt; 35 then score = 3&amp;nbsp;;&lt;BR /&gt;IF &lt;SPAN&gt;value1&amp;nbsp;&lt;/SPAN&gt;&amp;lt; 36 then score = 2 ;&lt;BR /&gt;Else score = 4 ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;its not giving me the values I need . The cutoff eg. for the first row should be 33 and second should be 33.5?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Multiple if statements as you have are all evaluated. So the LAST one in that is true gets teh assignment. That is what the ELSE does to the part after ELSE only when the immediately&amp;nbsp;previous is not true.&lt;/P&gt;
&lt;P&gt;You may also consider&lt;/P&gt;
&lt;P&gt;IF 33 le &lt;SPAN&gt;value1&lt;/SPAN&gt; &amp;lt; 34 then score = 13&lt;/P&gt;
&lt;P&gt;to set specific ranges.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 15:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-groups-no-range/m-p/330224#M74017</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-06T15:54:07Z</dc:date>
    </item>
  </channel>
</rss>

