|
I am writing a syntax file that, when run, reads in files, does some
processing, and "spits out" new files. The processing includes a short piece of Python code. Initially, the syntax I wrote did this only for one file, and then I created a macro with loops (with the help of some very helpful people on this mailing list) to make it repeat the process for over 1,000 files. Before the loops, the syntax would run very quickly. As it ran, at the bottom of each window, it would tell me what exactly it was doing at that moment (e.g. Running COMPUTE, Running EXECUTE, Running BEGIN PROGRAM, etc). Now I have added the loops and am trying to run it; for the first few minutes, the text on the bottom reads "Running DEFINE". This makes sense to me, as it is parsing a LOT of lines. The next thing that appears for any significant length of time is "Running PROGRAM>...", and at this point, it appears to freeze. It does not matter how long I wait; it does not come out of this state. This was not a message that ever appeared before the loops. The output window shows no errors. Does anybody know what could be wrong? Thank you in advance! -Greg ===================== 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 |
|
I don't think you can run macro syntax (Define-!Enddefine) within a Python program block -- and I suspect you'd be better off doing all you macro-like and loop actions in Python code. What are you trying to do.
________________________________ From: SPSSX(r) Discussion on behalf of Greg Chulsky Sent: Wed 8/27/2008 6:58 PM To: [hidden email] Subject: Running PROGRAM>... I am writing a syntax file that, when run, reads in files, does some processing, and "spits out" new files. The processing includes a short piece of Python code. Initially, the syntax I wrote did this only for one file, and then I created a macro with loops (with the help of some very helpful people on this mailing list) to make it repeat the process for over 1,000 files. Before the loops, the syntax would run very quickly. As it ran, at the bottom of each window, it would tell me what exactly it was doing at that moment (e.g. Running COMPUTE, Running EXECUTE, Running BEGIN PROGRAM, etc). Now I have added the loops and am trying to run it; for the first few minutes, the text on the bottom reads "Running DEFINE". This makes sense to me, as it is parsing a LOT of lines. The next thing that appears for any significant length of time is "Running PROGRAM>...", and at this point, it appears to freeze. It does not matter how long I wait; it does not come out of this state. This was not a message that ever appeared before the loops. The output window shows no errors. Does anybody know what could be wrong? Thank you in advance! -Greg ===================== 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 ====================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 |
