can you witch between local and stats server in spss from a batch file?

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

can you witch between local and stats server in spss from a batch file?

spssstarter
hi i would like to run a production job from a batch file, but the issue is some of syntax are run in local and some of syntax are run in stats.

I was wondering if it is possible to write some command in bat file to switch between the two servers?
(my stats server is called ukstats and my user name to login to that server is jennyy and password is abcd123).

many thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: can you witch between local and stats server in spss from a batch file?

David Marso
Administrator
Are you sure you want that info on a public resource???
You might want to change your pwd? ;-(
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?"
Reply | Threaded
Open this post in threaded view
|

Re: can you witch between local and stats server in spss from a batch file?

spssstarter
it's all made up so it's fine, apart from my name is jenny :)
Reply | Threaded
Open this post in threaded view
|

Re: can you witch between local and stats server in spss from a batch file?

Jon Peck
In reply to this post by David Marso
Do indeed change your password asap.  As for the question, search Help > Topics for command line
You will see that there are options for launching Statistics either locally or remotely in production mode, so you can have multiple job steps that run in the appropriate places.  Here is an extract from the topic 

Starting a Distributed Mode Session from a Command Line


stats -server inet:hostname:port -user username
-password password [datafilename]
  • hostname:port. The name or IP address and port number of the server.
  • username. If you need to specify a domain name, precede your user ID with the domain name and a backslash, as in: -user mydomain\myusername
  • datafilename. Path specifications must be relative to the server. For Windows servers, you can use UNC paths. If the path or filename contain any spaces, you must enclose the entire data file specification in quotes or apostrophes


On Thu, Mar 10, 2016 at 7:28 AM, David Marso <[hidden email]> wrote:
Are you sure you want that info on a public resource???
You might want to change your pwd? ;-(



-----
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?"
--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/can-you-witch-between-local-and-stats-server-in-spss-from-a-batch-file-tp5731697p5731701.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



--
Jon K Peck
[hidden email]

===================== 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: can you witch between local and stats server in spss from a batch file?

spssstarter
thank you jon, that topic was very help indeed and it solved my question. cheers!