<?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: How to get rid of particular text which comes in the start and has &amp;quot;-&amp;quot; using sas funct in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-particular-text-which-comes-in-the-start-and/m-p/443788#M111053</link>
    <description>&lt;P&gt;One way, assuming that - first occurs in the way that you show.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   var = substr(var,index(var,'-')+2);
run;&lt;/PRE&gt;
&lt;P&gt;The +2 assume that you do not actually want the value to start with the blank that would follow the -.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 15:23:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-03-08T15:23:24Z</dc:date>
    <item>
      <title>How to get rid of particular text which comes in the start and has "-" using sas function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-particular-text-which-comes-in-the-start-and/m-p/443779#M111049</link>
      <description>&lt;P&gt;I want to remove the first text in data which ends with "-" .&lt;/P&gt;
&lt;P&gt;sample data is&lt;/P&gt;
&lt;P&gt;Exclusion #13 - The patient has any other disorder for which the treatment .&lt;/P&gt;
&lt;P&gt;Exclusion #19 - The patient has or has had one or more of the following.&lt;/P&gt;
&lt;P&gt;Inclusion #5 - The patient and parent(s)/ legal representative (s) is willing and able to attend study&lt;BR /&gt;appointments within the specified time windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So i want to remove whenever there is "&lt;SPAN&gt;Exclusion #13 -" or&amp;nbsp;Exclusion #19 -"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ANy help&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 15:01:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-particular-text-which-comes-in-the-start-and/m-p/443779#M111049</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2018-03-08T15:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of particular text which comes in the start and has "-" using sas funct</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-particular-text-which-comes-in-the-start-and/m-p/443788#M111053</link>
      <description>&lt;P&gt;One way, assuming that - first occurs in the way that you show.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   var = substr(var,index(var,'-')+2);
run;&lt;/PRE&gt;
&lt;P&gt;The +2 assume that you do not actually want the value to start with the blank that would follow the -.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 15:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-particular-text-which-comes-in-the-start-and/m-p/443788#M111053</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-08T15:23:24Z</dc:date>
    </item>
  </channel>
</rss>

