Hi Rick,
the fix works fine with SPSS 27. It seems this bug was not solved in version 28 but the fix designed for version 27 also works. There's still a little issue. Replacing the original spsswctl.dll with the version 27 fix raises #9021 warning:
>Warning # 9021
>The version of the SPSS Statistics Manager does not match the version of the
>SPSS Statistics Processor. There may be problems regarding communication
>between the two. Use "SHOW VERSION" to determine the two version numbers.
Is a fix for version 28 planned? Is this problem finally solved in version 29?
------------------------------
Konrad Gałuszko
------------------------------
Original Message:
Sent: Thu January 27, 2022 09:58 AM
From: Rick Marcantonio
Subject: SCRIPT command does not always honor CD
The fix for v27.0.1 is here.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
Original Message:
Sent: Tue November 09, 2021 06:41 AM
From: Konrad Gałuszko
Subject: SCRIPT command does not always honor CD
I would like to run a Python 3 script using SCRIPT command. However, the problem is that SPSS randomly honors a path defined earlier by CD command. Of course the script is in the same place as the path defined by CD. Code:*** Setting a path.
cd "C:\Survey Folder\Results".
*** This works.
script "C:\Survey Folder\Results\py3script.py".
*** These almost always don't.
script "py3script.py".
script pythonversion = 3 "py3script.py".
I remember this problem has occured since version 25 but up to 26 it sometimes worked with CD. In version 27 I cannot get desired result. Is it a bug or documentation simply doesn't mention that a path for a script needs to be given explicitly? If it is a bug - is it fixed in version 28?
------------------------------
Konrad Gałuszko
------------------------------
#SPSSStatistics