<?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: Detecting same amounts of transactions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Detecting-same-amounts-of-transactions/m-p/526077#M143183</link>
    <description>&lt;P&gt;Without variable names or example data it is bit difficult to write code. Here is some pseudocode that would create data set with counts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc freq data=have;
   where (today() - transactiondate) le 5;
   tables customer*transactiontype*amount/list out=transactioncount;
run;&lt;/PRE&gt;
&lt;P&gt;This assumes that you have a variable for the transaction date that is a SAS date valued variable (NOT date time, if your variable includes time then use DATEPART(transactiondate) above), a customer id variable, a single variable that indicates transaction type and the amount.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you have the summary then you can filter or summarize.&lt;/P&gt;
&lt;P&gt;If your data does not meet the above assumptions then it becomes critical to know exactly how your data is structured, i.e. Example data.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2019 15:32:48 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-01-10T15:32:48Z</dc:date>
    <item>
      <title>Detecting same amounts of transactions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detecting-same-amounts-of-transactions/m-p/526064#M143176</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a banking transaction table and I want to track that for today() - x days time period if Y times same amount transactions occured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fore example for the last 5 days a customer receives swift 10 times.And 3 of them are the same amount. How can write this sas code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detecting-same-amounts-of-transactions/m-p/526064#M143176</guid>
      <dc:creator>dincooo</dc:creator>
      <dc:date>2019-01-10T14:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting same amounts of transactions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detecting-same-amounts-of-transactions/m-p/526068#M143179</link>
      <description>&lt;P&gt;Please post sample data and expected output.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detecting-same-amounts-of-transactions/m-p/526068#M143179</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-01-10T14:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting same amounts of transactions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detecting-same-amounts-of-transactions/m-p/526077#M143183</link>
      <description>&lt;P&gt;Without variable names or example data it is bit difficult to write code. Here is some pseudocode that would create data set with counts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc freq data=have;
   where (today() - transactiondate) le 5;
   tables customer*transactiontype*amount/list out=transactioncount;
run;&lt;/PRE&gt;
&lt;P&gt;This assumes that you have a variable for the transaction date that is a SAS date valued variable (NOT date time, if your variable includes time then use DATEPART(transactiondate) above), a customer id variable, a single variable that indicates transaction type and the amount.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you have the summary then you can filter or summarize.&lt;/P&gt;
&lt;P&gt;If your data does not meet the above assumptions then it becomes critical to know exactly how your data is structured, i.e. Example data.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 15:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detecting-same-amounts-of-transactions/m-p/526077#M143183</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-10T15:32:48Z</dc:date>
    </item>
  </channel>
</rss>

