<?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: Case function to create brackets in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Case-function-to-create-brackets/m-p/156901#M12220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case&lt;/P&gt;&lt;P&gt;When&amp;nbsp; "01/01/1976"d &amp;lt;=t1.Employee_Hire_Date&amp;lt;= "12/31/1985"d then t1.Salary*.001&lt;/P&gt;&lt;P&gt;else t1.Salary&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 01:13:42 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2014-09-24T01:13:42Z</dc:date>
    <item>
      <title>Case function to create brackets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Case-function-to-create-brackets/m-p/156900#M12219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi, can some one help me on this case function. I'm trying to create a new calculated column and employee hired between two dates, they get bonus based on the dates range I set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case&lt;/P&gt;&lt;P&gt;When&amp;nbsp; date(01/01/1976)&amp;lt;=t1.Employee_Hire_Date&amp;lt;=date(12/31/1985) then t1.Salary*.001&lt;/P&gt;&lt;P&gt;else t1.Salary&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 00:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Case-function-to-create-brackets/m-p/156900#M12219</guid>
      <dc:creator>sdang</dc:creator>
      <dc:date>2014-09-24T00:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Case function to create brackets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Case-function-to-create-brackets/m-p/156901#M12220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case&lt;/P&gt;&lt;P&gt;When&amp;nbsp; "01/01/1976"d &amp;lt;=t1.Employee_Hire_Date&amp;lt;= "12/31/1985"d then t1.Salary*.001&lt;/P&gt;&lt;P&gt;else t1.Salary&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 01:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Case-function-to-create-brackets/m-p/156901#M12220</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-09-24T01:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Case function to create brackets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Case-function-to-create-brackets/m-p/156902#M12221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your logic looks like you are trying to add bonus amount in salaries for the employees hired between the specified dates. So end variable will be salary again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case&lt;/P&gt;&lt;P&gt;When&amp;nbsp; "01Jan1976"d &amp;lt;=t1.Employee_Hire_Date&amp;lt;= "31Dec1985"d then t1.Salary*1.001&lt;/P&gt;&lt;P&gt;else t1.Salary end as Salary;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, if need a bonus variable then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case&lt;/P&gt;&lt;P&gt;When&amp;nbsp; "01Jan1976"d &amp;lt;=t1.Employee_Hire_Date&amp;lt;= "31Dec1985"d then t1.Salary*0.001&lt;/P&gt;&lt;P&gt;else 0 end as Bonus;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 01:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Case-function-to-create-brackets/m-p/156902#M12221</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-24T01:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Case function to create brackets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Case-function-to-create-brackets/m-p/156903#M12222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&amp;nbsp; It worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 00:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Case-function-to-create-brackets/m-p/156903#M12222</guid>
      <dc:creator>sdang</dc:creator>
      <dc:date>2014-09-25T00:10:49Z</dc:date>
    </item>
  </channel>
</rss>

