title: Deleting all but a few Variables from a Dataset in SPSS
body: <p>I have have a data set with about 1000 variables. But I want to work on a dataset only with a small subset of these Variables. What are convenient ways to delete all the non needed variables?</p>
  
  <p>Using the <code>DELETE VARIABLE</code> command such as</p>
  
  <pre><code>DELETE VARIABLES var1 TO var13 var 15 var 17 TO var var35 ...
  </code></pre>
  
  <p>would be quite annoying and error-prone.</p>