<?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: Macro to flag monthly New buyer,if new that month or no purchase last 24 month, and repeated Buy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-flag-monthly-New-buyer-if-new-that-month-or-no-purchase/m-p/531864#M145671</link>
    <description>&lt;P&gt;Please present simplified set of data as a data step, as well as expected output for the logic you want implemented.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 02:42:04 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-02-01T02:42:04Z</dc:date>
    <item>
      <title>Macro to flag monthly New buyer,if new that month or no purchase last 24 month, and repeated Buyer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-flag-monthly-New-buyer-if-new-that-month-or-no-purchase/m-p/531677#M145567</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Have a 5 years (2014-2018) transactional data which includes Contact_Email2, ordno, order_date, revenue and few more. Using order_date, i created fod_win &amp;amp; lod for each unique email address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q, part 1:&lt;/P&gt;&lt;P&gt;Need to flag monthly new buyers&amp;nbsp; -&amp;nbsp; if contact_email2 has an order_date in this month, and if fod_win is in this specific month (so it is truely first order) or the fod_win is not in this month, but they have not ordered in past 24 months flag them as New_buyer.&amp;nbsp; Since we need 24 months prior history, we will start from 1st month of Jan 2016, and&amp;nbsp; 2014-2015 will be used as past 24 months window .&lt;/P&gt;&lt;P&gt;Q, part 2:&lt;/P&gt;&lt;P&gt;Need to flag monthly repeat buyers&amp;nbsp; -&amp;nbsp;if contact_email2 has an order_date in this month, and if fod in NOT in this specific, but it is less than prior 24 months window, flag them as repeat.&lt;/P&gt;&lt;P&gt;Need to flag this by month from Jan 2016 - Dec 2018.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope the question is clear! Please see a sample of my data set, attached. The data set includes all orders, and you can see dups by email.&lt;/P&gt;&lt;P&gt;In advance thanks very much for help!!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-flag-monthly-New-buyer-if-new-that-month-or-no-purchase/m-p/531677#M145567</guid>
      <dc:creator>Jila_Asgary</dc:creator>
      <dc:date>2019-01-31T16:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to flag monthly New buyer,if new that month or no purchase last 24 month, and repeated Buy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-flag-monthly-New-buyer-if-new-that-month-or-no-purchase/m-p/531864#M145671</link>
      <description>&lt;P&gt;Please present simplified set of data as a data step, as well as expected output for the logic you want implemented.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 02:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-flag-monthly-New-buyer-if-new-that-month-or-no-purchase/m-p/531864#M145671</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-02-01T02:42:04Z</dc:date>
    </item>
  </channel>
</rss>

