Clear output using syntax

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

Clear output using syntax

Francis Lafortune
Hello everyone,

I would like to know if there's an option or any way (using syntax
preferably)to prevent SPSS from generating output files or to clear them
after they have been generated.

The reason is that I call a SPSS syntax using runsyntx.exe from an Access
macro, and I'd rather keeping the data processing with SPSS invisible to the
users.

As I understand, the're is no way to close all spss files using syntax (I
tried DATASET CLOSE ALL but one base remained open).

To clear output files would at least lessen the number of windows the users
of my database have to close after they call the syntax.

Thanks a lot.


Francis Lafortune

Groupe de recherche sur les inadaptations sociales de l'enfance (GRISE)
Faculté d'éducation Université de Sherbrooke 1-819-821-8000 #61981

=====================
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: Clear output using syntax

Peck, Jon
There are quite a few possibilities here depending on exactly what you want to do.

The command OUTPUT CLOSE, introduced in SPSS 15, I think, will close an output window.  DATASET CLOSE ALL closes all the syntax windows, but you must always have at least one.

Using scripting, you can run an invisible copy of SPSS by setting the Visible property of various objects.  Similarly, Production Mode runs invisibly.

If you just want to run a complete session with no user interface and don't need the Viewer contents (output can be created via OMS, instead), you could use the .NET programmability api to create a headless application that just runs your syntax.

HTH,
Jon Peck

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Francis Lafortune
Sent: Monday, August 18, 2008 1:48 PM
To: [hidden email]
Subject: [SPSSX-L] Clear output using syntax

Hello everyone,

I would like to know if there's an option or any way (using syntax
preferably)to prevent SPSS from generating output files or to clear them
after they have been generated.

The reason is that I call a SPSS syntax using runsyntx.exe from an Access
macro, and I'd rather keeping the data processing with SPSS invisible to the
users.

As I understand, the're is no way to close all spss files using syntax (I
tried DATASET CLOSE ALL but one base remained open).

To clear output files would at least lessen the number of windows the users
of my database have to close after they call the syntax.

Thanks a lot.


Francis Lafortune

Groupe de recherche sur les inadaptations sociales de l'enfance (GRISE)
Faculté d'éducation Université de Sherbrooke 1-819-821-8000 #61981

=====================
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