spss.StartSPSS Function (Python)
spss.StartSPSS(hide, show, notes, nfc, nl). Starts a session of IBM® SPSS® Statistics.
- This function starts a session of IBM SPSS Statistics, for use when driving IBM SPSS Statistics from Python. The function has no effect if a session is already running. Note: The spss.Submit function automatically starts a session of IBM SPSS Statistics.
- This function has no effect when running Python from IBM SPSS Statistics (within program blocks defined by BEGIN PROGRAM-END PROGRAM).
- The optional argument hide specifies types of output items that are omitted from generated output. The value is one or more characters that specify the output types to hide. Do not include spaces when multiple types are specified. For example, to hide warnings and text output, specify hide='WT'. See the table that follows for the allowed values.
- The optional argument show specifies types of output items that are included in generated output. The value is one or more characters that specify the output types to show. Do not include spaces when multiple types are specified. For example, to show notes tables and output titles, specify show='NE'. See the table that follows for the allowed values.
- The optional argument notes specifies whether notes tables are included in generated output. The value is a Boolean and the default is False, which specifies that notes tables are not included. Setting notes=True is equivalent to setting show='N'.
- The optional argument nfc specifies whether footnotes and captions are included in the generated output for tables. The value is a Boolean and the default is True, which specifies that footnotes and captions are included in the output.
- The optional argument nl specifies whether all layers of a multi-layer table are included in the generated output. The value is a Boolean and the default is True, which specifies that all layers are included in the output. The value False specifies that only the first layer is included in the output.
Output Item | Description | Value for show or hide argument | Displayed by default? |
---|---|---|---|
Warnings | Warning messages that occurred when the procedure was run | W | Yes |
Note | Information about how the output was created | N | No |
Output title | Title connected to the output of a procedure | E | No |
Page title | Title connected to a page | G | No |
Pivot table | Tabular statistical output | P | Yes |
Text output | Output not displayed in pivot tables | T | Yes |