SPSS Split File

The SPLIT FILE command causes subsequent commands to be run on subsets of the data separately.


Usage

split file by foo.
split file off.

The dataset must be sorted by the split variables.

If multiple split variables are specified, by default, SPSS will present split analyses together on a single table. Add the LAYERED option to explicitly allow this behavior, or add the SEPARATE option to instead present separate tables.

split file separate by foo bar baz.

Limitations

Up to 8 variables can be used as split variables. Every 8 characters of a string split variable count towards that limit. In other words, a string variable wider than 64 characters cannot be used as a split variable.


Data Model

The SPLIT FILE command executes immediately. Pending transformations are not executed and the active dataset is not read.


See also

PSPP manual for SPLIT FILE


CategoryRicottone

SPSS/SplitFile (last edited 2023-06-13 01:39:26 by DominicRicottone)