<?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: Error in IF OR in Macro (%IF %OR %THEN %DO) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-in-IF-OR-in-Macro-IF-OR-THEN-DO/m-p/449450#M113105</link>
    <description>&lt;P&gt;Oh, thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 18:40:32 GMT</pubDate>
    <dc:creator>hhchenfx</dc:creator>
    <dc:date>2018-03-28T18:40:32Z</dc:date>
    <item>
      <title>Error in IF OR in Macro (%IF %OR %THEN %DO)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-IF-OR-in-Macro-IF-OR-THEN-DO/m-p/449447#M113102</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I got this line wrong but not sure why.&lt;/P&gt;
&lt;P&gt;Can you help me?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;HHCFX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;		%if %sysfunc(MOD(&amp;amp;X,6))=0 &lt;FONT color="#FF0000"&gt;%or&lt;/FONT&gt; &amp;amp;X=&amp;amp;outer1_nobs %then %do;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;WARNING: Apparent invocation of macro &lt;FONT color="#FF0000"&gt;OR&lt;/FONT&gt; not resolved.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 18:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-IF-OR-in-Macro-IF-OR-THEN-DO/m-p/449447#M113102</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2018-03-28T18:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error in IF OR in Macro (%IF %OR %THEN %DO)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-IF-OR-in-Macro-IF-OR-THEN-DO/m-p/449448#M113103</link>
      <description>&lt;P&gt;it is just &lt;STRONG&gt;or&lt;/STRONG&gt; and not %or like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;		&lt;SPAN class="token macrostatement"&gt;%if&lt;/SPAN&gt; &lt;SPAN class="token macrostatement"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;MOD&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;X&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;6&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt; &lt;SPAN class="token macroname"&gt;or&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;X&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;outer1_nobs &lt;SPAN class="token macrostatement"&gt;%then&lt;/SPAN&gt; &lt;SPAN class="token macrostatement"&gt;%do&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 18:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-IF-OR-in-Macro-IF-OR-THEN-DO/m-p/449448#M113103</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-03-28T18:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in IF OR in Macro (%IF %OR %THEN %DO)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-IF-OR-in-Macro-IF-OR-THEN-DO/m-p/449450#M113105</link>
      <description>&lt;P&gt;Oh, thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 18:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-IF-OR-in-Macro-IF-OR-THEN-DO/m-p/449450#M113105</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2018-03-28T18:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in IF OR in Macro (%IF %OR %THEN %DO)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-IF-OR-in-Macro-IF-OR-THEN-DO/m-p/449453#M113107</link>
      <description>&lt;P&gt;Basically&amp;nbsp; macro language still uses the same operators as does the sas language. However the statements, functions do have a prefix % to trigger the macro processor before the processed statements are sent to the compiler for execution.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 18:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-IF-OR-in-Macro-IF-OR-THEN-DO/m-p/449453#M113107</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-03-28T18:42:35Z</dc:date>
    </item>
  </channel>
</rss>

