<?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: In Data management studio, SQL lookup fetches exact match but how to get pattern match data. in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192000#M4015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL has a sounds like operator. You should be able to add custom sql to handle that. I'm not familiar with DMS to say how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.4guysfromrolla.com/webtech/tips/t103101-1.shtml" title="http://www.4guysfromrolla.com/webtech/tips/t103101-1.shtml"&gt;User Tips: Finding Similar Sounding Names using SOUNDEX - 4GuysFromRolla.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;=* in SAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the SOUNDEX or SOUNDS LIKE for your DBMS as a starting point. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2014 16:23:17 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-03-03T16:23:17Z</dc:date>
    <item>
      <title>In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/191996#M4011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm working on DMS and creating webservice by two simple nodes (external data provider and sql lookup) and testing it. while testing i'm giving Name i/p field and providing name for ex as "MIKE" then its fetching exact match records from the table i,e all recs having MIKE only...but my requirement is to get all records sounds like MIKE...ie not exact but all matches. Hope understood my need. Please let me know if there is way to acheive this.&lt;/P&gt;&lt;P&gt;Please let know if you need some more inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 09:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/191996#M4011</guid>
      <dc:creator>maheshtalla</dc:creator>
      <dc:date>2014-03-03T09:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/191997#M4012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't used Data Management Studio yet but have an idea of the technologies it uses. What you could do is to create match codes and then join via these match codes - not sure how the nodes are called but I'm almost 100% sure that this can be done using DMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also standardize your 2 name columns (assigning the result to 2 new columns) and then join via these standardized columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 09:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/191997#M4012</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-03-03T09:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/191998#M4013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haven't used DMS either, but there are perl regular expressions - for SAS check out PRXMATCH PRXPARSE.&amp;nbsp; You can build up some complicated algorithms that way, or sql has the wildcards which may help (% _ etc.). &lt;/P&gt;&lt;P&gt;Depends on your data really, if there is lots of different variations then you would be best off re-coding as Patrick has responded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 15:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/191998#M4013</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-03-03T15:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/191999#M4014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you need to add match codes to your database lookup table (the one that the SQL Lookup node references).&amp;nbsp; Create name match codes and insert them into this table. Then when you are testing with the external data provider node, add a match code node for the name (using the same definition and sensitivity as you used in appending match codes to your lookup table.). When you are testing perform the SQL lookup on the match codes and not on the exact names and the following results will return Mike = Michael; MIKE = Michael; mike = MICHAEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-shawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 16:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/191999#M4014</guid>
      <dc:creator>skillman</dc:creator>
      <dc:date>2014-03-03T16:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192000#M4015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL has a sounds like operator. You should be able to add custom sql to handle that. I'm not familiar with DMS to say how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.4guysfromrolla.com/webtech/tips/t103101-1.shtml" title="http://www.4guysfromrolla.com/webtech/tips/t103101-1.shtml"&gt;User Tips: Finding Similar Sounding Names using SOUNDEX - 4GuysFromRolla.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;=* in SAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the SOUNDEX or SOUNDS LIKE for your DBMS as a starting point. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 16:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192000#M4015</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-03T16:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192001#M4016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/" modifiedtitle="true" title="Reeza"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The (dataflux) match codes will give a much better result than soundex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 21:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192001#M4016</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-03-03T21:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192002#M4017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI shawn,&lt;/P&gt;&lt;P&gt;Thanks for your reply.I tried it what you had suggested. But it is not working as you said..it is fetching again the exact match only.&lt;/P&gt;&lt;P&gt;I tried with the following process.&lt;/P&gt;&lt;P&gt;first i created an output having matchcodes on names by using a data job.Then i used external data provider-&amp;gt;match codes node-&amp;gt;sql lookup.In sql lookup i had given the condition CUST_NAME_MATCHCODE=CUST_NAME_MATCHCODE.&lt;/P&gt;&lt;P&gt;I used the same definitions and same sensitivity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even after trying this it is giving exact matchcode for given input custopmer name.&lt;/P&gt;&lt;P&gt;Kindly help me on this..&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 04:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192002#M4017</guid>
      <dc:creator>sandeep_reddy</dc:creator>
      <dc:date>2014-03-04T04:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192003#M4018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be more than you need, but the DM Studio user guide has a chapter on entity resolution that might help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/dfdmstudio/2.5/dmpdmsug/Content/_Entity_Res.html" title="http://support.sas.com/documentation/onlinedoc/dfdmstudio/2.5/dmpdmsug/Content/_Entity_Res.html"&gt;Working with Entity Resolutions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 16:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192003#M4018</guid>
      <dc:creator>DaveR_SAS</dc:creator>
      <dc:date>2014-03-04T16:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192004#M4019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sandeep,&lt;/P&gt;&lt;P&gt;I created an example using the route I suggested and the one you mentioned. Everything worked as expected. See screenshots for a walkthrough:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Process job with Match Code Creation and Test Data Jobs:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="5070" alt="match_code_lookup_1.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5070_match_code_lookup_1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Match Code creation, insert into database:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="5071" alt="match_code_lookup_2.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5071_match_code_lookup_2.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test with sample data (3 names):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="5072" alt="match_code_lookup_3.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5072_match_code_lookup_3.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Match code generation of the 3 sample names:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="5073" alt="match_code_lookup_4.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5073_match_code_lookup_4.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;SQL Lookup into database using match codes created and results shown (Left 2 highlighted columns are my test data, right highlighted column are the matches returned from the database):&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="5074" alt="match_code_lookup_5.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5074_match_code_lookup_5.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;SQL Lookup dialog box:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="5075" alt="match_code_lookup_6.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/5075_match_code_lookup_6.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-shawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 16:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192004#M4019</guid>
      <dc:creator>skillman</dc:creator>
      <dc:date>2014-03-04T16:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192005#M4020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Skillman,&lt;/P&gt;&lt;P&gt;Thanks for your reply.It is working fine now.I have one question regarding address standardization.&lt;/P&gt;&lt;P&gt;I have a fields named ADDRESS, which contains varchar data of 120 bytes(i.e. Sample is shown below). I need to standardize a portion of string, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#39/1, Electronic City, &lt;STRONG&gt;St.&lt;/STRONG&gt; Green Glen, Bangalore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to convert &lt;EM&gt;&lt;STRONG&gt;St. to Street&lt;/STRONG&gt;&lt;/EM&gt; and rest all will be same (&lt;/P&gt;&lt;P&gt;#39/1, Electronic City, &lt;EM&gt;&lt;STRONG&gt;Street&lt;/STRONG&gt;&lt;/EM&gt; Green Glen, Bangalore&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 10:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192005#M4020</guid>
      <dc:creator>sandeep_reddy</dc:creator>
      <dc:date>2014-03-05T10:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: In Data management studio, SQL lookup fetches exact match but how to get pattern match data.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192006#M4021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you get your initial questions answered (quite a "service" skillman provided here for you) then mark the correct/most helpful answer as "correct answer". This closes the thread AND awards skillman the points he deserves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then start a new thread with your new question. If it's related to your previous thread then crosslink to this previous thread in your new thread. This way it's much easier for all of us to search the communities and find answers to our questions without having to look at 10mile long threads dealing with 20 different sub-discussions of which 19 are totally irrelevant for us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 11:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/In-Data-management-studio-SQL-lookup-fetches-exact-match-but-how/m-p/192006#M4021</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-03-05T11:12:34Z</dc:date>
    </item>
  </channel>
</rss>

