<?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 sas how to remove before value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-how-to-remove-before-value/m-p/371621#M88785</link>
    <description>&lt;P&gt;Hi here i have a small &amp;nbsp;issue in base sas . i have assain&amp;nbsp;blfl variable 'Y' here how to avoied before value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data ex;&lt;BR /&gt;input pi test$ result;&lt;BR /&gt;cards;&lt;BR /&gt;101 gluk 130&lt;BR /&gt;101 gluk 140&lt;BR /&gt;101 gluk 158&lt;BR /&gt;101 gluk 148&lt;BR /&gt;101 gluk 145&lt;BR /&gt;101 gluk 148&lt;BR /&gt;101 prot 200&lt;BR /&gt;101 prot 210&lt;BR /&gt;101 prot 220&lt;BR /&gt;101 prot 290&lt;BR /&gt;101 prot 220&lt;BR /&gt;101 prot 217&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data exp;&lt;BR /&gt;set ex;&lt;BR /&gt;by pi result;&lt;BR /&gt;retain;&lt;BR /&gt;if result=140 or result=210 then blfl='Y';&lt;BR /&gt;else blfl='.';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2017 11:38:47 GMT</pubDate>
    <dc:creator>teja5959</dc:creator>
    <dc:date>2017-06-29T11:38:47Z</dc:date>
    <item>
      <title>sas how to remove before value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-how-to-remove-before-value/m-p/371621#M88785</link>
      <description>&lt;P&gt;Hi here i have a small &amp;nbsp;issue in base sas . i have assain&amp;nbsp;blfl variable 'Y' here how to avoied before value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data ex;&lt;BR /&gt;input pi test$ result;&lt;BR /&gt;cards;&lt;BR /&gt;101 gluk 130&lt;BR /&gt;101 gluk 140&lt;BR /&gt;101 gluk 158&lt;BR /&gt;101 gluk 148&lt;BR /&gt;101 gluk 145&lt;BR /&gt;101 gluk 148&lt;BR /&gt;101 prot 200&lt;BR /&gt;101 prot 210&lt;BR /&gt;101 prot 220&lt;BR /&gt;101 prot 290&lt;BR /&gt;101 prot 220&lt;BR /&gt;101 prot 217&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data exp;&lt;BR /&gt;set ex;&lt;BR /&gt;by pi result;&lt;BR /&gt;retain;&lt;BR /&gt;if result=140 or result=210 then blfl='Y';&lt;BR /&gt;else blfl='.';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 11:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-how-to-remove-before-value/m-p/371621#M88785</guid>
      <dc:creator>teja5959</dc:creator>
      <dc:date>2017-06-29T11:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: sas how to remove before value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-how-to-remove-before-value/m-p/371625#M88787</link>
      <description>&lt;P&gt;The by statement causes and error because the dataset ex is not properly sorted.&lt;/P&gt;
&lt;P&gt;The retain statement without a variable has no effect.&lt;/P&gt;
&lt;P&gt;Could you please post the intended result?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 11:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-how-to-remove-before-value/m-p/371625#M88787</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-29T11:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: sas how to remove before value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-how-to-remove-before-value/m-p/371629#M88789</link>
      <description>&lt;P&gt;I agree with Kurt, you need to show what your intended result is. &amp;nbsp;Here is a guess:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by pi test;&lt;/P&gt;
&lt;P&gt;if first.test=0 then blfl='Y';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 11:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-how-to-remove-before-value/m-p/371629#M88789</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-06-29T11:48:52Z</dc:date>
    </item>
  </channel>
</rss>

