title: Using Python to run SPSS analyses and retrieve values (Python -> Spss -> Python)
body: <p>I have spent a few days orientating myself to the spss and spssaux modules - which are great resources. Though I feel like I am missing some conceptual understanding because I can do basic things like retrieve value labels via spssaux.getValueLabels or spss.DataStep()</p>
  
  <pre><code>print spssaux.getValueLabels(2)
  &gt;&gt;&gt; {u'1': u'Neutral', u'0': u'Disagree', u'2': u'Agree'}
  </code></pre>
  
  <p>or </p>
  
  <pre><code>dataset = spssDataset()
  variable_list = dataset.varList
  print variable_list[2].valueLabels.data
  &gt;&gt;&gt; {0.0: u'Disagree', 1.0: u'Neutral', 2.0: u'Agree'}
  </code></pre>
  
  <p>However, I'm struggling to figure out how to retrieve the actual data values.</p>
  
  <p>I'm also having trouble figuring out how to retrieve the values from analyses and to use them in Python. At the moment I have been running analyses using spss.Submit(), but I suspect this is limited in terms of feeding values back to Python (i.e., feeding back means and significance values to Python, which can be then used in Python to make decisions).</p>
  
  <p>If you have any suggestions for ideas, please note that I need to be operating within the Python environment as this data retrieval/analyses is incorporated into a broader Python program.</p>
  
  <p>Thanks!</p>