Automatically run syntax when SPSS starts

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

Automatically run syntax when SPSS starts

Carlos Renato (www.estatistico.org)
Dear friends of the list

     Is possible run any syntax in the spss automatically when
start the same?

Carlos Renato
Statistician

=====================
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: Automatically run syntax when SPSS starts

Victor Kogler
Carlos,

I'm curious what others on the list may have done, but my solution was
the following:

I assembled the the syntax I wanted to run at startup and then saved it
in a file called autoexec.sps.

I set up a desktop shortcut that pointed to that file.  If your Windows
file associations are set up correctly, SPSS will start and open a
syntax window with your startup syntax.  You have to manually run the
syntax, but it's the best I could come up with.


Victor



Carlos Renato wrote:

> Dear friends of the list
>
>      Is possible run any syntax in the spss automatically when
> start the same?
>
> Carlos Renato
> Statistician
>
> =====================
> 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: Automatically run syntax when SPSS starts

ViAnn Beadle
In reply to this post by Carlos Renato (www.estatistico.org)
Tell us more about why you want to do this. Have you thought about using a
production job that can be invoked from the command line? What release are
you running?

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Carlos Renato
Sent: Monday, August 18, 2008 1:01 PM
To: [hidden email]
Subject: Automatically run syntax when SPSS starts

Dear friends of the list

     Is possible run any syntax in the spss automatically when
start the same?

Carlos Renato
Statistician

=====================
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: Automatically run syntax when SPSS starts

Peck, Jon
In reply to this post by Carlos Renato (www.estatistico.org)
In versions earlier than SPSS 16, you can write an autoscript that will execute when SPSS starts.

In your autoscript.sbs file, put a Sub name Application_Create()

For example, this sub sets printer orientation to landscape.

Sub Application_Create()
objSpssApp.GetDesignatedOutputDoc.PrintOptions.Orientation = 2 'Landscape
End Sub

You could use the ExecuteCommands api to run syntax at startup.

This mechanism is not available in SPSS 16, but SPSS 17 has a more general solution that includes separate scripts for starting the application andfor connecting to the Server, and it does not rely on the autoscript mechanism.

HTH,
Jon Peck

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Carlos Renato
Sent: Monday, August 18, 2008 1:01 PM
To: [hidden email]
Subject: [SPSSX-L] Automatically run syntax when SPSS starts

Dear friends of the list

     Is possible run any syntax in the spss automatically when
start the same?

Carlos Renato
Statistician

=====================
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: Automatically run syntax when SPSS starts

Jason Burke
For those who have a macro library, I am sure this would prove a novel idea.

On 8/19/08, Peck, Jon <[hidden email]> wrote:

> In versions earlier than SPSS 16, you can write an autoscript that will execute when SPSS starts.
>
> In your autoscript.sbs file, put a Sub name Application_Create()
>
> For example, this sub sets printer orientation to landscape.
>
> Sub Application_Create()
> objSpssApp.GetDesignatedOutputDoc.PrintOptions.Orientation = 2 'Landscape
> End Sub
>
> You could use the ExecuteCommands api to run syntax at startup.
>
> This mechanism is not available in SPSS 16, but SPSS 17 has a more general solution that includes separate scripts for starting the application andfor connecting to the Server, and it does not rely on the autoscript mechanism.
>
> HTH,
> Jon Peck
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Carlos Renato
> Sent: Monday, August 18, 2008 1:01 PM
> To: [hidden email]
> Subject: [SPSSX-L] Automatically run syntax when SPSS starts
>
> Dear friends of the list
>
>     Is possible run any syntax in the spss automatically when
> start the same?
>
> Carlos Renato
> Statistician
>
> =====================
> 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
>

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

Sequential Pattern Finding

Guerrero, Rodrigo
Hello,

I have 2 years of quarterly mailings to a select list of people (7
million).  Our DM department has sent out different creatives on a
quarterly basis and they are now interested in finding the most
productive sequences of creative that will maximize response.  I thought
about doing so CHAID tress, but I think the timing issue would be
ignored.  Is there a way to do sequential pattern finding in SPSS?  What
suggestions would you have for analyzing the data?

Thank you for your help.

RG

Rodrigo A. Guerrero | Director Of Marketing Research and Analysis | The
Scooter Store | 830.627.4317

=====================
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: Automatically run syntax when SPSS starts

Carlos Renato (www.estatistico.org)
In reply to this post by ViAnn Beadle
Dear writers of list

   I want this procedure for run my database of macros automatically and
uses the commands.

Carlos Renato
Statistician
Recife - PE - Brazil

2008/8/18 ViAnn Beadle <[hidden email]>

> Tell us more about why you want to do this. Have you thought about using a
> production job that can be invoked from the command line? What release are
> you running?
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
> Carlos Renato
> Sent: Monday, August 18, 2008 1:01 PM
> To: [hidden email]
> Subject: Automatically run syntax when SPSS starts
>
> Dear friends of the list
>
>     Is possible run any syntax in the spss automatically when
> start the same?
>
> Carlos Renato
> Statistician
>
> =====================
> 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
>

=====================
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: Automatically run syntax when SPSS starts

ViAnn Beadle
Do you want a scheduled execution or each and every time you launch SPSS?



From: Carlos Renato [mailto:[hidden email]]
Sent: Thursday, August 21, 2008 6:24 PM
To: ViAnn Beadle
Cc: [hidden email]
Subject: Re: Automatically run syntax when SPSS starts



Dear writers of list

   I want this procedure for run my database of macros automatically and
uses the commands.

Carlos Renato
Statistician
Recife - PE - Brazil

2008/8/18 ViAnn Beadle <[hidden email]>

Tell us more about why you want to do this. Have you thought about using a
production job that can be invoked from the command line? What release are
you running?


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Carlos Renato
Sent: Monday, August 18, 2008 1:01 PM
To: [hidden email]
Subject: Automatically run syntax when SPSS starts

Dear friends of the list

    Is possible run any syntax in the spss automatically when
start the same?

Carlos Renato
Statistician

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

=====================
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: Automatically run syntax when SPSS starts

ViAnn Beadle
In reply to this post by Carlos Renato (www.estatistico.org)
One more thing-what release of SPSS are you running?



From: Carlos Renato [mailto:[hidden email]]
Sent: Thursday, August 21, 2008 6:24 PM
To: ViAnn Beadle
Cc: [hidden email]
Subject: Re: Automatically run syntax when SPSS starts



Dear writers of list

   I want this procedure for run my database of macros automatically and
uses the commands.

Carlos Renato
Statistician
Recife - PE - Brazil

2008/8/18 ViAnn Beadle <[hidden email]>

Tell us more about why you want to do this. Have you thought about using a
production job that can be invoked from the command line? What release are
you running?


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Carlos Renato
Sent: Monday, August 18, 2008 1:01 PM
To: [hidden email]
Subject: Automatically run syntax when SPSS starts

Dear friends of the list

    Is possible run any syntax in the spss automatically when
start the same?

Carlos Renato
Statistician

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

=====================
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: Automatically run syntax when SPSS starts

Carlos Renato (www.estatistico.org)
Dear Friend

     I want to start SPSS and in this moment run and recognize my database
macros, because
with this procedure I will use only the command line of the macros and the
parameters of
each.

Carlos Renato
Statistician
Recife - PE - Brazil

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