title: Obtaining the quantity and proportion in SPSS 21
body: <p>I have the data in a sav file</p>
  
  <pre><code>CODE  |  QUANTITY
  ------|----------
  A     |  1
  B     |  4
  C     |  1
  F     |  3
  B     |  3
  D     |  12
  D     |  5
  </code></pre>
  
  <p>I need to obtain the quantity of codes which have a quantity &lt;= 3 and to obtain the proportion in a percentage with respect to the total number and present a result like this</p>
  
  <pre><code>&lt;= 3  |  PERCENTAGE
  ------|----------
  4     |  57 %
  </code></pre>
  
  <p>All of this using SPSS syntax.</p>