SAMPLE

SAMPLE permanently draws a random sample of cases for processing in all subsequent procedures. For a temporary sample, use a TEMPORARY command before SAMPLE.

SAMPLE {decimal value}
       {n FROM m     }

This command does not read the active dataset. It is stored, pending execution with the next command that reads the dataset. See the topic Command Order for more information.

Syntax for the SAMPLE command can be generated from the Select cases dialog by selecting Random sample of cases and selecting Deleted for unselected cases.

Example

SAMPLE .25.