<?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: Case insensitive within proc sql match/merge? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Case-insensitive-within-proc-sql-match-merge/m-p/479743#M71496</link>
    <description>&lt;P&gt;How about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table final as
          select L.*, R.* from list1 as L left join list2 as R
          on
          upcase(L.City1) = upcase(R.City2)
;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Jul 2018 22:17:58 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-07-19T22:17:58Z</dc:date>
    <item>
      <title>Case insensitive within proc sql match/merge?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Case-insensitive-within-proc-sql-match-merge/m-p/479726#M71495</link>
      <description>&lt;P&gt;If I have two datasets with the same city for example, however they differ by&amp;nbsp;case sensitivity:&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example:&amp;nbsp; list1 is NEW YORK but&amp;nbsp; list2 it is New York in a given observation. Is there a way to make the merge/match be case insensitive?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below code but am trying to see if there is a way to disregard the case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table final as&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select L.*, R.* from list1 as L left join list2 as R&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (substr(L.City1, length(L.City1)-1) = substr(R.City2,length(R.City2)-1)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 21:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Case-insensitive-within-proc-sql-match-merge/m-p/479726#M71495</guid>
      <dc:creator>Ramsha</dc:creator>
      <dc:date>2018-07-19T21:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Case insensitive within proc sql match/merge?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Case-insensitive-within-proc-sql-match-merge/m-p/479743#M71496</link>
      <description>&lt;P&gt;How about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table final as
          select L.*, R.* from list1 as L left join list2 as R
          on
          upcase(L.City1) = upcase(R.City2)
;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2018 22:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Case-insensitive-within-proc-sql-match-merge/m-p/479743#M71496</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-19T22:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Case insensitive within proc sql match/merge?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Case-insensitive-within-proc-sql-match-merge/m-p/479744#M71497</link>
      <description>&lt;P&gt;This works, thank you so much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 22:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Case-insensitive-within-proc-sql-match-merge/m-p/479744#M71497</guid>
      <dc:creator>Ramsha</dc:creator>
      <dc:date>2018-07-19T22:20:57Z</dc:date>
    </item>
  </channel>
</rss>

