|
Hi,
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 |
|
Hello Jan,
You must type the full path: For instance: "C:\Myfiles\ThisProject\ThatSubmap\Myfile.sav". Alternatively: what I usually do is start each syntax job with the command: CD "X:\MyLocation". Of course you change it to the correct data location. You can now GET and SAVE to that location without adding the full pathname (There is an alternative by using FILE HANDLE). Actually my CD (Change Directory) command is usually followed by: DATASET CLOSE ALL. Because I seldom need more than one data file at the same time. Good luck Antoon -----Oorspronkelijk bericht----- Van: SPSSX(r) Discussion [mailto:[hidden email]] Namens J McClure Verzonden: zondag 22 augustus 2010 19:09 Aan: [hidden email] Onderwerp: Syntax for outfile Hi, 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 |
| Free forum by Nabble | Edit this page |
