spss.StartDataStep Function (Python)
spss.StartDataStep(). Signals the beginning of a data step. A data step allows you to create and manage multiple datasets.
- You cannot use the following classes and functions
within a data step: the
Cursor
class, theBasePivotTable
class, theBaseProcedure
class, theTextBlock
class, theStartProcedure
function, theSubmit
function, and theStartDataStep
function (data steps cannot be nested). - The
StartDataStep
function cannot be used if there are pending transformations. If you need to access case data in the presence of pending transformations, use theCursor
class. - To end a data step, use the
EndDataStep
function.
For an example of using StartDataStep
, see the topic on the Dataset class.
To avoid the need to check for pending transformations before starting a data step, use the DataStep class. It implicitly starts and ends a data step and executes any pending transformations.