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 <jim.marks@lodgenet.com>
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.
Regards
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: frank.milthorpe@transport.nsw.gov.au
________________________________________________________________________________
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:
www.transport.nsw.gov.au www.131500.com.au
________________________________________________________________________________