executing an SPSS syntax program automatically

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

executing an SPSS syntax program automatically

drfg2008
Is it possible to start and execute an SPSS-Syntax file automatically. As far as I know a cron-job just starts the file but does not execute the SPSS-commands.

Thanks
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: executing an SPSS syntax program automatically

Jon K Peck
The easiest way to do this is to use Production Mode.  Look up Running production jobs from a command line in the Help.

You can also use external mode Python programmability to create a batch job that can be used with cron or AT.

HTH,

Jon Peck (no "h")
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        drfg2008 <[hidden email]>
To:        [hidden email]
Date:        09/08/2011 07:35 AM
Subject:        [SPSSX-L] executing an SPSS syntax program automatically
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Is it possible to start and execute an SPSS-Syntax file automatically. As far
as I know a cron-job just starts the file but does not execute the
SPSS-commands.

Thanks

-----
Dr. Frank Gaeth
FU-Berlin

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/executing-an-SPSS-syntax-program-automatically-tp4782411p4782411.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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: executing an SPSS syntax program automatically

San K
SPSS used to have nice & clean runsyntx.exe where you can simply
submit a Syntax file.

Then they had spssprod where you can add syntax files to the
‘production facility’ and run that file.

Then they came up with '*.spj -production' where this can be run by
calling paswstat.

I'm sure they would have changed that again now :)

Regards,
San




On Thu, Sep 8, 2011 at 11:44 PM, Jon K Peck <[hidden email]> wrote:

> The easiest way to do this is to use Production Mode.  Look up Running
> production jobs from a command line in the Help.
>
> You can also use external mode Python programmability to create a batch job
> that can be used with cron or AT.
>
> HTH,
>
> Jon Peck (no "h")
> Senior Software Engineer, IBM
> [hidden email]
> new phone: 720-342-5621
>
>
>
>
> From:        drfg2008 <[hidden email]>
> To:        [hidden email]
> Date:        09/08/2011 07:35 AM
> Subject:        [SPSSX-L] executing an SPSS syntax program automatically
> Sent by:        "SPSSX(r) Discussion" <[hidden email]>
> ________________________________
>
>
> Is it possible to start and execute an SPSS-Syntax file automatically. As
> far
> as I know a cron-job just starts the file but does not execute the
> SPSS-commands.
>
> Thanks
>
> -----
> Dr. Frank Gaeth
> FU-Berlin
>
> --
> View this message in context:
> http://spssx-discussion.1045642.n5.nabble.com/executing-an-SPSS-syntax-program-automatically-tp4782411p4782411.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> 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
Reply | Threaded
Open this post in threaded view
|

Re: executing an SPSS syntax program automatically

Eero Olli
In reply to this post by drfg2008

Hi Frank,

 

I update our office production data and make probably a hundred tables and figures automatically every night in a windows environment. I have divided this to four independent productionruns to separate the different phases (Grab data from SQL servers, collecting and clean data from other sources, match the different data sources and crate new master datafile, make tables and figures). It makes it much easier to find what went wrong when you make changes in the syntaxfiles.

 

First you need to make a productionscript in SPSS (Utilities – Producion Job) with references to one or more syntaxfiles you need to run.

Run it first within SPSS to make sure it works the way you one.  Depending on what you need, you might want to save outputfiles or use OMS to produce stuff.

 

Second,  implement daily unattended execution in Windows. go to Control panel – Planned tasks – add new:

Write in something like this:

 

C:\Programfiler\IBM\SPSS\Statistics\19\stats.exe "path\filename.spj" –production

Define the days and times you want to run the productionscript on.

Remember to put in your password, or it will not run unatended.

 

Then you have your first planned task. Instead of waiting until it executes, you can right click on a planned task and run it anytime manually.  It is the easiest way to start a productionscript run without opening SPSS first.

 

Best,

Eero

________________________________________

Eero Olli

Senior Advisor

the Equality and Anti-discrimination Ombud

[hidden email]                  +47 2315 7344

POB 8048 Dep,     N-0031 Oslo,     Norway

 

 

Reply | Threaded
Open this post in threaded view
|

Re: executing an SPSS syntax program automatically

drfg2008
thanks everyone, it helped very much
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: executing an SPSS syntax program automatically

donhatbang
Banned User
Dr. Frank Gaeth

How to run auto run syntax
Reply | Threaded
Open this post in threaded view
|

Re: executing an SPSS syntax program automatically

David Marso
Administrator
Yes, respond ambiguously to a 6 yr old post?
Is this a question or an ambiguous response?
--
donhatbang wrote
Dr. Frank Gaeth

How to run auto run syntax
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"