LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2006)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 17 Jul 2006 00:28:47 +0200
Reply-To:     Alex Rasker <>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Alex Rasker <>
Subject:      The asynchronous "problem" solved with Python...?
Content-Type: text/plain; format=flowed

Dear List, SPSS,

We are all very excited of course with the prospect of running scripts synchronously with syntax (and vice versa). For small scripts one can quickly convert them to python scripts and be done. For larger tasks one might want to call the script from syntax using python to accmplish the synchronous execution of the desired code. Does anyone know if the following would then execute as one would hope?

*COMMAND submitted to SPSS. !myscript.

*WHERE !myscript :=. DEFINE !myscript () INCLUDE FILE='C:\MyFolder\Myscript.sps'. !ENDDEFINE.

*WHERE "C:\MyFolder\Myscript.sps" :=. ****. BEGIN PROGRAM. import spss spss.Submit(r""" SCRIPT FILE='C:\MyFolder\'. """) END PROGRAM.


Back to: Top of message | Previous page | Main SPSSX-L page