I think you'll need a script to do that. You might find something
useful here:
http://www.spsstools.net/SampleScripts.htm#OutputDoc
--
Bruce Weaver
bwe...@lakeheadu.ca
www.angelfire.com/wv/bwhomedir
> Is there are way, and if so how, to use the syntax file and create a
> command that will save the output file?
As far as I know there's no command to do that. Bruce's solution (it is
script 13 or 14 in the OutputDocument paragraph) will surely help you
to save the output in an SPO format.
If you want to continue your work using the results in a datafile you
have to use the OMS...OMSEND command. It converts outputs into SPSS
data file format. It will be a little bit difficult when you use the
command for the first time, but with the help of the command syntax
reference guide you will make your way through.
Regards
Ulli
> Is there are way, and if so how, to use the syntax file and create a
> command that will save the output file?
As far as I know there's no command to do that. Bruce's solution (it is
> Is there are way, and if so how, to use the syntax file and create a
> command that will save the output file?
As far as I know there's no command to do that. Bruce's solution (it is
SCRIPT file="P:\SPSS\CSS\ROLLUP\SaveClose.sbs"
/("P:\SPSS\CSS\ROLLUP\2006\1Q\RMDS\RMDS.spo") .
After the script runs, a new output window is opened and the named
output file is closed.
You can find SaveClose.sps on Raynald Levesque's site
http://www.spsstools.net/ or I will send it to you off-Group.
I'm learning Python, but haven't discovered or explored a way to do
this with Python, but it ain't broke, so I'm not tryin' to fix it.
Cheers,
King Douglas
Americna Airlines Customer Research
OUTPUT NEW, OUTPUT NAME, OUTPUT ACTIVATE, OUTPUT OPEN, OUTPUT SAVE,
OUTPUT CLOSE) provide the ability to programmatically manage one or
many output documents. These functions allow you to:
Save an output document through syntax.
Programmatically partition output into separate output documents (for
example, results for males in one output document and results for
females in a separate one).
Work with multiple open output documents in a given session,
selectively appending new results to the appropriate document.
If you have SPSS 14 with programmability installed, you can manage your
spo files with functions in the viewer module.
Be aware that the solution King Douglas posted works with the important
caveat
"I append to the end of a process."
Because the script command causes the script to run asynchronously, you
cannot reliably use this method to save output at intermediate points
in the execution of the job. It is reliable at the end of your job,
however.
The new syntax and the viewer module approaches do not have that
problem.
HTH,
Jon Peck
SPSS
>
> Be aware that the solution King Douglas posted works with the important
> caveat
> "I append to the end of a process."
>
> Because the script command causes the script to run asynchronously, you
> cannot reliably use this method to save output at intermediate points
> in the execution of the job. It is reliable at the end of your job,
> however.
However #2. However, I've had no problem running this script to
perform intermediate saves so long as the next SPSS data process take
longer than it takes the script to save the output file, which is not
long at all.
Just be careful.
Too long SPSS versions 13 and older don't have one or more of the old
BASIC commands that could cause the SPSS backend processor to idle
while a script is running, but Python and SPSS 14 and later are, IMHO,
GREAT!
King Douglas