<?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: Why doesn't this case-expression work in DI Studio? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96067#M1029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you hace specified a column at the case, you can't use expressions that implies the column at the bueginning of the expression.&lt;/P&gt;&lt;P&gt;Move EMAIL to each when statment to keep the logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 10:24:58 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2012-12-11T10:24:58Z</dc:date>
    <item>
      <title>Why doesn't this case-expression work in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96066#M1028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone please tell me why the following code doesn't work as an expression in the mapping tab of a DI Studio transformation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case EMAIL&lt;/P&gt;&lt;P&gt;&amp;nbsp; when not contains "@" then NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp; when contains "æ" then NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp; when contains "ø" then NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp; when contains "å" then NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp; else EMAIL&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error message: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, , =, , =, &amp;gt;, &amp;gt;=, ?, AND, CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 10:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96066#M1028</guid>
      <dc:creator>TurnTheBacon</dc:creator>
      <dc:date>2012-12-11T10:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't this case-expression work in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96067#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you hace specified a column at the case, you can't use expressions that implies the column at the bueginning of the expression.&lt;/P&gt;&lt;P&gt;Move EMAIL to each when statment to keep the logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 10:24:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96067#M1029</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-12-11T10:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't this case-expression work in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96068#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I seem to get the exact same error message when I try the following code though. Can you see what's wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case&lt;/P&gt;&lt;P&gt;&amp;nbsp; when EMAIL not contains "@" then NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp; when EMAIL contains "@." then NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp; when EMAIL contains "æ" then then NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp; when EMAIL contains "ø" then NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp; when EMAIL contains "å" then NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp; else EMAIL&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 10:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96068#M1030</guid>
      <dc:creator>TurnTheBacon</dc:creator>
      <dc:date>2012-12-11T10:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't this case-expression work in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96069#M1031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NULL has just a meaning when it comes to boolean expression, it's not a value that you can use in an assignment.&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;when email not contains "@" then ' '&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 11:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96069#M1031</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-12-11T11:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't this case-expression work in DI Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96070#M1032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved. Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 11:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Why-doesn-t-this-case-expression-work-in-DI-Studio/m-p/96070#M1032</guid>
      <dc:creator>TurnTheBacon</dc:creator>
      <dc:date>2012-12-11T11:49:48Z</dc:date>
    </item>
  </channel>
</rss>

