I used to use SPSS up to 1992. I always used a small batch program like this
SPSS.bat e:\spssdos\spsspc.exe %1.get This caused SPSSPC to execute and then run a get file that was passed on the command line. Very fast, a couple of seconds. Can I do this now with SPSS-20? SPSS says batch is there, but not where I can find it. Warren PS This batch approach works nicely with R, SAS, MPLUS, EQS STATA, & WINSTEPS. You can build in convenient features, like a column text editor. ===================== 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 |
Warren Yes you can still do it for 20; the example here is for 19 but the only difference is the name & path of the .exe file. "C:\Program Files\IBM\SPSS\Statistics\19\stats.exe" "<SPSS production job filename>.spj" –production The .spj file is created from “Utilities” -> “Production Facility” and has many options. I use this facility a lot and when coupled with OMS produces routine reports and analyses on a daily and weekly basis with no intervention on my part, except to change the name of the .exe file when we update SPSS – the same files, .spj
and syntax, have now been used for at least 3 versions of SPSS and the only thing to be converted when 21 appears is the .bat file by changing the file name !!
Best Wishes John S. Lemon DIT ( Directorate of Information Technology ) -
Student Liaison Officer Tel: +44 1224 273350 -----Original Message----- I used to use SPSS up to 1992. I always used a small batch program like this SPSS.bat e:\spssdos\spsspc.exe %1.get This caused SPSSPC to execute and then run a get file that was passed on the command line. Very fast, a couple of seconds. Can I do this now with SPSS-20? SPSS says batch is there, but not where I can find it. Warren PS This batch approach works nicely with R, SAS, MPLUS, EQS STATA, & WINSTEPS. You can build in convenient features, like a column text editor. ===================== 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 The University of Aberdeen is a charity registered in Scotland, No SC013683. |
Hi,
One nice thing is that the syntax can be parametrized, with parameters of the form @param.
For instance:
file handle path /name = @path.
will allow the user to specify a parameter, like so:
%spssdir%\stats.exe d:\temp\job.spj -production silent -symbol @path "d:\temp"
If you look at the printback you see that @path is translated into a minimacro define @path () "d:\temp" !enddefine.
Python scripting is another approach. Scripting and the Production Facility are much faster than interactive processing (no GUI overhead). Scripting seems to be slightly faster than the PF, but only marginally. But it's way more flexible.
Regards,
Albert-Jan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Free forum by Nabble | Edit this page |