<?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: Conditional IF/Contains or IF/Find in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Conditional-IF-Contains-or-IF-Find/m-p/272304#M18911</link>
    <description>&lt;P&gt;Replace&amp;nbsp;&lt;SPAN&gt;'Paid Search)' &amp;nbsp;--&amp;gt;&amp;nbsp;'Paid Search')&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 22 May 2016 04:32:33 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-05-22T04:32:33Z</dc:date>
    <item>
      <title>Conditional IF/Contains or IF/Find</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Conditional-IF-Contains-or-IF-Find/m-p/272298#M18908</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got some code where I'm checking for mutliple conditions to be met, and assigning a variable value depending on the conditions. However something in my syntax is off. Could anyone give me a tip?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data First_Channel_Defined;&lt;BR /&gt;Set Adobe_MB;&lt;BR /&gt;IF First_Channel = "ESHOP" AND FIND(S_CMP_Channel,'Paid Search)' AND FIND(Tracking_Code,'-b-') THEN First_Chnl_Mod ='PS_BRANDED';&lt;BR /&gt;ELSE IF First_Channel = "ESHOP" AND FIND(S_CMP_Channel,'Paid Search)' AND FIND(Tracking_Code,'-nb-') THEN First_Chnl_Mod ='PS_NONBRANDED';&lt;BR /&gt;ELSE IF First_Channel = "ESHOP" AND S_CMP_Channel = "" AND Matchtype IN ('MS','MU') THEN First_Chnl_Mod = 'CATALOG';&lt;BR /&gt;ELSE IF First_Channel ="ESHOP" AND S_CMP_Channel = "" THEN First_Channel_Mod = 'NO_SOURCE';&lt;BR /&gt;ELSE IF First_Channel = "ESHOP" THEN First_Channel_Mod = S_CMP_Channel;&lt;BR /&gt;ELSE IF Matchtype IN ('MS','MU') THEN First_Channel_Mod = "CATALOG";&lt;BR /&gt;ELSE First_Channel_Mod = "NO_SOURCE";&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 03:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Conditional-IF-Contains-or-IF-Find/m-p/272298#M18908</guid>
      <dc:creator>GalacticAbacus</dc:creator>
      <dc:date>2016-05-22T03:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional IF/Contains or IF/Find</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Conditional-IF-Contains-or-IF-Find/m-p/272300#M18909</link>
      <description>&lt;P&gt;1. What makes you think something is wrong?&lt;/P&gt;
&lt;P&gt;2. In your code you have both&amp;nbsp;&lt;SPAN&gt;First_Chnl_Mod (first 3 IF's) and&amp;nbsp;&lt;SPAN&gt;First_Channel_Mod (last 3 IF's), is this correct?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 03:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Conditional-IF-Contains-or-IF-Find/m-p/272300#M18909</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-22T03:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional IF/Contains or IF/Find</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Conditional-IF-Contains-or-IF-Find/m-p/272304#M18911</link>
      <description>&lt;P&gt;Replace&amp;nbsp;&lt;SPAN&gt;'Paid Search)' &amp;nbsp;--&amp;gt;&amp;nbsp;'Paid Search')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 04:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Conditional-IF-Contains-or-IF-Find/m-p/272304#M18911</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-22T04:32:33Z</dc:date>
    </item>
  </channel>
</rss>

