<?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 Tagging customer's transaction to latest campaign in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Tagging-customer-s-transaction-to-latest-campaign/m-p/705455#M216423</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to tag customer's transaction to the latest campaign only.&lt;/P&gt;
&lt;P&gt;Sample files has been attached with desired result.&lt;/P&gt;
&lt;P&gt;let me explain scenario little bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose i am sending a campaign on 27NOV2020 (EVENT_CAPTURED_DT) with attribution window 27Nov2020+7days =04DEC2020(CPGN_END_DT). Now customer has shopped on 06DEC which is not part of mentioned campaign.&lt;/P&gt;
&lt;P&gt;In this case customer would get tagged to another campaign which has end_date greater that transaction date.&lt;/P&gt;
&lt;P&gt;In case i have sent multiple campaigns to same customer in a week (different dates) and customer has shopped then customer's transaction would get tagged to last campaign (latest).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample Files:&lt;/P&gt;
&lt;P&gt;CPGN_ORIG - Contains campaign details&lt;/P&gt;
&lt;P&gt;ATTRN_ATTRB - Customer's shopping details during attribution window&lt;/P&gt;
&lt;P&gt;CPGNS_Final_Output - Required output - Customer's transaction tagged to latest campaign - sample example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql would be first choice as a code. Kindly read the attached file for sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Uma Shanker Saini&lt;/P&gt;</description>
    <pubDate>Sat, 12 Dec 2020 19:13:27 GMT</pubDate>
    <dc:creator>umashankersaini</dc:creator>
    <dc:date>2020-12-12T19:13:27Z</dc:date>
    <item>
      <title>Tagging customer's transaction to latest campaign</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tagging-customer-s-transaction-to-latest-campaign/m-p/705455#M216423</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to tag customer's transaction to the latest campaign only.&lt;/P&gt;
&lt;P&gt;Sample files has been attached with desired result.&lt;/P&gt;
&lt;P&gt;let me explain scenario little bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose i am sending a campaign on 27NOV2020 (EVENT_CAPTURED_DT) with attribution window 27Nov2020+7days =04DEC2020(CPGN_END_DT). Now customer has shopped on 06DEC which is not part of mentioned campaign.&lt;/P&gt;
&lt;P&gt;In this case customer would get tagged to another campaign which has end_date greater that transaction date.&lt;/P&gt;
&lt;P&gt;In case i have sent multiple campaigns to same customer in a week (different dates) and customer has shopped then customer's transaction would get tagged to last campaign (latest).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample Files:&lt;/P&gt;
&lt;P&gt;CPGN_ORIG - Contains campaign details&lt;/P&gt;
&lt;P&gt;ATTRN_ATTRB - Customer's shopping details during attribution window&lt;/P&gt;
&lt;P&gt;CPGNS_Final_Output - Required output - Customer's transaction tagged to latest campaign - sample example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql would be first choice as a code. Kindly read the attached file for sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Uma Shanker Saini&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 19:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tagging-customer-s-transaction-to-latest-campaign/m-p/705455#M216423</guid>
      <dc:creator>umashankersaini</dc:creator>
      <dc:date>2020-12-12T19:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tagging customer's transaction to latest campaign</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tagging-customer-s-transaction-to-latest-campaign/m-p/706515#M216839</link>
      <description>&lt;P&gt;1. Do not send MS office files, many people will not/may not open them, and they lack any metadata anyway.&lt;/P&gt;
&lt;P&gt;2. Reduce your problem to a small subset of example data&lt;/P&gt;
&lt;P&gt;3. Provide that input data so we don't have to work to use it (provide it in the form of a data step or SQL create+insert)&lt;/P&gt;
&lt;P&gt;4. Provide the desired output&lt;/P&gt;
&lt;P&gt;5. Show what code you've tried (for both the data code and the run code, use the code icon)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 02:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tagging-customer-s-transaction-to-latest-campaign/m-p/706515#M216839</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-12-17T02:33:18Z</dc:date>
    </item>
  </channel>
</rss>

