<?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 Character function  - names in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Character-function-names/m-p/177372#M45404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable - full names, and I want to separate all names (last, middle, first). &lt;/P&gt;&lt;P&gt;The variable is usually like Dan I Cooper. However some persons' names include a nick name and their names are like Johnson (John) E Allen. So I want to have a function to tell me which full names include a nickname within (). My solution is to use : If ANYPUNCT(fullname)&amp;gt;0 then nick_name=scan(fullname,2).&lt;/P&gt;&lt;P&gt;But now I find out a new issue, some full names are like Jeff M O'Hagan. With an apostrophe, the anypunct(fullname) is also greater than 0.&lt;/P&gt;&lt;P&gt;So is there a function I can just search parentheses within a string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. of course these names are not real names.&lt;/P&gt;&lt;P&gt;Cliff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jan 2015 18:04:59 GMT</pubDate>
    <dc:creator>cliff</dc:creator>
    <dc:date>2015-01-10T18:04:59Z</dc:date>
    <item>
      <title>Character function  - names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-function-names/m-p/177372#M45404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable - full names, and I want to separate all names (last, middle, first). &lt;/P&gt;&lt;P&gt;The variable is usually like Dan I Cooper. However some persons' names include a nick name and their names are like Johnson (John) E Allen. So I want to have a function to tell me which full names include a nickname within (). My solution is to use : If ANYPUNCT(fullname)&amp;gt;0 then nick_name=scan(fullname,2).&lt;/P&gt;&lt;P&gt;But now I find out a new issue, some full names are like Jeff M O'Hagan. With an apostrophe, the anypunct(fullname) is also greater than 0.&lt;/P&gt;&lt;P&gt;So is there a function I can just search parentheses within a string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. of course these names are not real names.&lt;/P&gt;&lt;P&gt;Cliff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jan 2015 18:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-function-names/m-p/177372#M45404</guid>
      <dc:creator>cliff</dc:creator>
      <dc:date>2015-01-10T18:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Character function  - names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-function-names/m-p/177373#M45405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FIND and INDEX functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jan 2015 18:09:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-function-names/m-p/177373#M45405</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-10T18:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Character function  - names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-function-names/m-p/177374#M45406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I just find(fullname,'(') and filter out those nicknames.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jan 2015 18:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-function-names/m-p/177374#M45406</guid>
      <dc:creator>cliff</dc:creator>
      <dc:date>2015-01-10T18:32:13Z</dc:date>
    </item>
  </channel>
</rss>

