pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NEW FILE


From: John Darrington
Subject: Re: NEW FILE
Date: Sat, 6 Jan 2007 13:09:24 +0900
User-agent: Mutt/1.5.13 (2006-08-11)

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:

  free_case_source (ds->proc_source);
  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.

J'



-- 
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.


Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]