SpssClient Class (Python)

The SpssClient class is the top level class for the IBM® SPSS® Statistics Python scripting interface. From an SpssClient object you can:

  • Access the current data, syntax, or output document.
  • Open and access a saved data, syntax, or output document.
  • Create and access a new data, syntax, or output document.
  • Obtain a list of all open data, syntax, or output documents.
  • Run command syntax.
  • Get and set options available from Edit>Options in the user interface.
  • Get and set export options for exporting output.
  • Get values pertinent to an autoscript, such as the output item that triggered the autoscript.
  • Obtain information about configured instances of IBM SPSS Statistics Server and configure new instances.

The SpssClient object is always available to a script, but you must call SpssClient.StartClient to establish a connection to the IBM SPSS Statistics client before you can use any of the other methods in the class. See the topic Getting Started with Python Scripts for more information.