<?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: what is difference between (. ne chg) and (chg ne .)? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/what-is-difference-between-ne-chg-and-chg-ne/m-p/917618#M41073</link>
    <description>&lt;P&gt;You would have to provide example data and exact complete code to determine why you get different results.&lt;/P&gt;
&lt;P&gt;Possibly including the LOG where you get the different results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most likely cause I would think of is incorrect use of "ne ." with a character variable.&lt;/P&gt;
&lt;P&gt;The MISSING function is there for a reason: Not missing(chg) would be a better approach and doesn't care if the variable CHG is character or numeric.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2024 17:35:38 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-02-23T17:35:38Z</dc:date>
    <item>
      <title>what is difference between (. ne chg) and (chg ne .)?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/what-is-difference-between-ne-chg-and-chg-ne/m-p/917613#M41072</link>
      <description>&lt;P&gt;Hello, I was wondering what is difference between&amp;nbsp;(. ne chg) and (chg ne .). as i am getting different results while i use this condition vise versa.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 17:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/what-is-difference-between-ne-chg-and-chg-ne/m-p/917613#M41072</guid>
      <dc:creator>yogita_patel</dc:creator>
      <dc:date>2024-02-23T17:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between (. ne chg) and (chg ne .)?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/what-is-difference-between-ne-chg-and-chg-ne/m-p/917618#M41073</link>
      <description>&lt;P&gt;You would have to provide example data and exact complete code to determine why you get different results.&lt;/P&gt;
&lt;P&gt;Possibly including the LOG where you get the different results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most likely cause I would think of is incorrect use of "ne ." with a character variable.&lt;/P&gt;
&lt;P&gt;The MISSING function is there for a reason: Not missing(chg) would be a better approach and doesn't care if the variable CHG is character or numeric.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 17:35:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/what-is-difference-between-ne-chg-and-chg-ne/m-p/917618#M41073</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-02-23T17:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between (. ne chg) and (chg ne .)?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/what-is-difference-between-ne-chg-and-chg-ne/m-p/917788#M41078</link>
      <description>&lt;P&gt;There should be no difference between those two logical expressions, so the issue must be related to either data or the way that you are using the expressions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of using each of the two expressions. You can see that they give the same logical result (0 or 1) for the inputs in this example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
input chg @@;
MissFist   = (. ne chg);
MissSecond = (chg ne .);
datalines;
-1 0 . 1 2 .A 
;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please post your example where you claim to obtain different results.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 11:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/what-is-difference-between-ne-chg-and-chg-ne/m-p/917788#M41078</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-02-25T11:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between (. ne chg) and (chg ne .)?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/what-is-difference-between-ne-chg-and-chg-ne/m-p/917810#M41079</link>
      <description>&lt;P&gt;No data, no answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without data... just an opinion. My opinion is: in SAS these are equivalent logical conditions which results the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 14:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/what-is-difference-between-ne-chg-and-chg-ne/m-p/917810#M41079</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-02-25T14:03:21Z</dc:date>
    </item>
  </channel>
</rss>

