title: SAS: Case When then execute query
body: <p>I want to execute a query only when a condition is satisfied.
  The code I want to execute is:</p>
  
  <pre><code>proc sql NOPRINT OUTOBS=1;
  %CASE WHEN (&amp;_count_ &gt; 0) THEN
  DELETE FROM TABLE T
  WHERE T.Period = xxxxxx
  END;
  quit;
  </code></pre>