LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 1998)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 23 Dec 1998 09:57:40 -0600
Reply-To:   "Peck, Jon" <peck@SPSS.COM>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From:   "Peck, Jon" <peck@SPSS.COM>
Subject:   Re: save a selection

If you really want to remove some records, this will work, but you can also create subset definitions that can be retained permanently and easily reused. You couldn't do this with /pc+.

Create a filter, either through the Data/Select Cases dialog or with a compute statement. Then you can use the filter command or the use filter setting in the Select Cases dialog to reestablish any particular definition.

Note that Select Cases gives you the choice of either filtering or deleting the excluded cases.

-----Original Message----- From: Hector E. Maletta [mailto:hmaletta@OVERNET.COM.AR] Sent: Tuesday, December 22, 1998 9:35 PM To: SPSSX-L@UGA.CC.UGA.EDU Subject: Re: save a selection

"P.Bergmans & L.Sontag" wrote:

> Hi, > Can anyone tell me how I can save a selection of records in a new .sav file. > Deleting all records manually is so primitive. In SPSSPC this is no problem. > Thanks, > Paul

Of course, just as you did in old SPSS/PC times, just SELECT cases and SAVE them at will. For instance:

GET FILE 'anyfile.sav'. SELECT IF (criterion=1). SAVE OUTFILE 'selected-1.sav'.

GET FILE 'anyfile.sav'. SELECT IF (criterion=2). SAVE OUTFILE 'selected-2.sav'.

Just be careful with your working file after selection, since it only contains the selected cases. Do not save it with the same old name (e.g. 'anyfile.sav') lest you lose the unselected cases.

Hector Maletta Universidad del Salvador Buenos Aires, Argentina


Back to: Top of message | Previous page | Main SPSSX-L page