statisticsimportnode Properties

The Statistics File node reads data from the .sav or .zsav file format used by IBM® SPSS® Statistics, as well as cache files saved in IBM SPSS Modeler, which also use the same format.

Example

stream = modeler.script.stream()
statisticsimportnode = stream.createAt("statisticsimport", "SAV Import", 200, 200)
statisticsimportnode.setPropertyValue("full_filename", "C:/data/drug1n.sav")
statisticsimportnode.setPropertyValue("import_names", True)
statisticsimportnode.setPropertyValue("import_data", True)
Table 1. statisticsimportnode properties
statisticsimportnode properties Data type Property description
full_filename string The complete filename, including path.
password string The password. The password parameter must be set before the file_encrypted parameter.
file_encrypted flag Whether or not the file is password protected.
import_names NamesAndLabels LabelsAsNames Method for handling variable names and labels.
import_data DataAndLabels LabelsAsData Method for handling values and labels.
use_field_format_for_storage Boolean Specifies whether to use IBM SPSS Statistics field format information when importing.