<?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: Delete negative values ( NOT '.') in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105194#M29379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In agreement with the validity if previous posts, here is how it is usually done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (.Z &amp;lt; variable &amp;lt; 0) then delete;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2012 13:59:31 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2012-07-12T13:59:31Z</dc:date>
    <item>
      <title>Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105179#M29364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am looking to delete any observation with a negative value...&lt;/P&gt;&lt;P&gt;Generally I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data x; set x; if variable&amp;lt;0 then delete; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this deletes blank observations such as '.' along with any negative values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to delete &lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/SPAN&gt; negative values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the statement below doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data x; set x; if variable=- then delete; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 07:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105179#M29364</guid>
      <dc:creator>spraynardz90</dc:creator>
      <dc:date>2012-07-12T07:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105180#M29365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just try this....I am not sure this is optimized solution or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;input nub;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;-20&lt;/P&gt;&lt;P&gt;-10&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data two;&lt;/P&gt;&lt;P&gt;set one;&lt;/P&gt;&lt;P&gt;if index(nub,'-') then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105180#M29365</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-07-12T08:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105181#M29366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need not missing() to judge it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;input nub;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;-20&lt;/P&gt;&lt;P&gt;-10&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data two;&lt;/P&gt;&lt;P&gt;set one;&lt;/P&gt;&lt;P&gt;if nub&amp;lt;0 and not missing(nub) then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;PRE&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 09:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105181#M29366</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-07-12T09:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105182#M29367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;input nub;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;-20&lt;/P&gt;&lt;P&gt;-10&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data two;&lt;/P&gt;&lt;P&gt;set one;&lt;/P&gt;&lt;P&gt;if .&amp;lt;nub&amp;lt;0&amp;nbsp; then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As . is always less than any value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 11:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105182#M29367</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-07-12T11:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105183#M29368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;SteveDenham wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;As . is always less than any value.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;2360&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;2361&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = . min ._;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;2362&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put x=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;2363&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;x=_&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 11:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105183#M29368</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-07-12T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105184#M29369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about ". is always less than any value on the real line (-∞,∞)" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I learned something new about the underscore--I always thought it to be a character only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 11:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105184#M29369</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-07-12T11:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105185#M29370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a special missing value not character underscore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 11:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105185#M29370</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-07-12T11:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105186#M29371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I would assume (mmmm danger), that the same would apply for .A .B thru to .Z--the numeric missing codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 12:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105186#M29371</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-07-12T12:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105187#M29372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See, this is exactly the reason I would never want to miss your post. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 12:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105187#M29372</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-07-12T12:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105188#M29373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the information from following link to construct your comparison:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000989180.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000989180.htm"&gt;http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000989180.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 12:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105188#M29373</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-07-12T12:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105189#M29374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A-HA!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was the link I was looking for this morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the .A thru .Z missing values are GREATER THAN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Hai.kuo!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 12:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105189#M29374</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-07-12T12:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105190#M29375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same what?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 12:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105190#M29375</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-07-12T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105191#M29376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're now out of sync.&amp;nbsp; See Hai.Kuo's post with the link to the order of missing values.&amp;nbsp; That clarifies everything, and should satisfy the OP's question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I have almost no need to use the "coded" missing values, I made the mistake of thinking that .A thru .Z were the equivalent of ._ for ordering (i.e. "the same").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Learned a lot this morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 12:38:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105191#M29376</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-07-12T12:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105192#M29377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to this link ._ is not special missing value.&amp;nbsp; I have always called it a special missing value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 13:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105192#M29377</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-07-12T13:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105193#M29378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if sign(variable) EQ -1 then delete ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.sascommunity.org/wiki/Numeric_transformations" title="http://www.sascommunity.org/wiki/Numeric_transformations"&gt;http://www.sascommunity.org/wiki/Numeric_transformations&lt;/A&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;spraynardz90 wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi I am looking to delete any observation with a negative value...&lt;/P&gt;
&lt;P&gt;Generally I use:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;data x; set x; if variable&amp;lt;0 then delete; run;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;However this deletes blank observations such as '.' along with any negative values.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Does anyone know how to delete &lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/SPAN&gt; negative values?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Unfortunately the statement below doesn't work:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;data x; set x; if variable=- then delete; run;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 13:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105193#M29378</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2012-07-12T13:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105194#M29379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In agreement with the validity if previous posts, here is how it is usually done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (.Z &amp;lt; variable &amp;lt; 0) then delete;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 13:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105194#M29379</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-07-12T13:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105195#M29380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ksharp's has already provided a safe approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if var&amp;lt;0 and not missing(var)&amp;nbsp; then delete;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will include all kinds of missing values ranging from '._' to '.Z'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 14:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105195#M29380</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-07-12T14:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delete negative values ( NOT '.')</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105196#M29381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem is that you're mixing up numeric and character data. And SAS' automatic conversions are trying to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By saying it deletes when variable = '&amp;nbsp; ', this means variable is character. So comparing to 0 forces an automatic conversion to numeric. (check the warnings in the log)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need to use the following delete statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if put(variable,5.) &amp;lt; 0 and put(variable,5.) ne . then delete.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS will still complain about invalid numeric data, but your tests will work correctly. Use an appropriate numeric format instead of the 5. if that's not appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 14:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delete-negative-values-NOT/m-p/105196#M29381</guid>
      <dc:creator>kevgermany</dc:creator>
      <dc:date>2012-07-12T14:28:16Z</dc:date>
    </item>
  </channel>
</rss>

