<?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: Computed column in SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computed-column-in-SAS-EG/m-p/687242#M37115</link>
    <description>&lt;P&gt;Thank you, this worked wonderfully!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:22:49 GMT</pubDate>
    <dc:creator>Margot89</dc:creator>
    <dc:date>2020-09-28T15:22:49Z</dc:date>
    <item>
      <title>Computed column in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computed-column-in-SAS-EG/m-p/687178#M37113</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a SAS EG querybuilder, and i'm trying to make a new computed column. This one needs to find certain letters in an existing column. Accordingly, in the new column, it's supposed to show certain words, based on which letter was found. In the original column (let's call it Column A) there is a string of one letter, followed by a bunch of numbers. For example: C.0974893938. There can be four different letters at the beginning of this code. L &amp;amp; S mean it's a project, C is for capacity and P is for pricing. Right now, this is my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;case when find(t1.'Column A'n, 'C') then 'Capacity' or find(t1.'Column A'n, 'P') then 'Pricing' else 'Project' end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have never tried 'then' twice in one code (and it appears to not be working), but I don't really know any other way to solve this one. Can you help me? Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Margot&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computed-column-in-SAS-EG/m-p/687178#M37113</guid>
      <dc:creator>Margot89</dc:creator>
      <dc:date>2020-09-28T12:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Computed column in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computed-column-in-SAS-EG/m-p/687184#M37114</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;case 
  when find(t1.'Column A'n, 'C') then 'Capacity' 
  when find(t1.'Column A'n, 'P') then 'Pricing'
  else 'Project'
end&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;each THEN needs a WHEN.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computed-column-in-SAS-EG/m-p/687184#M37114</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-28T12:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Computed column in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computed-column-in-SAS-EG/m-p/687242#M37115</link>
      <description>&lt;P&gt;Thank you, this worked wonderfully!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Computed-column-in-SAS-EG/m-p/687242#M37115</guid>
      <dc:creator>Margot89</dc:creator>
      <dc:date>2020-09-28T15:22:49Z</dc:date>
    </item>
  </channel>
</rss>

