Could you tell me exactly which version of SPSS you are using? (9.0 or
9.0.1, I suspect.)
Instead of the While loop, try using "Wait 10" to pause for ten seconds, and
see if that will get the script to resume execution. (Allow enough time for
the syntax to finish, plus a margin of error.) Please let me know if that
gets past the limitation.
I'm not suggesting that this is a solution; I need more information so I can
report the problem accurately to SPSS Development.
John Bauer, Ph.D.
SPSS Developer Support
visit the SPSS Script eXchange:
From: Raynald Levesque [mailto:rlevesque@VIDEOTRON.CA]
Sent: Saturday, May 15, 1999 10:53 AM
Subject: running SCRIPT.....
Dear list members
I have a script which does does not require input parameters. When I run it
with the run command there are no problems.
When I run it from a syntax file using the SCRIPT command, the status bar
shows "Running SCRIPTS" but nothing happens. The only way to regain control
is to terminate SPSS.
The problem occurs in the following loop of the Script:
objSpssApp.ExecuteCommands strCommands, False
'wait until spss processor is ready
The line before the loop creates a new variable. After the loop, the
variable is used. The While Wend loop is supposed to wait until the
processor has finished the creation of the variable before continuing with
the flow of the script. Without the loop, an error is produced when the new
variable is referenced because the processor has not finished creating it. I
trust above explanation is clear.
Any ideas to solve this problem?
Raynald Levesque email@example.com <mailto:rlevesque@videotron.,ca>
Raynald Levesque firstname.lastname@example.org <mailto:email@example.com>