<?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: remove salutations in name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/remove-salutations-in-name/m-p/299129#M63009</link>
    <description>change to:&lt;BR /&gt;%let salut_list = "Mr" "Ms" "Mrs" "Miss" "Dr." ;</description>
    <pubDate>Sun, 18 Sep 2016 00:46:46 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2016-09-18T00:46:46Z</dc:date>
    <item>
      <title>remove salutations in name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-salutations-in-name/m-p/299108#M63003</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Hi everyone.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Can I please ask how can I remove the salutations&amp;nbsp;ie&amp;nbsp;&lt;SPAN&gt;Mr, Ms, Mrs, Miss, Dr. from the variable 'name' in my data?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Thank you.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2016 16:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-salutations-in-name/m-p/299108#M63003</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2016-09-17T16:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: remove salutations in name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-salutations-in-name/m-p/299123#M63004</link>
      <description>&lt;P&gt;Use TRANWRD but you need to be careful and test it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you try and replace Miss, what about a first name as Missy?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2016 22:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-salutations-in-name/m-p/299123#M63004</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-17T22:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: remove salutations in name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-salutations-in-name/m-p/299128#M63008</link>
      <description>&lt;P&gt;Usually salutations are the first/prefix of a name followd by a space.&lt;/P&gt;&lt;P&gt;In such case :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let salut_list = &lt;SPAN&gt;Mr Ms Mrs Miss Dr. ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; set have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test =&amp;nbsp;scan(name,1) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if test in (&amp;amp;salut_list)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; then name = left(substr(name, length(test)+1));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* drop or rename test to salut */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2016 00:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-salutations-in-name/m-p/299128#M63008</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-18T00:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: remove salutations in name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-salutations-in-name/m-p/299129#M63009</link>
      <description>change to:&lt;BR /&gt;%let salut_list = "Mr" "Ms" "Mrs" "Miss" "Dr." ;</description>
      <pubDate>Sun, 18 Sep 2016 00:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-salutations-in-name/m-p/299129#M63009</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-18T00:46:46Z</dc:date>
    </item>
  </channel>
</rss>

