Ignore Revised question: Syntax for outfile

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Ignore Revised question: Syntax for outfile

J McClure
My apologies to the list. I need to study this situation more before asking questions.
Thanks, Jan

-------- Original Message --------
Subject: Revised question: Syntax for outfile
Date: Sun, 22 Aug 2010 10:31:40 -0700
From: J McClure [hidden email]
To: [hidden email]


Hi,
**Additional problem: my new file does not contain the variable N_Break.
(I got the code from
http://www.ats.ucla.edu/stat/spss/faq/nummiss_spss.htm) Thanks.

What I want: a new file with just the variables listed in the code below
that is located where I want it, and opens at the end of the program so
that I can see the results.
What I tried: I used this syntax but the outfile was saved in a location
I don't want.
AGGREGATE
  /OUTFILE='AGGRTest.SAV'
  /BREAK= EmpStat1    MaritStat1   HousStat1   RaceEth11  RaceEth21
EdLevel1  Rx_source1  Trans_yn1
  /N_BREAK=N.
I tried changing the default location using edit->options->specified
folder->  and change the location for both data files and other files but
that didn't work so I added the following line
Save OUTFILE="C:\Jan\PhD\PhD_analysis\VStudy1DT/AGGRTest.SAV".
Now it saves AGGRTest.SAV over my original datafile (with all of my 150
original variables) and adds the variables listed above to the end of
the file. It does open automatically when I run the program.
Thanks,
Jan

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Ignore Revised question: Syntax for outfile

Rick Oliver-3
It's a bit confusing, but folder settings in Edit/Options have no effect on file specifications in command syntax. In command syntax, you should specify an explicit location where you want files to be saved. You can do this at the individual command level or globally with the CD command. And if the file name you specify already exists in the specified location, then the original file will be overwritten.

-----"SPSSX(r) Discussion" [hidden email] wrote: -----

To: [hidden email]
From: J McClure [hidden email]
Sent by: "SPSSX(r) Discussion" [hidden email]
Date: 08/22/2010 12:36PM
Subject: Ignore Revised question: Syntax for outfile

My apologies to the list. I need to study this situation more before asking questions.
Thanks, Jan

-------- Original Message --------
Subject: Revised question: Syntax for outfile
Date: Sun, 22 Aug 2010 10:31:40 -0700
From: J McClure [hidden email]
To: [hidden email]


Hi,
**Additional problem: my new file does not contain the variable N_Break.
(I got the code from
http://www.ats.ucla.edu/stat/spss/faq/nummiss_spss.htm) Thanks.

What I want: a new file with just the variables listed in the code below
that is located where I want it, and opens at the end of the program so
that I can see the results.
What I tried: I used this syntax but the outfile was saved in a location
I don't want.
AGGREGATE
  /OUTFILE='AGGRTest.SAV'
  /BREAK= EmpStat1    MaritStat1   HousStat1   RaceEth11  RaceEth21
EdLevel1  Rx_source1  Trans_yn1
  /N_BREAK=N.
I tried changing the default location using edit->options->specified
folder->  and change the location for both data files and other files but
that didn't work so I added the following line
Save OUTFILE="C:\Jan\PhD\PhD_analysis\VStudy1DT/AGGRTest.SAV".
Now it saves AGGRTest.SAV over my original datafile (with all of my 150
original variables) and adds the variables listed above to the end of
the file. It does open automatically when I run the program.
Thanks,
Jan

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

====================To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD