<?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: using letter case changes to delimit a string into new strings in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/using-letter-case-changes-to-delimit-a-string-into-new-strings/m-p/157296#M30683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your names are always like those shown in your example you might be able to use something as simple as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input name $30.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;JonathanSmith&lt;/P&gt;&lt;P&gt;MaryMcDougal&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; first=substr(name,1,anyupper(substr(name,2)));&lt;/P&gt;&lt;P&gt;&amp;nbsp; last=substr(name,anyupper(substr(name,2))+1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2014 17:15:34 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2014-01-31T17:15:34Z</dc:date>
    <item>
      <title>using letter case changes to delimit a string into new strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-letter-case-changes-to-delimit-a-string-into-new-strings/m-p/157293#M30680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I break up a string into new string variables using the uppercase letters in the string as the delimiters?&amp;nbsp; For example, I have a name variable that looks like:&amp;nbsp; JohnSmith. I want to transform it into two variables -- first = John, last = Smith.&amp;nbsp; I tried scan (varname, _n_, ' ', ku) but it only returns the upper case letters not the lower case letters following. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 17:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-letter-case-changes-to-delimit-a-string-into-new-strings/m-p/157293#M30680</guid>
      <dc:creator>scaldera</dc:creator>
      <dc:date>2014-01-30T17:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: using letter case changes to delimit a string into new strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-letter-case-changes-to-delimit-a-string-into-new-strings/m-p/157294#M30681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about JohnMcDonald ? &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 17:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-letter-case-changes-to-delimit-a-string-into-new-strings/m-p/157294#M30681</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-30T17:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: using letter case changes to delimit a string into new strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-letter-case-changes-to-delimit-a-string-into-new-strings/m-p/157295#M30682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;although there are sas functions like anylower() and notlower() picking out the case changes sounds more suitable for the prx functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-letter-case-changes-to-delimit-a-string-into-new-strings/m-p/157295#M30682</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-01-31T16:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: using letter case changes to delimit a string into new strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-letter-case-changes-to-delimit-a-string-into-new-strings/m-p/157296#M30683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your names are always like those shown in your example you might be able to use something as simple as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input name $30.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;JonathanSmith&lt;/P&gt;&lt;P&gt;MaryMcDougal&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; first=substr(name,1,anyupper(substr(name,2)));&lt;/P&gt;&lt;P&gt;&amp;nbsp; last=substr(name,anyupper(substr(name,2))+1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 17:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-letter-case-changes-to-delimit-a-string-into-new-strings/m-p/157296#M30683</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-01-31T17:15:34Z</dc:date>
    </item>
  </channel>
</rss>

