<?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 does 'ne' mean in this context? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124228#M25441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like to use&lt;/P&gt;&lt;P&gt;%if &amp;amp;city ne %str() %then %do; &lt;/P&gt;&lt;P&gt;instead of leaving a blank space...just because it is more obvious to me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2012 12:38:19 GMT</pubDate>
    <dc:creator>Jay_TxOAG</dc:creator>
    <dc:date>2012-05-25T12:38:19Z</dc:date>
    <item>
      <title>what does 'ne' mean in this context?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124222#M25435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, basic question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;city &lt;STRONG&gt;ne 'New York'&lt;/STRONG&gt; %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * do stuff here&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but not this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;city &lt;STRONG&gt;ne&lt;/STRONG&gt; %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * do stuff here&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the 'ne' mean in the second statement?&amp;nbsp; Is it comparing &amp;amp;city ne to...what exactly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 20:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124222#M25435</guid>
      <dc:creator>mindmeld</dc:creator>
      <dc:date>2012-05-22T20:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: what does 'ne' mean in this context?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124223#M25436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some one may be trying to get if the city is not blank. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 21:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124223#M25436</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-05-22T21:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: what does 'ne' mean in this context?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124224#M25437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it compares it to a missing value for the macro variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I %let city = something,&lt;/P&gt;&lt;P&gt;it triggers that '&amp;amp;city ne is true'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when&lt;/P&gt;&lt;P&gt;%let city=;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You get '&amp;amp;city ne is false'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it must test against an empty macro variable by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind of a cool behavior, I only learned it from experimenting with your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 21:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124224#M25437</guid>
      <dc:creator>Spacetime</dc:creator>
      <dc:date>2012-05-22T21:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: what does 'ne' mean in this context?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124225#M25438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems to be the case.&amp;nbsp; So is &lt;STRONG&gt;&amp;amp;city ne&amp;nbsp; &lt;/STRONG&gt;equivalent to:&amp;nbsp; &lt;STRONG&gt;&amp;amp;city ne .&amp;nbsp; &lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 21:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124225#M25438</guid>
      <dc:creator>mindmeld</dc:creator>
      <dc:date>2012-05-22T21:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: what does 'ne' mean in this context?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124226#M25439</link>
      <description>&lt;P&gt;Nope.&amp;nbsp; The &amp;amp;city ne . would be true whenever the macro variable does not resolve to exactly = .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &amp;amp;city ne would be true whenever the macro variable does not resolve to exactly =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (nothing at all).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that macro variables are literal text strings, so when it checks for ne and nothing after, it is literally checking for nothing in the string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I think it compares it to a missing value for the macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when I %let city = something,&lt;/P&gt;
&lt;P&gt;it triggers that '&amp;amp;city ne is true'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when&lt;/P&gt;
&lt;P&gt;%let city=;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You get '&amp;amp;city ne is false'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it must test against an empty macro variable by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind of a cool behavior, I only learned it from experimenting with your code.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 04 Oct 2018 16:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124226#M25439</guid>
      <dc:creator>Spacetime</dc:creator>
      <dc:date>2018-10-04T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: what does 'ne' mean in this context?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124227#M25440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NE is the comparision operator and it means NOT EQUAL.&amp;nbsp; In both expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 11:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124227#M25440</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-05-23T11:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: what does 'ne' mean in this context?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124228#M25441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like to use&lt;/P&gt;&lt;P&gt;%if &amp;amp;city ne %str() %then %do; &lt;/P&gt;&lt;P&gt;instead of leaving a blank space...just because it is more obvious to me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 12:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-ne-mean-in-this-context/m-p/124228#M25441</guid>
      <dc:creator>Jay_TxOAG</dc:creator>
      <dc:date>2012-05-25T12:38:19Z</dc:date>
    </item>
  </channel>
</rss>

