<?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: Need help in coding below problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-coding-below-problem/m-p/159998#M31136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; What code have you tried? Have you written the code to read the data files into SAS tables? How do you envision processing the data to calculate the new salaries? Using a DATA step program/programs or using SQL? What is the final result of the program? Do you need a report? Or do you need a dataset with the new salaries?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Jun 2014 20:01:26 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2014-06-29T20:01:26Z</dc:date>
    <item>
      <title>Need help in coding below problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-coding-below-problem/m-p/159997#M31135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 10px; color: #444444; font-family: 'Open Sans', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;You are provided with employee’s data of an airline. The company has just gone through a salary review. You have to determine the new salary of eligible employees with their names as per the rules provided&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10px; color: #444444; font-family: 'Open Sans', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;EM&gt;Salary hike rules:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;All pilots with a rating 1, 2 and 3 get a salary hike of 20%, 12% and 8% respectively&lt;/LI&gt;&lt;LI&gt;All non-pilots with a rating 1, 2 and 3 get a salary hike of 12%, 6% and 4% respectively&lt;/LI&gt;&lt;LI&gt;All employees who are promoted get an additional 10% hike&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2014 17:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-coding-below-problem/m-p/159997#M31135</guid>
      <dc:creator>soukamesh</dc:creator>
      <dc:date>2014-06-29T17:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in coding below problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-coding-below-problem/m-p/159998#M31136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; What code have you tried? Have you written the code to read the data files into SAS tables? How do you envision processing the data to calculate the new salaries? Using a DATA step program/programs or using SQL? What is the final result of the program? Do you need a report? Or do you need a dataset with the new salaries?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2014 20:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-coding-below-problem/m-p/159998#M31136</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-06-29T20:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in coding below problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-coding-below-problem/m-p/159999#M31137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia has valid questions that should be answered to give a more exact answer. Here is pseudo proc sql that should get you going:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table output as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select &lt;/P&gt;&lt;P&gt;&amp;nbsp; em.name,&lt;/P&gt;&lt;P&gt;&amp;nbsp; s.current_salary,&lt;/P&gt;&lt;P&gt;&amp;nbsp; case &lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile = 'Pilot' and r.promotion = 0 and r.rating = 1 then s.current_salary * 1.2&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile = 'Pilot' and r.promotion = 0 and r.rating = 2 then s.current_salary * 1.12&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile = 'Pilot' and r.promotion = 0 and r.rating = 3 then s.current_salary * 1.08&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile != 'Pilot' and r.promotion = 0 and r.rating = 1 then s.current_salary * 1.12&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile != 'Pilot' and r.promotion = 0 and r.rating = 2 then s.current_salary * 1.06&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile != 'Pilot' and r.promotion = 0 and r.rating = 3 then s.current_salary * 1.04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile = 'Pilot' and r.promotion = 1 and r.rating = 1 then s.current_salary * 1.2 + s.current_salary * .1&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile = 'Pilot' and r.promotion = 1 and r.rating = 2 then s.current_salary * 1.12 + s.current_salary * .1&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile = 'Pilot' and r.promotion = 1 and r.rating = 3 then s.current_salary * 1.08 + s.current_salary * .1&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile != 'Pilot' and r.promotion = 1 and r.rating = 1 then s.current_salary * 1.12 + s.current_salary * .1&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile != 'Pilot' and r.promotion = 1 and r.rating = 2 then s.current_salary * 1.06 + s.current_salary * .1&lt;/P&gt;&lt;P&gt;&amp;nbsp; when e.profile != 'Pilot' and r.promotion = 1 and r.rating = 3 then s.current_salary * 1.04 + s.current_salary * .1&lt;/P&gt;&lt;P&gt;&amp;nbsp; end as new_salary&lt;/P&gt;&lt;P&gt;&amp;nbsp; from&lt;/P&gt;&lt;P&gt;&amp;nbsp; rating r,&lt;/P&gt;&lt;P&gt;&amp;nbsp; employeemaster e,&lt;/P&gt;&lt;P&gt;&amp;nbsp; salary s&lt;/P&gt;&lt;P&gt;&amp;nbsp; where&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.employee_id = s.employee_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; and e.employee_id = r.employee_id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 18:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-coding-below-problem/m-p/159999#M31137</guid>
      <dc:creator>skillman</dc:creator>
      <dc:date>2014-12-09T18:06:45Z</dc:date>
    </item>
  </channel>
</rss>

