spss.SetActive Function (Python)

spss.SetActive(datasetObj). Sets the specified dataset as the active one. The argument must be an instance of the Dataset class. The SetActive function can only be used within a data step. Data steps are initiated with the spss.StartDataStep function and are used to create and manage multiple datasets.

Example

# Set a newly created dataset to be active
spss.StartDataStep()
ds1 = spss.Dataset(name=None)
spss.SetActive(ds1)
spss.EndDataStep()