<?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: EQ and NE in IF expressions in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EQ-and-NE-in-IF-expressions/m-p/380#M148</link>
    <description>Russ,&lt;BR /&gt;
as with quite a few other posts here, there is a suggestion that another group should be opened. I have forwarded to the suggested SAS help center (nothing yet), so I will continue to ask for another group which will handle all these off-topic issues (suggestion of ETL or General SAS Base?).&lt;BR /&gt;
Jon&lt;BR /&gt;
&lt;BR /&gt;
And while I'm here could you add word SAS to the spell check dictionary?(!)</description>
    <pubDate>Fri, 07 Apr 2006 12:54:52 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-04-07T12:54:52Z</dc:date>
    <item>
      <title>EQ and NE in IF expressions</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EQ-and-NE-in-IF-expressions/m-p/377#M145</link>
      <description>Sorry if this is in the wrong forum, but I couldn't figure out where exactly this should go.&lt;BR /&gt;
&lt;BR /&gt;
I'm looking at another person's code, and in several places they appear to be confirming the existence of a variable using expressions like the following (within a macro):&lt;BR /&gt;
&lt;BR /&gt;
%If &amp;amp;var eq %then ...&lt;BR /&gt;
&lt;BR /&gt;
-OR-&lt;BR /&gt;
&lt;BR /&gt;
%If &amp;amp;var ne %then ...&lt;BR /&gt;
&lt;BR /&gt;
What's throwing me off is the interpretation of how the expression is evaluated.&lt;BR /&gt;
&lt;BR /&gt;
My assumption was that in the first expression, if the variable is not missing then the expression is true and the "then" will execute.   In the second example, if the variable is missing, then the expression is true and the "then" will also execute.&lt;BR /&gt;
&lt;BR /&gt;
Is this correct, or is this backwards?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Thu, 06 Apr 2006 14:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EQ-and-NE-in-IF-expressions/m-p/377#M145</guid>
      <dc:creator>DRamsey</dc:creator>
      <dc:date>2006-04-06T14:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: EQ and NE in IF expressions</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EQ-and-NE-in-IF-expressions/m-p/378#M146</link>
      <description>A good place to send this type of question would be to support@sas.com &lt;BR /&gt;
              &lt;BR /&gt;
This will open a track for you with SAS Technical Support.  I went ahead and opened a track for you and the number is us6378828.&lt;BR /&gt;
               &lt;BR /&gt;
We do not currently have a macro forum, the forum you have sent this question to is mainly for ODS, PRINT, REPORT and TABULATE.  &lt;BR /&gt;
              &lt;BR /&gt;
But to answer your question:&lt;BR /&gt;
          &lt;BR /&gt;
The statement %If &amp;amp;var eq %then is checking to see if the macro variable var contains a null value.         &lt;BR /&gt;
                                                 &lt;BR /&gt;
The statement %If &amp;amp;var ne %then is checking to see if the macro variable var is not equal to a null value.&lt;BR /&gt;
               &lt;BR /&gt;
If you have any further questions regarding this issue please send e-mail to support@sas.com with us6378828 as the subject and I will be happy to assist you.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,                                                   Russ Tyndall</description>
      <pubDate>Thu, 06 Apr 2006 16:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EQ-and-NE-in-IF-expressions/m-p/378#M146</guid>
      <dc:creator>Russ_SAS</dc:creator>
      <dc:date>2006-04-06T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: EQ and NE in IF expressions</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EQ-and-NE-in-IF-expressions/m-p/379#M147</link>
      <description>Thank you Russ.</description>
      <pubDate>Thu, 06 Apr 2006 16:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EQ-and-NE-in-IF-expressions/m-p/379#M147</guid>
      <dc:creator>DRamsey</dc:creator>
      <dc:date>2006-04-06T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: EQ and NE in IF expressions</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/EQ-and-NE-in-IF-expressions/m-p/380#M148</link>
      <description>Russ,&lt;BR /&gt;
as with quite a few other posts here, there is a suggestion that another group should be opened. I have forwarded to the suggested SAS help center (nothing yet), so I will continue to ask for another group which will handle all these off-topic issues (suggestion of ETL or General SAS Base?).&lt;BR /&gt;
Jon&lt;BR /&gt;
&lt;BR /&gt;
And while I'm here could you add word SAS to the spell check dictionary?(!)</description>
      <pubDate>Fri, 07 Apr 2006 12:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/EQ-and-NE-in-IF-expressions/m-p/380#M148</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-04-07T12:54:52Z</dc:date>
    </item>
  </channel>
</rss>

