title: Can i use macro in the data step in sas?
body: <p>I tried to use macro in data step to exclude rows that does not match the conditions, but it won't work. here is my code</p>
  <pre><code>%macro bbb(a);
  data grade&amp;a.;
  set grade&amp;a.;
  if ID='schoolgrade&amp;g.score1' then output;
  run;
  %mend;
  %match(4)
  </code></pre>
  <p>so, i cannot use macro in the if statement? what else can i do?
  Thanks!</p>