<?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 Read and remove this kind of data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-and-remove-this-kind-of-data/m-p/539883#M148855</link>
    <description>&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to know how to remove or create a missing value for this kind of numbers (115846255E5),&amp;nbsp; numbers that have letters that resulted from some calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ibrahim&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Mar 2019 10:57:35 GMT</pubDate>
    <dc:creator>Barkamih</dc:creator>
    <dc:date>2019-03-03T10:57:35Z</dc:date>
    <item>
      <title>Read and remove this kind of data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-and-remove-this-kind-of-data/m-p/539883#M148855</link>
      <description>&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to know how to remove or create a missing value for this kind of numbers (115846255E5),&amp;nbsp; numbers that have letters that resulted from some calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ibrahim&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 10:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-and-remove-this-kind-of-data/m-p/539883#M148855</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2019-03-03T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read and remove this kind of data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-and-remove-this-kind-of-data/m-p/539885#M148856</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/151600"&gt;@Barkamih&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a numeric literal, 115846255E5=11584625500000. If this is the value of a numeric variable, it depends on the (arbitrary) choice of the display format if the &lt;EM&gt;formatted value&lt;/EM&gt; contains a letter ("E"). So, without specifying a format your criterion "numbers that have letters" is not well-defined because numeric values as such don't contain letters. Also, you should have a good reason to remove a (possibly) valid numeric value (such as 11584625500000) from your data, in particular if it resulted from a calculation.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 11:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-and-remove-this-kind-of-data/m-p/539885#M148856</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-03-03T11:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read and remove this kind of data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-and-remove-this-kind-of-data/m-p/539890#M148860</link>
      <description>&lt;P&gt;thanks for this,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I have a reason to remove them,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking only for a number less than 1000, so when i did that these numbers still in my dataset by using the following&amp;nbsp;code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If PDY&amp;nbsp; &amp;gt; 1000 then PDY = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 12:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-and-remove-this-kind-of-data/m-p/539890#M148860</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2019-03-03T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read and remove this kind of data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-and-remove-this-kind-of-data/m-p/539893#M148862</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/151600"&gt;@Barkamih&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking only for a number less than 1000, so when i did that these numbers still in my dataset by using the following&amp;nbsp;code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If PDY&amp;nbsp; &amp;gt; 1000 then PDY = 0;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you saying that PDY=&lt;SPAN&gt;115846255E5 was not changed to 0 by your IF-THEN statement? If so, please post test data demonstrating this in the form of a DATA step and also your code. (Note that invalid numeric &lt;EM&gt;raw&lt;/EM&gt; data values such as 1234&lt;STRONG&gt;K&lt;/STRONG&gt;5 typically lead to numeric missing values, which are indeed evaluated as &amp;lt; 1000 in comparisons.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, why would you change an "invalid" value (according to your definition) to an arbitrary valid value (0 &lt;EM&gt;is&lt;/EM&gt;&amp;nbsp;"a number less than 1000"), which has the potential to ruin subsequent analyses? I'd rather suggest to replace these exceedingly large values by a special missing value, e.g. &lt;FONT face="courier new,courier"&gt;.E&lt;/FONT&gt;, if this makes sense:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if PDY&amp;gt;1000 then PDY=.E;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 Mar 2019 13:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-and-remove-this-kind-of-data/m-p/539893#M148862</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-03-03T13:45:05Z</dc:date>
    </item>
  </channel>
</rss>

