<?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 Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Case-Statement/m-p/197482#M305417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first one is missing the END keyword before the AS keyword&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 18:52:24 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-07-07T18:52:24Z</dc:date>
    <item>
      <title>Case Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-Statement/m-p/197481#M305416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I have some help on the case statement please, hopefully the logic of what im trying to do is clear, I just need to put it within the correct format please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;BR /&gt;Create table work.sk as &lt;BR /&gt;select &lt;BR /&gt;Product_End_Date as Product_end_date,&lt;BR /&gt;Term as Term,&lt;BR /&gt;Launch_Code as launch_code,&lt;BR /&gt;LTD_Pipeline as Pipeline_ytd,&lt;BR /&gt;LTD_Completions as Completions_ytd,&lt;BR /&gt;CATX(",", product_end_date, term, launchcode)as Date_Term_Prod,&lt;BR /&gt;Term_hedge_2 as Term_hedge_2 ,&lt;BR /&gt;Prepayment_rate_hedge_2 as Prepayment_rate_hedge_2,&lt;BR /&gt;Conversion_Rate_hedge as Conversion_Rate_hedge,&lt;BR /&gt;Key_hedge as Key_hedge,&lt;BR /&gt;Product_Term_comps as Product_Term_comps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;case &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;when Date_Term_Prod = Key_hedge then Conversion_Rate_hedge else 0 as Alco_pc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Case&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;when Product_Term_comps = Term_hedge_2 then Prepayment_rate_hedge_2 else 0 end as prepayment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Hedging_Dataset;&lt;BR /&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 18:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-Statement/m-p/197481#M305416</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2015-07-07T18:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-Statement/m-p/197482#M305417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first one is missing the END keyword before the AS keyword&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 18:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-Statement/m-p/197482#M305417</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-07-07T18:52:24Z</dc:date>
    </item>
  </channel>
</rss>

