<?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 how do i write this code to do with percentages...instead of adding raise my results show decreasing in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604370#M17048</link>
    <description>&lt;PRE&gt;/*anyone making more than $99,999 a 2% raise, anyone making more than $49,999 to (including) $99,999 a 3% raise,&lt;BR /&gt; anyone making more than $29,999 to (including) $49,999 a 4% raise, and everyone else gets a 5% rais*/&lt;BR /&gt;data midterm.activeemployee;&lt;BR /&gt;	set midterm.employee1;&lt;BR /&gt;	if (salary &amp;gt;99999) then  salary+salary *.02 ;&lt;BR /&gt;	else if (salary &amp;gt;(49999&amp;lt;salary&amp;lt;=99999))then salary+ salary*.03;&lt;BR /&gt;	else if (salary &amp;gt;(29999&amp;lt;salary&amp;lt;=49999))then salary+salary *.04 ;&lt;BR /&gt;	else if (salary&amp;lt;=29999 ) then salary+salary *.05;&lt;BR /&gt;run;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Nov 2019 02:14:11 GMT</pubDate>
    <dc:creator>lornamigiro</dc:creator>
    <dc:date>2019-11-15T02:14:11Z</dc:date>
    <item>
      <title>how do i write this code to do with percentages...instead of adding raise my results show decreasing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604370#M17048</link>
      <description>&lt;PRE&gt;/*anyone making more than $99,999 a 2% raise, anyone making more than $49,999 to (including) $99,999 a 3% raise,&lt;BR /&gt; anyone making more than $29,999 to (including) $49,999 a 4% raise, and everyone else gets a 5% rais*/&lt;BR /&gt;data midterm.activeemployee;&lt;BR /&gt;	set midterm.employee1;&lt;BR /&gt;	if (salary &amp;gt;99999) then  salary+salary *.02 ;&lt;BR /&gt;	else if (salary &amp;gt;(49999&amp;lt;salary&amp;lt;=99999))then salary+ salary*.03;&lt;BR /&gt;	else if (salary &amp;gt;(29999&amp;lt;salary&amp;lt;=49999))then salary+salary *.04 ;&lt;BR /&gt;	else if (salary&amp;lt;=29999 ) then salary+salary *.05;&lt;BR /&gt;run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 02:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604370#M17048</guid>
      <dc:creator>lornamigiro</dc:creator>
      <dc:date>2019-11-15T02:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: how do i write this code to do with percentages...instead of adding raise my results show decrea</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604371#M17049</link>
      <description>&lt;P&gt;you need to adjust to be salary=salary*(1+raise);&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data midterm.activeemployee;
	set midterm.employee1;
	if salary &amp;gt;99999 then  salary=salary*1.02 ;
	else if 49999&amp;lt;salary&amp;lt;=99999 then salary=salary*1.03;
	else if 29999&amp;lt;salary&amp;lt;=49999 then salary=salary*1.04 ;
	else if salary&amp;lt;=29999 then salary=salary*1.05;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;-unison&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 02:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604371#M17049</guid>
      <dc:creator>unison</dc:creator>
      <dc:date>2019-11-15T02:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: how do i write this code to do with percentages...instead of adding raise my results show decrea</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604375#M17051</link>
      <description>&lt;P&gt;thank you, it&amp;nbsp; worked.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 02:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604375#M17051</guid>
      <dc:creator>lornamigiro</dc:creator>
      <dc:date>2019-11-15T02:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: how do i write this code to do with percentages...instead of adding raise my results show decrea</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604378#M17054</link>
      <description>&lt;P&gt;perfect!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 02:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604378#M17054</guid>
      <dc:creator>unison</dc:creator>
      <dc:date>2019-11-15T02:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: how do i write this code to do with percentages...instead of adding raise my results show decrea</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604549#M17097</link>
      <description>&lt;P&gt;And to see the joyous benefit of being on the low end of one of these scales provide input for two employees with incomes of 29999 and&amp;nbsp;30000 and see the result.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 17:12:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-do-i-write-this-code-to-do-with-percentages-instead-of/m-p/604549#M17097</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-15T17:12:47Z</dc:date>
    </item>
  </channel>
</rss>

