Open and Save Syntax Commands

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

Open and Save Syntax Commands

Kathryn Modisette
Hello List-servers,
 
I am using SPSS 18 & 19. I need to know if there is a way to open a new syntax window and save it using syntax commands, rather than the drop down menus.  So I would like to do something like this, but for a syntax file instead of an output file: 
 
OUTPUT NEW.
OUTPUT SAVE OUTFILE='P:\all_work\info\Datasets\Edits Based on Frequencies.spv'.
 
Is this possible?
 
Thanks,
Kat
 


PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.
Reply | Threaded
Open this post in threaded view
|

Re: Open and Save Syntax Commands

John F Hall
Not quite clear what you want or why you would want to do this.  What's wrong with using the GUI for
 
file > new > syntax
 
. . . and then when you've finished, save the synatx file by:
 
file > save as 
~~~~~ *.sps
 
If your output file contains errors, all you need to do is close it without saving it and then run SPSS again and use
 
file > save as
~~~~*.spv
or
~~~~~*.spv.
 
If your syntax makes changes to the data editor, you may also need to save that as well by:
 
file > save as
 
~~~~ *.sav
 
but it's best to use a different name (possibly by including an incremental number eg data3.sav if you've been using daa2.sav)
 
There are some fully worked examples in the SPSS tutorials (all syntax based) on my website.
 
See especially 1.3.3.6 and 1.3.3.7 in Block 1 and section 2.1 in Block 2
 
 
----- Original Message -----
Sent: Wednesday, January 05, 2011 5:50 PM
Subject: Open and Save Syntax Commands

Hello List-servers,
 
I am using SPSS 18 & 19. I need to know if there is a way to open a new syntax window and save it using syntax commands, rather than the drop down menus.  So I would like to do something like this, but for a syntax file instead of an output file: 
 
OUTPUT NEW.
OUTPUT SAVE OUTFILE='P:\all_work\info\Datasets\Edits Based on Frequencies.spv'.
 
Is this possible?
 
Thanks,
Kat
 


PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.
Reply | Threaded
Open this post in threaded view
|

Re: Open and Save Syntax Commands

Bruce Weaver
Administrator
In reply to this post by Kathryn Modisette
Kathryn Modisette wrote
Hello List-servers,

I am using SPSS 18 & 19. I need to know if there is a way to open a new syntax window and save it using syntax commands, rather than the drop down menus.  So I would like to do something like this, but for a syntax file instead of an output file:

OUTPUT NEW.
OUTPUT SAVE OUTFILE='P:\all_work\info\Datasets\Edits Based on Frequencies.spv'.

Is this possible?

Thanks,
Kat
Hello Kat.  I think you need to provide a bit more detail.  How do you intend to write the syntax in that file, for example?  If it is by means of other syntax commands, perhaps you can achieve what you want via WRITE OUTFILE.  

--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).