Moving Filtered Data to a new file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Moving Filtered Data to a new file

jimjohn
hi guys i just have a quick question. when i go to Select Cases and filter out my data, theres an option to save filtered data to another database. I tried it, but ti says there is no such filename that exists. So I'm guessing I would have to createa nother SPSS data file with each of those variable specifications? if so, is there any way I can copy the variables from a given data file and then paste them into a new one. thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Moving Filtered Data to a new file

Marks, Jim
I used "copy selected cases to a new dataset", and clicked on "paste".
This is the syntax:

DATASET COPY sep.
DATASET ACTIVATE sep.
FILTER OFF.
USE ALL.
SELECT IF(MONTH = 9).
DATASET ACTIVATE samestore.
EXECUTE .

This created a new dataset just with September data, as promised. Not
sure why it takes you back to the original dataset though.

You would need to activate the new dataset with just the filtered
cases-- either by clicking or by syntax (DATASET ACTIVATE sep).

--jim

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
jimjohn
Sent: Thursday, February 07, 2008 12:33 PM
To: [hidden email]
Subject: Moving Filtered Data to a new file

hi guys i just have a quick question. when i go to Select Cases and
filter out my data, theres an option to save filtered data to another
database. I tried it, but ti says there is no such filename that exists.
So I'm guessing I would have to createa nother SPSS data file with each
of those variable specifications? if so, is there any way I can copy the
variables from a given data file and then paste them into a new one.
thanks!
--
View this message in context:
http://www.nabble.com/Moving-Filtered-Data-to-a-new-file-tp15340162p1534
0162.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command SIGNOFF SPSSX-L For a list
of commands to manage subscriptions, send the command INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD