<?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: SQL Case-function problem: best way to leave one value alone? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Case-function-problem-best-way-to-leave-one-value-alone/m-p/83500#M788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't believe I overlooked doing that. :smileyshocked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2012 21:10:00 GMT</pubDate>
    <dc:creator>EinarRoed</dc:creator>
    <dc:date>2012-11-28T21:10:00Z</dc:date>
    <item>
      <title>SQL Case-function problem: best way to leave one value alone?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Case-function-problem-best-way-to-leave-one-value-alone/m-p/83498#M786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question about this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;case VARNAME&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;when "Oil and Penguins" then "Oil and Penguins"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;else propcase(VARNAME) end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It puts all the values in the VARNAME column into proper case, but makes an exception for "Oil and Penguins" because it shouldn't become "Oil And Penguins". It works correctly, but I strongly suspect that the second line is a bit clumsy. Is there a better way to tell it to leave "Oil and Penguins" alone? Something along the lines of "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;when 'Oil and Penguins' then nothing"?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 19:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Case-function-problem-best-way-to-leave-one-value-alone/m-p/83498#M786</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2012-11-28T19:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Case-function problem: best way to leave one value alone?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Case-function-problem-best-way-to-leave-one-value-alone/m-p/83499#M787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-left: 30px;"&gt;I guess&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;case VARNAME&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;when "Oil and Penguins" then VARNAME&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;else propcase(VARNAME) end&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;would be a tad neater.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 20:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Case-function-problem-best-way-to-leave-one-value-alone/m-p/83499#M787</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-11-28T20:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Case-function problem: best way to leave one value alone?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Case-function-problem-best-way-to-leave-one-value-alone/m-p/83500#M788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't believe I overlooked doing that. :smileyshocked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 21:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Case-function-problem-best-way-to-leave-one-value-alone/m-p/83500#M788</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2012-11-28T21:10:00Z</dc:date>
    </item>
  </channel>
</rss>

