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 (October 2002)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 30 Oct 2002 17:03:56 +1100
Reply-To:     Frank Milthorpe <Frank.Milthorpe@TRANSPORT.NSW.GOV.AU>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Frank Milthorpe <Frank.Milthorpe@TRANSPORT.NSW.GOV.AU>
Subject:      Re: delete variables within syntax?
Content-Type: text/plain; charset=US-ASCII

An even easier method is available.

GET FILE = 'xxx.sav' / KEEP = var1 var2 / MAP. Alternatively you can use DROP to eliminate some variables, rather then specifying which ones to KEEP.

The following solution from <> ADD FILES FILE = * /DROP = var1 var11 var3. EXECUTE. still requires the full original file to be read in. In practice it probably doesn't matter, however if you had 10,000 variables and only wanted to keep 20 it should be faster to read in only the ones that you want.

I hope this helps.


Frank Milthorpe ...

--- Frank Milthorpe, Transport Modelling Manager Transport Data Centre, NSW Department of Transport GPO Box 1620, Sydney NSW 2001, AUSTRALIA Ph: +61 2 9268 2937 Fax: +61 2 9268 2853 Email:


This message (including any attachments) is intended solely for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of the NSW Department of Transport. The whole or parts of this e-mail may be subject to copyright of the Department or third parties. You should only re-transmit, distribute or use the material for commercial purposes if you are authorised to do so.

Visit us at: ________________________________________________________________________________

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