title: How to delete observations in SAS
body: <p>I'm working in SAS with a file with roughly 80000 observations, I've decided to keep 11 variables. </p>
  
  <p>I want to delete variables with a value exceeding 97. These are missing observations and I don't want to deal with that. </p>
  
  <p>I tried using the followin code (please don't judge):</p>
  
  <pre><code>  199  DATA radata;
  200       SET radata;
  201       IF ca10 &lt;= 97 THEN OUTPUT;
  202       IF ca10 &gt; 97 THEN DELETE;
  203  IF sex &lt;= 97 THEN OUTPUT;
  204       IF sex &gt; 97 THEN DELETE;
  205       IF sex &lt;= 97 THEN OUTPUT;
  206       IF sex &gt; 97 THEN DELETE;
  207       IF cityrur &lt;= 97 THEN OUTPUT;
  208       IF cityrur &gt; 97 THEN DELETE;
  209       IF edu3 &lt;= 97 THEN OUTPUT;
  210       IF edu3 &gt; 97 THEN DELETE;
  211       IF ca10 &lt;= 97 THEN OUTPUT;
  212       IF ca10 &gt; 97 THEN DELETE;
  213       IF hinc3rel &lt;= 97 THEN OUTPUT;
  214       IF hinc3rel &gt; 97 THEN DELETE;
  215       IF aa10i &lt;= 97 THEN OUTPUT;
  216       IF aa10i &gt; 97 THEN DELETE;
  217       IF ba10 &lt;= 97 THEN OUTPUT;
  218       IF ba10 &gt; 97 THEN DELETE;
  219       IF age &lt;= 97 THEN OUTPUT;
  220       IF age &gt; 97 THEN DELETE;
  221       IF ga10c &lt;= 97 THEN OUTPUT;
  222       IF ga10c &gt; 97 THEN DELETE;
  223       IF bc20 &lt;= 97 THEN OUTPUT;
  224       IF bc20 &gt; 97 THEN DELETE;
  225       IF ac10a &lt;= 97 THEN OUTPUT;
  226       IF ac10a &gt; 97 THEN DELETE;
  227       IF ga10j &lt;= 97 THEN OUTPUT;
  228       IF ga10j &gt; 97 THEN DELETE;
  229    RUN;
  </code></pre>
  
  <p>SAS however, responds not by subtracting observations but by <strong>adding more of them!</strong> </p>
  
  <p>Please help.....</p>