<?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: How to create the custom scenario for monitoring transaction exceeding the limit and transaction in Fraud, AML and Security Intelligence</title>
    <link>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-create-the-custom-scenario-for-monitoring-transaction/m-p/502252#M217</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything is correct in the logic but I have not added the message entry in the FSK_SCENARIO_MESSAGE table for r10236_threshold_message and after adding the same entry for these parameter and then&amp;nbsp; this it is generating alerts for the same logic&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For troubleshooting the same, we have to test the same scenario through SCENARIO_ADMIN screen and log will be generated /SASAMLROOT/custom/config this log file will have the error and more details .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all for your help .&lt;/P&gt;</description>
    <pubDate>Sun, 07 Oct 2018 13:27:27 GMT</pubDate>
    <dc:creator>MG18</dc:creator>
    <dc:date>2018-10-07T13:27:27Z</dc:date>
    <item>
      <title>How to create the custom scenario for monitoring transaction exceeding the limit and transaction cou</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-create-the-custom-scenario-for-monitoring-transaction/m-p/501063#M215</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We have one requirement with following details :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bank requires to develop a custom scenario such that Customers who have monthly transactions on their accounts that exceeds 50000 JOD , with minimum transaction 5 transactions and transaction amount 10000 JOD per single transaction should generate an alert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customers who have monthly transactions on their accounts that exceeds 50000 JOD , with minimum transaction 5 transactions and transaction amount 10000 JOD per single transaction should generate an alert.&lt;/P&gt;&lt;P&gt;Frequency:&lt;/P&gt;&lt;P&gt;Monthly&lt;/P&gt;&lt;P&gt;Proposed Scenario Parameters:&lt;/P&gt;&lt;P&gt;Account_types(p10236_account_type_desc) - should specify all the account types to be monitored&lt;/P&gt;&lt;P&gt;Total_credit_amount (p10236_trans_total) – Total amount of credit transaction&lt;/P&gt;&lt;P&gt;Minimum_credit_transaction_count (p10236_day_count) – Minimum number of credit transactions&lt;/P&gt;&lt;P&gt;Minimum_transaction_amount (p10236_day_count) – Minimum transaction amount&lt;/P&gt;&lt;P&gt;Num_business_days (p10236_num_days) - Number of business days to be considered&lt;/P&gt;&lt;P&gt;Status_description (p10236_status_desc) -Specifies whether transaction status SUCCESS or not&lt;/P&gt;&lt;P&gt;Currency account indicator (&amp;amp;p10236_currency_acct) --- It will be N&lt;/P&gt;&lt;P&gt;Credit or debit indicator (p10236_cdi_indicator) : - Credit (C) and debit (D)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the source file also with help of other sceanrio active code as below :-&lt;/P&gt;&lt;P&gt;%let this_macro_name = &amp;amp;sysmacroname;&lt;/P&gt;&lt;P&gt;/* save this macro name */&lt;BR /&gt;/*----------------------------------------------------------------------------*/&lt;BR /&gt;retain p10236_begin_date;&lt;BR /&gt;format p10236_day_list $512.;&lt;/P&gt;&lt;P&gt;/* This init section should be placed before any goto statements. This section of&lt;BR /&gt;code will only be run when processing the first BY group of the prep data set.&lt;BR /&gt;Any goto statements placed before it may prevent the init code from being run. */&lt;BR /&gt;if run_scenario_init eq 1 then&lt;BR /&gt;do;&lt;BR /&gt;p10236_begin_date = input(put(rundate_number-&amp;amp;p10236_num_days+1,num_to_date.),8.);&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;/* Skip parties that do not have transactions on the current day */&lt;BR /&gt;if date_key{n} &amp;lt; rundate then&lt;BR /&gt;goto &amp;amp;sysmacroname.;&lt;BR /&gt;p10236_day_list = ' ';&lt;BR /&gt;p10236_day_count = 0;&lt;BR /&gt;p10236_total_amount = 0;&lt;/P&gt;&lt;P&gt;do i = n to 1 by -1 until(date_key{i} &amp;lt; p10236_begin_date);&lt;BR /&gt;if p10236_begin_date &amp;lt;= date_key{i} &amp;lt;= rundate then&lt;BR /&gt;do;&lt;BR /&gt;if upcase(account_type_desc{i}) in (&amp;amp;p10236_account_type_desc) and&lt;BR /&gt;upcase(currency_based_account_ind{i}) in (&amp;amp;p10236_currency_acct) and&lt;BR /&gt;upcase(transaction_cdi_code{i}) in (&amp;amp;p10236_cdi_indicator) and&lt;BR /&gt;upcase(status_desc{i}) in (&amp;amp;p10236_status_desc) then&lt;BR /&gt;do;&lt;BR /&gt;if currency_amount{i} le &amp;amp;p10236_trans_limit then&lt;BR /&gt;goto &amp;amp;sysmacroname.;&lt;/P&gt;&lt;P&gt;%save_transaction_key (calling_macro=&amp;amp;this_macro_name);&lt;BR /&gt;p10236_total_amount = sum(p10236_total_amount,currency_amount{i});&lt;BR /&gt;repeat = indexw(p10236_day_list,strip(put(date_key{i},8.)));&lt;/P&gt;&lt;P&gt;if repeat eq 0 and not missing(date_key{i}) then&lt;BR /&gt;do;&lt;BR /&gt;p10236_day_list = catx(' ',p10236_day_list,put(date_key{i},8.));&lt;BR /&gt;p10236_day_count + 1;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;/* Compare party values to parameters for a match */&lt;BR /&gt;if p10236_day_count ge &amp;amp;p10236_day_count and&lt;BR /&gt;p10236_total_amount ge &amp;amp;p10236_trans_total then&lt;BR /&gt;do;&lt;BR /&gt;actual_values_text = tranwrd(&amp;amp;r10236_threshold_message,'#1',strip(put(p10236_total_amount,nlnum32.)) );&lt;BR /&gt;actual_values_text = tranwrd(actual_values_text,'#2',strip(put(p10236_day_count,nlnum32.)) );&lt;BR /&gt;actual_values_text = tranwrd(actual_values_text,'#$', "&amp;amp;currency_code" );&lt;BR /&gt;output &amp;amp;alert_fname;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;/* EXIT */&lt;BR /&gt;&amp;amp;sysmacroname.:&lt;BR /&gt;;&lt;BR /&gt;/* ========================================================================== */&lt;BR /&gt;/* END SCENARIO - SAS10236 */&lt;BR /&gt;/* ========================================================================== */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set the parameter accordingly but Can some body tell what will happen to in below statement :-&lt;/P&gt;&lt;P&gt;if currency_amount{i} le &amp;amp;p10236_trans_limit then&lt;BR /&gt;goto &amp;amp;sysmacroname.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some body help me in this case ? Whether this logic is correct or not ? What will happen in the above statement ?&lt;/P&gt;&lt;P&gt;How to debug the this custom scenario ? is there any way to cross check why alerts are not generating ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/69095"&gt;@manishiiita&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; I request you help on the review the code and guide me changes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 09:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-create-the-custom-scenario-for-monitoring-transaction/m-p/501063#M215</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2018-10-03T09:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the custom scenario for monitoring transaction exceeding the limit and transaction</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-create-the-custom-scenario-for-monitoring-transaction/m-p/501697#M216</link>
      <description>&lt;P&gt;Well, we don't really have all the related code.&amp;nbsp; I can tell you what it appears the code is doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like the code searches through a set of currency amounts in backwards order (from last to first).&amp;nbsp; Subject to other calculations in the DATA step, as soon as a currency amount is less than (or equal to) the value specified in &amp;amp;p10236_trans_limit, the program skips over a bunch of processing and resumes with the section labeled "END SCENARIO".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it correct?&amp;nbsp; I don't think anybody could possibly tell without spending a day or two studying the rules.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 21:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-create-the-custom-scenario-for-monitoring-transaction/m-p/501697#M216</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-10-04T21:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the custom scenario for monitoring transaction exceeding the limit and transaction</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-create-the-custom-scenario-for-monitoring-transaction/m-p/502252#M217</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything is correct in the logic but I have not added the message entry in the FSK_SCENARIO_MESSAGE table for r10236_threshold_message and after adding the same entry for these parameter and then&amp;nbsp; this it is generating alerts for the same logic&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For troubleshooting the same, we have to test the same scenario through SCENARIO_ADMIN screen and log will be generated /SASAMLROOT/custom/config this log file will have the error and more details .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all for your help .&lt;/P&gt;</description>
      <pubDate>Sun, 07 Oct 2018 13:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/How-to-create-the-custom-scenario-for-monitoring-transaction/m-p/502252#M217</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2018-10-07T13:27:27Z</dc:date>
    </item>
  </channel>
</rss>

