<?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 How to change any lower case in a string to upper case in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-any-lower-case-in-a-string-to-upper-case/m-p/407073#M99163</link>
    <description>&lt;P&gt;I have a character variable that consists of both letter and numbers(i.e. ABC123).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to convert all observations that have lower case in that variable (i.e. abc124) to upper case (ABC124). Not all observations have lower case. What is the best way to do this? newvar =upcase(oldvar) gives me missing values, I am assuming because I have numbers in my string too.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 20:54:39 GMT</pubDate>
    <dc:creator>Melk</dc:creator>
    <dc:date>2017-10-24T20:54:39Z</dc:date>
    <item>
      <title>How to change any lower case in a string to upper case</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-any-lower-case-in-a-string-to-upper-case/m-p/407073#M99163</link>
      <description>&lt;P&gt;I have a character variable that consists of both letter and numbers(i.e. ABC123).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to convert all observations that have lower case in that variable (i.e. abc124) to upper case (ABC124). Not all observations have lower case. What is the best way to do this? newvar =upcase(oldvar) gives me missing values, I am assuming because I have numbers in my string too.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 20:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-any-lower-case-in-a-string-to-upper-case/m-p/407073#M99163</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-10-24T20:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change any lower case in a string to upper case</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-any-lower-case-in-a-string-to-upper-case/m-p/407074#M99164</link>
      <description>&lt;P&gt;Use the upcase function.&amp;nbsp; It does not matter that values might or might not contain uppercase, lowercase, or numerals.&amp;nbsp; I don't know what you are doing to get missing values.&amp;nbsp; You have probably previously defined newvar as numeric.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 20:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-any-lower-case-in-a-string-to-upper-case/m-p/407074#M99164</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-24T20:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to change any lower case in a string to upper case</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-any-lower-case-in-a-string-to-upper-case/m-p/407076#M99165</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140721"&gt;@Melk&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;newvar =upcase(oldvar) gives me missing values, I am assuming because I have numbers in my string too.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, there's some other reason most likely. If you have mixed types in the cell, that's only possible with a character variable. If your variable is numeric, then UPCASE will definitely not work.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 20:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-any-lower-case-in-a-string-to-upper-case/m-p/407076#M99165</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-24T20:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to change any lower case in a string to upper case</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-any-lower-case-in-a-string-to-upper-case/m-p/407077#M99166</link>
      <description>&lt;P&gt;Thanks - I just preceded that line with newvar = " " and that seemed to work for some reason.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 21:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-any-lower-case-in-a-string-to-upper-case/m-p/407077#M99166</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-10-24T21:00:07Z</dc:date>
    </item>
  </channel>
</rss>

