<?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: Splitting street from number (split string into two variables) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196296#M49086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naveen for PRX just take some sample as posted and do a trial for an easy problem when that one succeeds and understood go for the more difficult ones.&lt;BR /&gt;You do not need to learn the PERL just the PRX part. Samples are more easy to follow than the docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p0s9ilagexmjl8n1u7e1t1jfnzlk.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p0s9ilagexmjl8n1u7e1t1jfnzlk.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt;&amp;nbsp; (reference PRX ,metadatachars)&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p06i7305izsnvcn1ru9147suzyv5.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p06i7305izsnvcn1ru9147suzyv5.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt; (PRXPARSE doc)&amp;nbsp;&amp;nbsp; the one that does the PRX compilation. Preferable needed only once in a datastep&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 10:39:04 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2015-04-15T10:39:04Z</dc:date>
    <item>
      <title>Splitting street from number (split string into two variables)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196289#M49079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hello, &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have a variable with street and number in one string. I would like to split them into two variables:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;data example;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;input street_number $30.;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;datalines;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Limburger Str. 15a&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Genter Str. 1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Schanzenstrasse 12 b&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hollunder Weg 92&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;run;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I am looking for a function which can split - if the first character is a number&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;My output should look like:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Street&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Limburger Str.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15a&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Genter Str.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Schanzenstrasse&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 b&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hollunder Weg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 92&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I was thinking about substr() and scan() but I couldn't found a good advise on google. &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Best Regards&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Silke &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196289#M49079</guid>
      <dc:creator>SMartin</dc:creator>
      <dc:date>2015-04-15T09:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting street from number (split string into two variables)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196290#M49080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried using ANYDIGIT function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196290#M49080</guid>
      <dc:creator>naveen_srini</dc:creator>
      <dc:date>2015-04-15T09:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting street from number (split string into two variables)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196291#M49081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PRX fucntions? &lt;A href="http://www2.sas.com/proceedings/forum2007/223-2007.pdf" title="http://www2.sas.com/proceedings/forum2007/223-2007.pdf"&gt;http://www2.sas.com/proceedings/forum2007/223-2007.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196291#M49081</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-15T09:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting street from number (split string into two variables)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196292#M49082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data example;&lt;BR /&gt;input street_number &amp;amp; :$50.;&lt;BR /&gt;datalines;&lt;BR /&gt;Limburger Str. 15a&lt;BR /&gt;Genter Str. 1&lt;BR /&gt;Schanzenstrasse 12 b&lt;BR /&gt;Hollunder Weg 92&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data solution;&lt;BR /&gt; set example;&lt;BR /&gt; street=substr(street_number,1,anydigit(street_number)-1);&lt;BR /&gt; Number=substr(street_number,anydigit(street_number),length(street_number));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen Srinivasan&lt;/P&gt;&lt;P&gt;L&amp;amp;T Infotech&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 10:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196292#M49082</guid>
      <dc:creator>naveen_srini</dc:creator>
      <dc:date>2015-04-15T10:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting street from number (split string into two variables)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196293#M49083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 10:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196293#M49083</guid>
      <dc:creator>SMartin</dc:creator>
      <dc:date>2015-04-15T10:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting street from number (split string into two variables)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196294#M49084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="8872" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&amp;nbsp; Sir, Forgive me, I trust and totally agree PRX will work seamlessly, but I am not even anywhere close or&amp;nbsp; to your level of expertise, so I still have to learn PRX from the very begining. I really appreciate sharing the doc, does the really cover from the very basic to considerable advance level of PRX functions and should i have to learn perl scripting before learning to use PRX functions, If so, that sounds very daunting.:smileyconfused:&lt;/P&gt;&lt;P&gt;BTW, I have taken a lot of your help in the past from other posts, although never had a chance to thank personally. Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 10:15:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196294#M49084</guid>
      <dc:creator>naveen_srini</dc:creator>
      <dc:date>2015-04-15T10:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting street from number (split string into two variables)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196295#M49085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="838900" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; Please mark the question as answered and award appropriate points for correct and helpful answers to Naveen and Jaap. Just courtesy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 10:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196295#M49085</guid>
      <dc:creator>Andygray</dc:creator>
      <dc:date>2015-04-15T10:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting street from number (split string into two variables)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196296#M49086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naveen for PRX just take some sample as posted and do a trial for an easy problem when that one succeeds and understood go for the more difficult ones.&lt;BR /&gt;You do not need to learn the PERL just the PRX part. Samples are more easy to follow than the docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p0s9ilagexmjl8n1u7e1t1jfnzlk.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p0s9ilagexmjl8n1u7e1t1jfnzlk.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt;&amp;nbsp; (reference PRX ,metadatachars)&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p06i7305izsnvcn1ru9147suzyv5.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p06i7305izsnvcn1ru9147suzyv5.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt; (PRXPARSE doc)&amp;nbsp;&amp;nbsp; the one that does the PRX compilation. Preferable needed only once in a datastep&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 10:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-street-from-number-split-string-into-two-variables/m-p/196296#M49086</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-15T10:39:04Z</dc:date>
    </item>
  </channel>
</rss>

