|
Hello,
here is my problem: 1.) if I use the syntax command: "subtitle Test." --> it prints "Test" to the Output window. Thats fine! -------------------------------------------- 2.) if I open a scriptfile called "Test.sbs" and execute the following procedure: Sub Main objSpssApp.ExecuteCommands "subtitle Test.", True End Sub --> it prints "Test" to the Output window. Thats fine, too! -------------------------------------------- 3.) BUT... if I call the script via Syntax with the command: SCRIPT file="C:\Scripts\Test.sbs". --> SPSS hangs up, showing "Script ..." in the lower status bar. -------------------------------------------- I would be very glad, if somebody could tell me a solution. Thank you very much. Greetings, Christoph ===================== 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 |
|
See below. Jon Peck SPSS, an IBM Company [hidden email] 312-651-3435
Hello, here is my problem: 1.) if I use the syntax command: "subtitle Test." --> it prints "Test" to the Output window. Thats fine! -------------------------------------------- 2.) if I open a scriptfile called "Test.sbs" and execute the following procedure: Sub Main objSpssApp.ExecuteCommands "subtitle Test.", True End Sub --> it prints "Test" to the Output window. Thats fine, too! -------------------------------------------- 3.) BUT... if I call the script via Syntax with the command: SCRIPT file="C:\Scripts\Test.sbs". --> SPSS hangs up, showing "Script ..." in the lower status bar. -------------------------------------------- I would be very glad, if somebody could tell me a solution. >>>First, please always mention what SPSS version you are using. When you call ExecuteCommands with the second parameter True, you are specifying synchronous operation. That means that the script cannot finish until the command is executed. But the Script command is executing (your script) so the subtitle command is waiting to execute until the script command is finished. Deadlock. Use Async execution, i.e., second parameter value of False, if you are using the Script command. HTH, Jon Peck Thank you very much. Greetings, Christoph ===================== 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 |
| Free forum by Nabble | Edit this page |
