title: Is there a function to check if an element exist in a macro variable?
body: <p>i have a table Z with two columns a(string) and b(integer)
  the elements in a change for every session so i crate a macro variable to each session !</p>
  
  <pre><code>%Let Fe='abc','def','mno';
  %let mylist = &amp;session_1. &amp;session_2. &amp;session_3.;
  
  %macro print_session_3(mylist) / minoperator ; 
  %let session_3=session_3;
      %IF  &amp;session_3. in &amp;mylist. %THEN %DO;
          proc sql;
              create table DATA.session_3 as
          select  a , b
          from source.Z
              where a in &amp;Fe.
          and b&gt;4
      ;quit;
      %end; 
  %mend;
  %print_session_3(&amp;mylist);
  </code></pre>
  
  <p>I hope that's clear enough for u , The error is :"Expecting a )"</p>