Random sample file

#1
Hi

I want to select a random sample from a larger sample in SPSS.
I am familiar with:
Select Cases-------> Random Sample of Cases….
Using this procedure, some cases are crossed out and the analyses are performed on the selected cases. However, I want the selected cases in a separate SPSS file. How can I export the selected cases and their data into a new file?

Thanks for your help
Anthony
 

Karabiner

TS Contributor
#2
You save the file using a different name for it. Then you select and delete all cases
with value "1" in the existing slection variable. Then you save the file again.

With kind regards

Karabiner
 
#3
Thanks Karabiner,
I saved the file and saw that a new variable named 'filter_$' is created. The selected cases have a value of 1 and deleted cases 0.
Thanks a million.
Anthony