|
Hello all,
Although the possibility to open more files the same time is there since a
couple of versions ago, I have so far avoided it, because of some problems
(mainly caused by my ignorance, I'm sure).
I have a file called "computes.sps" wich starts with:
GET FILE "myfile.sav".
DATASET NAME= "myset".
COMPUTE varA = 2.
I have another file called "output.sps" , wich reads:
Cd "S:\".
Include "computes.sps".
Freq varA.
Now I start spss and when prompted for a file to open I choose output.sps.
The data window now shows in its title bar: untitled1 [dataset0].
Next I run my output.sps.Dataset0 (and untitled1) are closed and the title
bar reads: myfile.sav [myset]
So far so good, but now I make a big mess of it: (one thing I'm very good
at) so I want to "revert back to saved", but if I include my computes a
second time, the filename changes in "untitled2". There is also a warning in
the output window that "the active dataset wil replace the existing dataset
myset", but that is exactly what I want. To get my filename back I have to
run /include the computes file a third time.
Now how can I let SPSS use the real filename instead of "untitled", without
reopening it this third time.
Thanks in advance
Antoon Smulders
|