title: No matching %macro error in sas
body: <p>When I ran the following code, three errors show in the log:
  ERROR: No matching %MACRO statement for this %MEND statement.
  ERROR: The macro NO is still executing and cannot be redefined.
  ERROR: A dummy macro will be compiled.
  I was wondering if it is the black hole problem. But I can not find out any syntax error. Can anyone tell me what's the problem? thank you!</p>
  
  <pre><code>%Macro table(x);
    data m_&amp;x; set A (where=(seqno=0));
      LENGTH DD_&amp;x 8;
    run;
  %mend table;
  
  data _null_;
    Do u=1 to 17;
      call execute ('%nrstr(%table('||u||'))');
    end;
  run;
  
  
  %macro sumup_DD (x, Startdate, Enddate,i);
    data B; set A (where=(seqno=&amp;i));
      DD_&amp;x=sum(of &amp;Startdate-&amp;Enddate);
    run;
    proc append base=m_&amp;x data=B;
    run;
  %mend sumup_DD;
  
  %macro no;
    %do n=1 %to 17;
      data _null_; set A;
        call execute('%nrstr(%sumup_DD ('||&amp;n||','||rr&amp;n||','||rr%eval(&amp;n+1)||','||seqno||'))');
      run;
    %end;
  %mend no; 
  %no;
  </code></pre>