<?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: Exclude the Client in a campaign once it already received communication 5x. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exclude-the-Client-in-a-campaign-once-it-already-received/m-p/638246#M189803</link>
    <description>&lt;P&gt;Counting item can easily be done in SQL:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table exclude as
  select
    cuid,
    count(*) as count
  from ci_contact_history
  group by cuid
  having calculated count &amp;gt; 4
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For more detailed code, supply example data in usable form (data steps with datalines), and the expected result from that.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 07:53:05 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-04-08T07:53:05Z</dc:date>
    <item>
      <title>Exclude the Client in a campaign once it already received communication 5x.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exclude-the-Client-in-a-campaign-once-it-already-received/m-p/638243#M189802</link>
      <description>&lt;P&gt;Hi SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some logical scenario needed, i want to count then exclude the clients in the sms campaigns once they already received sms communication five times already (x5) within the span of their offer validity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the tables and columns where the communication is being saved, just in case&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CI_CONTACT_HISTORY&lt;/P&gt;&lt;P&gt;- CUID&lt;/P&gt;&lt;P&gt;- CONTACT_DT&lt;/P&gt;&lt;P&gt;- CONTACT_HISTORY_STATUS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SMS_OUTPUT_LOAD&lt;/P&gt;&lt;P&gt;- CUID&lt;/P&gt;&lt;P&gt;- PROCESSED_DT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Otep&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 07:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exclude-the-Client-in-a-campaign-once-it-already-received/m-p/638243#M189802</guid>
      <dc:creator>otepalborida</dc:creator>
      <dc:date>2020-04-08T07:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude the Client in a campaign once it already received communication 5x.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exclude-the-Client-in-a-campaign-once-it-already-received/m-p/638246#M189803</link>
      <description>&lt;P&gt;Counting item can easily be done in SQL:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table exclude as
  select
    cuid,
    count(*) as count
  from ci_contact_history
  group by cuid
  having calculated count &amp;gt; 4
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For more detailed code, supply example data in usable form (data steps with datalines), and the expected result from that.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 07:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exclude-the-Client-in-a-campaign-once-it-already-received/m-p/638246#M189803</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-08T07:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude the Client in a campaign once it already received communication 5x.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exclude-the-Client-in-a-campaign-once-it-already-received/m-p/638284#M189805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;, do you have an example wherein the logic can be used in the campaign diagram in SAS Customer Intelligence Studio.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 11:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exclude-the-Client-in-a-campaign-once-it-already-received/m-p/638284#M189805</guid>
      <dc:creator>otepalborida</dc:creator>
      <dc:date>2020-04-08T11:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude the Client in a campaign once it already received communication 5x.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exclude-the-Client-in-a-campaign-once-it-already-received/m-p/638289#M189806</link>
      <description>&lt;P&gt;No, we don't use that. I am a pure coder.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 11:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exclude-the-Client-in-a-campaign-once-it-already-received/m-p/638289#M189806</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-08T11:33:45Z</dc:date>
    </item>
  </channel>
</rss>

