Martin, here's an easy way to do variable + case selection in one step:
GET FILE = "A.sav".
COMPUTE select = (x = 1) /*use your filter definition in parentheses instead of "x=1"*/.
FILTER BY select.
SAVE OUTFILE="B.sav"
/UNSELECTED=DELETE
/KEEP = x y z /*use your variables to be kept*/.
GET FILE='B.sav'.
Good luck,
Mario
Von: Martin Cernvall <[hidden email]>
An: [hidden email]
Gesendet: Freitag, den 19. März 2010, 13:50:49 Uhr
Betreff: Copy and insert variable between datasets
Hi,
I have a slight problem which probably is a very basic question but I hope someone can help me with it:
I have one original dataset (A) from which I have selected cases and exported them to a new dataset (B). Now I would like to copy one variable from the original set (A) and paste it in the new one (B). How do I do it so I get just the selected cases that matches those in the new dataset? I have tried to select the cases of interest in the original set, copy the variable and paste in the new set, but I also get the unselected cases.
Thanks in advance for any advice
Martin
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
Mario Giesel
Munich, Germany