<?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: SAS Visual Investigator Data Step Scenario in Fraud, AML and Security Intelligence</title>
    <link>https://communities.sas.com/t5/Fraud-AML-and-Security/SAS-Visual-Investigator-Data-Step-Scenario/m-p/804876#M828</link>
    <description>&lt;P&gt;Below code should work but is untested because you didn't provide sample data in a usable format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort 
    data=&amp;amp;input_dataset(keep=tel_number full_name)
    out=intermediate
    nodupkey;
  by tel_number full_name;
run;

data &amp;amp;output_dataset;
  set intermediate;
  by tel_number;

  if first.tel_number then name_count=1;
  else name_count+1;

  if last.tel_number and name_count&amp;gt;1 then
    do;
      &amp;amp;message=catx(' ','Telephone : ',tel_number,'Suspicious.... to', name_count,'people...');
      ....
      output;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For future questions please post your data and code as text and not as screenshots. Use icons&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1648583285463.png" style="width: 124px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69932iAD8CFBEF03182449/image-dimensions/124x47?v=v2" width="124" height="47" role="button" title="Patrick_0-1648583285463.png" alt="Patrick_0-1648583285463.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;to do so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you have been happy if I'd posted my reply as picture?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1648583331312.png" style="width: 548px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69933i6D0DB59B25269817/image-dimensions/548x248?v=v2" width="548" height="248" role="button" title="Patrick_1-1648583331312.png" alt="Patrick_1-1648583331312.png" /&gt;&lt;/span&gt;&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>Tue, 29 Mar 2022 19:50:06 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2022-03-29T19:50:06Z</dc:date>
    <item>
      <title>SAS Visual Investigator Data Step Scenario</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/SAS-Visual-Investigator-Data-Step-Scenario/m-p/804803#M827</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm doing a data step scenario to show &lt;EM&gt;telephone_uid&lt;/EM&gt; (&lt;EM&gt;tel_number&lt;/EM&gt; in data step code) with more than 1 unique&amp;nbsp;&lt;EM&gt;full_name.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-03-29 234340.jpg" style="width: 902px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69926i19FBA38486454C8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-03-29 234340.jpg" alt="Screenshot 2022-03-29 234340.jpg" /&gt;&lt;/span&gt;&lt;/EM&gt;&amp;nbsp;Here is my data step code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-03-29 234620.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69928i81324DEDAB90B9C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-03-29 234620.jpg" alt="Screenshot 2022-03-29 234620.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I need an advice on how to correct my code to show only those &lt;EM&gt;tel_number&lt;/EM&gt; with more than 1 &lt;EM&gt;full_name&lt;/EM&gt; associated on it.&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;Adrian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 15:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/SAS-Visual-Investigator-Data-Step-Scenario/m-p/804803#M827</guid>
      <dc:creator>Rian0126</dc:creator>
      <dc:date>2022-03-29T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Investigator Data Step Scenario</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/SAS-Visual-Investigator-Data-Step-Scenario/m-p/804876#M828</link>
      <description>&lt;P&gt;Below code should work but is untested because you didn't provide sample data in a usable format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort 
    data=&amp;amp;input_dataset(keep=tel_number full_name)
    out=intermediate
    nodupkey;
  by tel_number full_name;
run;

data &amp;amp;output_dataset;
  set intermediate;
  by tel_number;

  if first.tel_number then name_count=1;
  else name_count+1;

  if last.tel_number and name_count&amp;gt;1 then
    do;
      &amp;amp;message=catx(' ','Telephone : ',tel_number,'Suspicious.... to', name_count,'people...');
      ....
      output;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For future questions please post your data and code as text and not as screenshots. Use icons&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1648583285463.png" style="width: 124px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69932iAD8CFBEF03182449/image-dimensions/124x47?v=v2" width="124" height="47" role="button" title="Patrick_0-1648583285463.png" alt="Patrick_0-1648583285463.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;to do so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you have been happy if I'd posted my reply as picture?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1648583331312.png" style="width: 548px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69933i6D0DB59B25269817/image-dimensions/548x248?v=v2" width="548" height="248" role="button" title="Patrick_1-1648583331312.png" alt="Patrick_1-1648583331312.png" /&gt;&lt;/span&gt;&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>Tue, 29 Mar 2022 19:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/SAS-Visual-Investigator-Data-Step-Scenario/m-p/804876#M828</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-03-29T19:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Investigator Data Step Scenario</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/SAS-Visual-Investigator-Data-Step-Scenario/m-p/804994#M829</link>
      <description>&lt;P&gt;Thanks for the reminder&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;and thanks for the answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 09:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/SAS-Visual-Investigator-Data-Step-Scenario/m-p/804994#M829</guid>
      <dc:creator>Rian0126</dc:creator>
      <dc:date>2022-03-30T09:39:27Z</dc:date>
    </item>
  </channel>
</rss>

