title: Conditionally terminate SAS
body: <p>I am trying to stop the processing of a SAS program if a certain condition has been met. I have a macro variable created and if that variable is > 0.5 then I want a hard stop of the program. </p>
  
  <p>Current program looks like</p>
  
  <pre><code>data a1;
  set Server.a2;
  run;
  
  %macro1(a1);
  
  %macro2(_t1); /* _t1 generated from %macro1.
  
  data _null_;
  if %stopit(_t2) &gt; 0.5 then `?????`; /* _t2 generated from %macro2.
  
  run;
  
  %macro3;
  
  %macro4;
  </code></pre>
  
  <p>If <code>%macro(_t2) &gt; 0.5</code>, I want to stop of whole program without running the rest (%macro3 and %macro4)</p>