01-30-2014 12:45 PM
How can I break up a string into new string variables using the uppercase letters in the string as the delimiters? For example, I have a name variable that looks like: JohnSmith. I want to transform it into two variables -- first = John, last = Smith. I tried scan (varname, _n_, ' ', ku) but it only returns the upper case letters not the lower case letters following. Thanks!
01-31-2014 11:59 AM
although there are sas functions like anylower() and notlower() picking out the case changes sounds more suitable for the prx functions.
01-31-2014 12:15 PM
If your names are always like those shown in your example you might be able to use something as simple as:
input name $30.;