[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NEW FILE
Re: NEW FILE
Sat, 6 Jan 2007 13:09:24 +0900
On Fri, Jan 05, 2007 at 03:57:36PM -0800, Ben Pfaff wrote:
We had a discussion about the necessity for NEW FILE recently,
although for some reason I'm having trouble finding the thread.
Anyhow, I found this text in the SPSS documentation for NEW FILE:
When you build an active dataset with GET, DATA LIST, or
other file-definition commands (such as ADD FILES or MATCH
FILES), the active dataset is automatically replaced. It is
not necessary to specify NEW FILE.
Interesting. This seems to contradict some of my recent experiences
with spss. I've have to look into it further.
It implies elsewhere that NEW FILE is only necessary for use with
INPUT PROGRAM. So I doubt we should make changes in that area.
Regardless of this, there are some problems with the way NEW FILE
currently behaves in respect to the GUI. Currently, it calls
discard_variables in src/data/procedure.c which in turn does:
ds->proc_source = NULL;
Having proc_source as NULL, is something the GUI doesn't expect.
As previously discussed, there is always a source, albeit a possibly
empty one. This is conflicting with the current GUI code, such that
if it runs a syntax whose last command is NEW FILE, then it finds
itself in a state where it refuses to parse any new commands. There
are a number of possible solutions to this problem, but I haven't
decided which is the best one yet.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
Description: Digital signature
- NEW FILE, Ben Pfaff, 2007/01/05
- Re: NEW FILE,
John Darrington <=