<?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 delete values that have &amp;quot;_U&amp;quot; in the end in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428278#M105732</link>
    <description>&lt;P&gt;I want to delete values/rows which are appended with "_U" in the end.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 08:13:00 GMT</pubDate>
    <dc:creator>Abhi301812</dc:creator>
    <dc:date>2018-01-17T08:13:00Z</dc:date>
    <item>
      <title>How to delete values that have "_U" in the end</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428278#M105732</link>
      <description>&lt;P&gt;I want to delete values/rows which are appended with "_U" in the end.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 08:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428278#M105732</guid>
      <dc:creator>Abhi301812</dc:creator>
      <dc:date>2018-01-17T08:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete values that have "_U" in the end</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428279#M105733</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
string="SomeString_U";output;
string="SomeString";output;
string="Some_UString";output;
run;

data want;
	set have;
	where substrn(string,max(1,length(string)-1),2) ne "_U";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jan 2018 08:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428279#M105733</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-17T08:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete values that have "_U" in the end</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428280#M105734</link>
      <description>Thanks, this was helpful</description>
      <pubDate>Wed, 17 Jan 2018 08:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428280#M105734</guid>
      <dc:creator>Abhi301812</dc:creator>
      <dc:date>2018-01-17T08:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete values that have "_U" in the end</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428281#M105735</link>
      <description>&lt;P&gt;Anytime, glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 08:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428281#M105735</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-17T08:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete values that have "_U" in the end</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428283#M105736</link>
      <description>Please provide some sample data in the form of a DATA Step&lt;BR /&gt;&lt;BR /&gt;See this post on how to convert your SAS data set into a DATA Step program that creates this data&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;</description>
      <pubDate>Wed, 17 Jan 2018 08:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428283#M105736</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-01-17T08:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete values that have "_U" in the end</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428301#M105741</link>
      <description>&lt;P&gt;Or for succinctness:&lt;/P&gt;
&lt;PRE&gt;data have;
string="SomeString_U";output;
string="SomeString";output;
string="Some_UString";output;
run;

data want;
  set have;
  where index(string,"_U");
run;&lt;/PRE&gt;
&lt;P&gt;As a tip&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;, could you use spaces rather than tabs to indent, as tabs get shown differently in different editors&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 09:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-values-that-have-quot-U-quot-in-the-end/m-p/428301#M105741</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-17T09:10:44Z</dc:date>
    </item>
  </channel>
</rss>

