<?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 A problem with lowercase and uppercase in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/A-problem-with-lowercase-and-uppercase/m-p/190528#M48051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to compare the value of two variables, both of them in character format. Like following example:&lt;/P&gt;&lt;P&gt;data X; set Y;&lt;/P&gt;&lt;P&gt;if Surv_city=city;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see, I have two variable, Surv_city and city, in dataset Y, and I just want to keep those observations with the same name of Surv_city and city.However, A problem comes up and the result is zero observation. I think the problem occurs&amp;nbsp; because the names of the city are not in the same form of uppercase and lowercase. How can I fixed this problem?&lt;/P&gt;&lt;P&gt;I greatly appreciate any suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Nov 2014 02:43:17 GMT</pubDate>
    <dc:creator>m1986MM</dc:creator>
    <dc:date>2014-11-29T02:43:17Z</dc:date>
    <item>
      <title>A problem with lowercase and uppercase</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-problem-with-lowercase-and-uppercase/m-p/190528#M48051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to compare the value of two variables, both of them in character format. Like following example:&lt;/P&gt;&lt;P&gt;data X; set Y;&lt;/P&gt;&lt;P&gt;if Surv_city=city;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see, I have two variable, Surv_city and city, in dataset Y, and I just want to keep those observations with the same name of Surv_city and city.However, A problem comes up and the result is zero observation. I think the problem occurs&amp;nbsp; because the names of the city are not in the same form of uppercase and lowercase. How can I fixed this problem?&lt;/P&gt;&lt;P&gt;I greatly appreciate any suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2014 02:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-problem-with-lowercase-and-uppercase/m-p/190528#M48051</guid>
      <dc:creator>m1986MM</dc:creator>
      <dc:date>2014-11-29T02:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: A problem with lowercase and uppercase</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-problem-with-lowercase-and-uppercase/m-p/190529#M48052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data X;&lt;/P&gt;&lt;P&gt;set Y;&lt;/P&gt;&lt;P&gt;if upcase(Surv_city)=upcase(city);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2014 02:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-problem-with-lowercase-and-uppercase/m-p/190529#M48052</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-11-29T02:55:14Z</dc:date>
    </item>
  </channel>
</rss>

