<?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: Point function alternative in CAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Point-function-alternative-in-CAS/m-p/948625#M371134</link>
    <description>&lt;P&gt;If I were to remove the soundex and just keep COMPGED, would it still work?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 17:07:23 GMT</pubDate>
    <dc:creator>Vivy1</dc:creator>
    <dc:date>2024-10-22T17:07:23Z</dc:date>
    <item>
      <title>Point function alternative in CAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Point-function-alternative-in-CAS/m-p/948509#M371122</link>
      <description>&lt;P&gt;Hello, I have a code similar to this one below. The problem is that it wont work in CAS. Can anyone help troubleshoot? At first the issue is the point function, and then when i comment that out it says invalid do loop control information. Any ideas on how to adapt this to run on cas?&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;data c;&lt;BR /&gt;set class;                                                                                                                            
  tmp1=soundex(fname);                                                                                                                  
  do i=1 to nobs;                                                                                                                       
    set grade(rename=(fname=fname2)) point=i nobs=nobs;                                                                                 
    tmp2=soundex(fname2);                                                                                                               
    dif=compged(tmp1,tmp2);                                                                                                             
    if dif&amp;lt;=50 then do;                                                                                                                 
      possible_match='Yes';                                                                                                             
      drop  i tmp1 tmp2  fname2;                                                                                                        
      output;                                                                                                                           
    end;                                                                                                                                
  end;                                                                                                                                  
run;                                                                                                                                    
proc print; run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 06:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Point-function-alternative-in-CAS/m-p/948509#M371122</guid>
      <dc:creator>Vivy1</dc:creator>
      <dc:date>2024-10-22T06:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Point function alternative in CAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Point-function-alternative-in-CAS/m-p/948510#M371123</link>
      <description>&lt;P&gt;Imho only because with Viya there is now CAS doesn't mean we need to load everything into CAS for processing. I'd keep your source data in compute and there you can continue to use the code you've got.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update: Proposed code using Proc FedSql for CAS processing removed because the soundex() function is not available with this proc.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 07:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Point-function-alternative-in-CAS/m-p/948510#M371123</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-10-22T07:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Point function alternative in CAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Point-function-alternative-in-CAS/m-p/948625#M371134</link>
      <description>&lt;P&gt;If I were to remove the soundex and just keep COMPGED, would it still work?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 17:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Point-function-alternative-in-CAS/m-p/948625#M371134</guid>
      <dc:creator>Vivy1</dc:creator>
      <dc:date>2024-10-22T17:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Point function alternative in CAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Point-function-alternative-in-CAS/m-p/948662#M371152</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/460526"&gt;@Vivy1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If I were to remove the soundex and just keep COMPGED, would it still work?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which functions fedsql supports is fully documented &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_056/fedsqlref/p0cqwwomu4bgebn1e0sjztf3ul9o.htm" target="_self"&gt;here.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I believe it would be best and certainly the least migration effort if you execute your code in compute against normal SAS tables and not in CAS. If you really want/need to execute in CAS and you've got the SAS DQ products licensed then consider using matchcodes with an approach similar to&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Coding-for-Data-Quality-in-SAS-Viya-Part-3-Matching/ta-p/900234" target="_self"&gt;Coding for Data Quality in SAS Viya Part 3 – Matching&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You would first create the matchcodes and then use Proc FedSql for a join over the matchcodes - or for this you could also use a data step with a hash lookup and the do_over() method.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 22:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Point-function-alternative-in-CAS/m-p/948662#M371152</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-10-22T22:05:29Z</dc:date>
    </item>
  </channel>
</rss>

