<?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: Multiple AND/OR conditions in %LET statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-AND-OR-conditions-in-LET-statement/m-p/339815#M77559</link>
    <description>&lt;P&gt;You probably can, but would need a few conditions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The MINOPERATOR option must be set properly to permit macro language to use the IN operator&lt;/LI&gt;
&lt;LI&gt;INDICATOR must be replaced by an actual set of characters.&amp;nbsp; It cannot refer to a DATA step variable.&lt;/LI&gt;
&lt;LI&gt;%EVAL would have to be applied to the expression to the right of the equal sign.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I'm assuming it would work then, but haven't tested it.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 22:20:30 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-03-09T22:20:30Z</dc:date>
    <item>
      <title>Multiple AND/OR conditions in %LET statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-AND-OR-conditions-in-LET-statement/m-p/339805#M77558</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi SAS Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we use like this conditions in %LET stements which i can reference later?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;%LET cond =(Indicaor in (&amp;amp;MOD1 ,&amp;amp;MOD2) OR indicator in (&amp;amp;MOD1,&amp;amp;MOD2) OR Indicator&amp;nbsp;in (&amp;amp;MOD1,&amp;amp;MOD2));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 21:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-AND-OR-conditions-in-LET-statement/m-p/339805#M77558</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2017-03-09T21:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple AND/OR conditions in %LET statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-AND-OR-conditions-in-LET-statement/m-p/339815#M77559</link>
      <description>&lt;P&gt;You probably can, but would need a few conditions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The MINOPERATOR option must be set properly to permit macro language to use the IN operator&lt;/LI&gt;
&lt;LI&gt;INDICATOR must be replaced by an actual set of characters.&amp;nbsp; It cannot refer to a DATA step variable.&lt;/LI&gt;
&lt;LI&gt;%EVAL would have to be applied to the expression to the right of the equal sign.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I'm assuming it would work then, but haven't tested it.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 22:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-AND-OR-conditions-in-LET-statement/m-p/339815#M77559</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-09T22:20:30Z</dc:date>
    </item>
  </channel>
</rss>

