<?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: Get clients under Contact_History table in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Get-clients-under-Contact-History-table/m-p/625266#M20220</link>
    <description>&lt;P&gt;If you are producing&amp;nbsp; no "N" results, then SAS is telling you that you have no cases in which all 4 conditions are simultaneously true. Or to be more accurate, there are no such cases that also satisfy any other filters you may have in the rest of your PROC SQL.&amp;nbsp; There is nothing else that can be deduced from the code fragment you have provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide the complete SQL code, and the resulting log notes and messages to give us a better idea of whether it is a coding problem, or merely the data revealing the authentic absence of "N" cases.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 14:00:23 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2020-02-17T14:00:23Z</dc:date>
    <item>
      <title>Get clients under Contact_History table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Get-clients-under-Contact-History-table/m-p/625216#M20214</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 am seeking for a help to anyone who knows how I can solve my scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i have these tables of CI_CONTACT_HISTORY containing all the records of client who are contacted (SMS, TLS, PUSH, EMAIL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i am currently doing is, i created a calculated item (FLAG_CALL) to get some clients using their data in CONTACT_HISTORY. Below is the expression on my created calculated item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CASE&lt;BR /&gt;WHEN DATEPART(&amp;lt;&amp;lt;/Contact History/CONTACTED_DTTM&amp;gt;&amp;gt;) ^= DATE() - 4 &amp;amp; &amp;lt;&amp;lt;/Contact History/CONTACT_HISTORY_STATUS_CD&amp;gt;&amp;gt; = '_40' &amp;amp; &amp;lt;&amp;lt;/Contact History/CAMPAIGN_NM&amp;gt;&amp;gt; = 'CAMP984' &amp;amp; &amp;lt;&amp;lt;/Contact History/CHANNEL_CD&amp;gt;&amp;gt; = 'SMS'&lt;BR /&gt;THEN 'N'&lt;BR /&gt;ELSE 'Y'&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In translation, I want to get all those clients that are not contacted (by SMS) 4 days ago when the campaign (TLS) is executed. If it is not contacted, I'll tagged his FLAG_CALL attribute into "N", meaning the client is not yet eligible for calling since he/she did not receive any SMS D - 4, else it will be tagged as "Y", meaning the client was received an SMS D - 4 and now eligible for calling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, while using this expression, it seems that there is something wrong because all the clients are all tagged with "Y" which is not expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the details are not yet okay, I'll explain it further.&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>Mon, 17 Feb 2020 09:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Get-clients-under-Contact-History-table/m-p/625216#M20214</guid>
      <dc:creator>otepalborida</dc:creator>
      <dc:date>2020-02-17T09:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get clients under Contact_History table</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Get-clients-under-Contact-History-table/m-p/625266#M20220</link>
      <description>&lt;P&gt;If you are producing&amp;nbsp; no "N" results, then SAS is telling you that you have no cases in which all 4 conditions are simultaneously true. Or to be more accurate, there are no such cases that also satisfy any other filters you may have in the rest of your PROC SQL.&amp;nbsp; There is nothing else that can be deduced from the code fragment you have provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide the complete SQL code, and the resulting log notes and messages to give us a better idea of whether it is a coding problem, or merely the data revealing the authentic absence of "N" cases.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Get-clients-under-Contact-History-table/m-p/625266#M20220</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-02-17T14:00:23Z</dc:date>
    </item>
  </channel>
</rss>

