<?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 How to remove part of a word? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-part-of-a-word/m-p/432726#M107205</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data with a variable City&amp;nbsp;and that includes Boroughs. I don't want to have Borough in the City and want to take of the Borough from the City. How can I do that? , I used compress but it is not working the way I want the output to be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;City&lt;/P&gt;&lt;P&gt;Albany&lt;/P&gt;&lt;P&gt;Delmar&lt;/P&gt;&lt;P&gt;Troy&lt;/P&gt;&lt;P&gt;Borough of Bronx&lt;/P&gt;&lt;P&gt;Borough of Queens&lt;/P&gt;&lt;P&gt;Borough of Brooklyn&lt;/P&gt;&lt;P&gt;Manhattan&lt;/P&gt;&lt;P&gt;Buffalo&lt;/P&gt;&lt;P&gt;Suffolk&lt;/P&gt;&lt;P&gt;Nassau&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want "Borough of" and only want to display it as Bronx or Queens etc. I have around more than 100 observations with different City names. I can't use 100 if-then statements. Is there a easy way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 13:56:59 GMT</pubDate>
    <dc:creator>Malathi13</dc:creator>
    <dc:date>2018-01-31T13:56:59Z</dc:date>
    <item>
      <title>How to remove part of a word?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-part-of-a-word/m-p/432726#M107205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data with a variable City&amp;nbsp;and that includes Boroughs. I don't want to have Borough in the City and want to take of the Borough from the City. How can I do that? , I used compress but it is not working the way I want the output to be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;City&lt;/P&gt;&lt;P&gt;Albany&lt;/P&gt;&lt;P&gt;Delmar&lt;/P&gt;&lt;P&gt;Troy&lt;/P&gt;&lt;P&gt;Borough of Bronx&lt;/P&gt;&lt;P&gt;Borough of Queens&lt;/P&gt;&lt;P&gt;Borough of Brooklyn&lt;/P&gt;&lt;P&gt;Manhattan&lt;/P&gt;&lt;P&gt;Buffalo&lt;/P&gt;&lt;P&gt;Suffolk&lt;/P&gt;&lt;P&gt;Nassau&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want "Borough of" and only want to display it as Bronx or Queens etc. I have around more than 100 observations with different City names. I can't use 100 if-then statements. Is there a easy way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-part-of-a-word/m-p/432726#M107205</guid>
      <dc:creator>Malathi13</dc:creator>
      <dc:date>2018-01-31T13:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove part of a word?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-part-of-a-word/m-p/432733#M107210</link>
      <description>&lt;PRE&gt;want=strip(tranwrd(have,"Borough of",""));&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-part-of-a-word/m-p/432733#M107210</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-31T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove part of a word?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-part-of-a-word/m-p/432735#M107212</link>
      <description>&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;I just used tranwrd without strip and it worked perfectly as I wanted and you gave the same with strip. Thank you so much for the answer. This saved me a lot of time and writing a long code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:11:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-part-of-a-word/m-p/432735#M107212</guid>
      <dc:creator>Malathi13</dc:creator>
      <dc:date>2018-01-31T14:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove part of a word?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-part-of-a-word/m-p/432741#M107215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here in this case you can even try&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;want=scan(city,-1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-part-of-a-word/m-p/432741#M107215</guid>
      <dc:creator>srinath3111</dc:creator>
      <dc:date>2018-01-31T14:22:35Z</dc:date>
    </item>
  </channel>
</rss>

