Spotty results for SPSSINC MODIFY TABLES

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Spotty results for SPSSINC MODIFY TABLES

ChrisKeran
I am using SPSSINC MODIFY TABLES (in SPSS v26) and notice that it works
sometimes and not at other times for the same syntax file. If I run this
command by itself, it always seems to work. However, if I run it at the same
time as the CTABLES command, then it might or might not work and does not
give a warning nor an error. I will be running this inside a macro, so it
needs to work when running with the CTABLES command. I am running this set
of syntax for several variables, and I have included 3 viewer files:

Test1-did_not_widen_Q8
Test2-did not remove count column for Q4 and Q5
Test3-worked for all

Test1-did_not_widen_Q8.spv
<http://spssx-discussion.1045642.n5.nabble.com/file/t340635/Test1-did_not_widen_Q8.spv>  
Test2-did_not_remove_count_column_for_Q4_and_Q5.spv
<http://spssx-discussion.1045642.n5.nabble.com/file/t340635/Test2-did_not_remove_count_column_for_Q4_and_Q5.spv>  
Test3-worked_for_all.spv
<http://spssx-discussion.1045642.n5.nabble.com/file/t340635/Test3-worked_for_all.spv>  

Here is a portion of the syntax, and you'll notice I have two MODIFY TABLES
commands...
* Custom Tables.
CTABLES
  /VLABELS VARIABLES=Q8FinalComment DISPLAY=NONE
  /TABLE Q8FinalComment [C][COUNT F40.0]
  /CATEGORIES VARIABLES=Q8FinalComment ORDER=A KEY=VALUE EMPTY=EXCLUDE
  /CRITERIA CILEVEL=95
  /TITLES
    TITLE='Q8: Any other comments about this program?'.
*Widen the comment column width.
SPSSINC MODIFY TABLES subtype="Custom Table"
SELECT=0
DIMENSION= COLUMNS LEVEL = -1  SIGLEVELS=BOTH
PROCESS = PRECEDING
/WIDTHS WIDTHS=300 ROWLABELS=1 ROWLABELWIDTHS=425
/STYLES  APPLYTO=DATACELLS.
*Remove the "Count" column.
SPSSINC MODIFY TABLES subtype="Custom Table"
SELECT=Count
DIMENSION= COLUMNS LEVEL = -1  SIGLEVELS=BOTH
PROCESS = PRECEDING HIDE=TRUE
/STYLES  APPLYTO=DATACELLS.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

Jon Peck
The Viewer runs many threads simultaneously when it is rendering output.  These are supposed to be synchronized so that when locating an object with Python or Basic scripting, the api does not run until all the output objects sent to the Viewer by the backend output factory have been created.  There used to be some problems with the synchronizing in earlier versions, but I thought these had all been fixed.  Apparently not.  MODIFY TABLES starts with the end of the Viewer output and works backwards looking for the specified object or objects, but if the object has not been fully created at that point, MODIFY TABLES won't see it.

The workaround is to impose a very slight delay before running MODIFY TABLES or other similar code.  That's why when you run MODIFY TABLES after a delay rather than right after CTABLES, it always works.
Here is a piece of code that sleeps briefly.  It's set to wait for .5 seconds, but you can experiment with it to see what works.  Even .1 seconds might well be enough.  So put this right before MODIFY TABLES.

begin program.
import time
time.sleep(.5)
end program.

On Thu, Sep 5, 2019 at 9:26 AM ChrisKeran <[hidden email]> wrote:
I am using SPSSINC MODIFY TABLES (in SPSS v26) and notice that it works
sometimes and not at other times for the same syntax file. If I run this
command by itself, it always seems to work. However, if I run it at the same
time as the CTABLES command, then it might or might not work and does not
give a warning nor an error. I will be running this inside a macro, so it
needs to work when running with the CTABLES command. I am running this set
of syntax for several variables, and I have included 3 viewer files:

Test1-did_not_widen_Q8
Test2-did not remove count column for Q4 and Q5
Test3-worked for all

Test1-did_not_widen_Q8.spv
<http://spssx-discussion.1045642.n5.nabble.com/file/t340635/Test1-did_not_widen_Q8.spv
Test2-did_not_remove_count_column_for_Q4_and_Q5.spv
<http://spssx-discussion.1045642.n5.nabble.com/file/t340635/Test2-did_not_remove_count_column_for_Q4_and_Q5.spv
Test3-worked_for_all.spv
<http://spssx-discussion.1045642.n5.nabble.com/file/t340635/Test3-worked_for_all.spv

Here is a portion of the syntax, and you'll notice I have two MODIFY TABLES
commands...
* Custom Tables.
CTABLES
  /VLABELS VARIABLES=Q8FinalComment DISPLAY=NONE
  /TABLE Q8FinalComment [C][COUNT F40.0]
  /CATEGORIES VARIABLES=Q8FinalComment ORDER=A KEY=VALUE EMPTY=EXCLUDE
  /CRITERIA CILEVEL=95
  /TITLES
    TITLE='Q8: Any other comments about this program?'.
*Widen the comment column width.
SPSSINC MODIFY TABLES subtype="Custom Table"
SELECT=0
DIMENSION= COLUMNS LEVEL = -1  SIGLEVELS=BOTH
PROCESS = PRECEDING
/WIDTHS WIDTHS=300 ROWLABELS=1 ROWLABELWIDTHS=425
/STYLES  APPLYTO=DATACELLS.
*Remove the "Count" column.
SPSSINC MODIFY TABLES subtype="Custom Table"
SELECT=Count
DIMENSION= COLUMNS LEVEL = -1  SIGLEVELS=BOTH
PROCESS = PRECEDING HIDE=TRUE
/STYLES  APPLYTO=DATACELLS.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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


--
Jon K Peck
[hidden email]

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

ChrisKeran
That works great, Jon, thank you. I used (.1) which worked 3x in a row.
FYI, while searching for an answer, I saw this was an issue back in version
19, but hadn't seen your workaround.

Thanks again,
Chris



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

ChrisKeran
Uh, hold on.

The time delay worked great before wrapping it within a macro, but when
including it within a macro, the program gets hung up. Running Stop
Processor has no effect, and I need to use Ctrl-Alt-Del to stop it with the
Task Manager. FYI, I tested the rest of the syntax within the macro and that
works fine when commenting out the delay syntax.

Thoughts?



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

Jon Peck
macros and programmability don't get along well together.  I think this is not officially supported.  Some combinations work but others don't. Maybe you can minimize the trouble using the PROCESS=ALL keyword on MODIFY TABLES.

Extension commands do seem to work within macros, so we might need to convert this code into an extension.

On Thu, Sep 5, 2019 at 10:51 AM ChrisKeran <[hidden email]> wrote:
Uh, hold on.

The time delay worked great before wrapping it within a macro, but when
including it within a macro, the program gets hung up. Running Stop
Processor has no effect, and I need to use Ctrl-Alt-Del to stop it with the
Task Manager. FYI, I tested the rest of the syntax within the macro and that
works fine when commenting out the delay syntax.

Thoughts?



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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


--
Jon K Peck
[hidden email]

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

Jon Peck
In reply to this post by ChrisKeran
I can send you a minimal extension command to try out.

On Thu, Sep 5, 2019 at 10:51 AM ChrisKeran <[hidden email]> wrote:
Uh, hold on.

The time delay worked great before wrapping it within a macro, but when
including it within a macro, the program gets hung up. Running Stop
Processor has no effect, and I need to use Ctrl-Alt-Del to stop it with the
Task Manager. FYI, I tested the rest of the syntax within the macro and that
works fine when commenting out the delay syntax.

Thoughts?



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
--
Jon K Peck
[hidden email]

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

ChrisKeran
Sure, that would be fine (a minimal extension command). What do you need from
me?

FYI, I originally used PROCESS=ALL, however one of my tables requires a
different MODIFY TABLES command.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

Jon Peck
I’ll send you the basic pieces - an xml File and a py file.  Probably this afternoon.

On Thu, Sep 5, 2019 at 11:43 AM ChrisKeran <[hidden email]> wrote:
Sure, that would be fine (a minimal extension command). What do you need from
me?

FYI, I originally used PROCESS=ALL, however one of my tables requires a
different MODIFY TABLES command.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
--
Jon K Peck
[hidden email]

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

ChrisKeran
Sounds good. If you can also provide instructions for how to include the xml
and py files, that would be fantastic! Sorry, if I'm a bit "green" behind
the ears on this.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

ChrisKeran

Thank you, Jon.

 

Should I replace the entire initial delay syntax with this new syntax?

And should I include the new syntax prior to each of the MODIFY TABLES commands, as I did with the initial syntax?

 

Initial syntax

begin program.

import time

time.sleep(.1)

end program.

 

New syntax

stats sleep delay=.5.

 

From: Jon Peck <[hidden email]>
Sent: Thursday, September 5, 2019 1:07 PM
To: Chris Keran <[hidden email]>
Cc: SPSS List <[hidden email]>
Subject: Re: [SPSSX-L] Spotty results for SPSSINC MODIFY TABLES

 

Here are the files.  I didn't package this with all the goodies an extension usually has.  Just save the files where Python can find them such as the python\lib\site-packages directory under your Statistics installation and restart Statistics.

 

Usage:

stats sleep delay=value

e.g.

stats sleep delay=1.

 

Default delay is .5 seconds.

 

 

 

 

On Thu, Sep 5, 2019 at 11:51 AM ChrisKeran <[hidden email]> wrote:

Sounds good. If you can also provide instructions for how to include the xml
and py files, that would be fantastic! Sorry, if I'm a bit "green" behind
the ears on this.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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


 

--

Jon K Peck
[hidden email]

AAN 2019 Annual Meeting • May 4-May 10 • Philadelphia

Register now!


AAN Vision:
To be indispensable to our members.
AAN Mission: To promote the highest quality patient-centered neurologic care and enhance member career satisfaction.
Legal Notice: This message may contain confidential or legally privileged information intended only for the use of the addressee(s) named above. Unauthorized use, disclosure, distribution, or copying is prohibited. If you have received this message in error, please reply to the sender and delete the original message. Thank you.

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

Jon Peck
yes and yes.  The code in the extension actually just does the same sleep call, although it is wrapped up using the extension protocols.

On Thu, Sep 5, 2019 at 12:55 PM Chris Keran <[hidden email]> wrote:

Thank you, Jon.

 

Should I replace the entire initial delay syntax with this new syntax?

And should I include the new syntax prior to each of the MODIFY TABLES commands, as I did with the initial syntax?

 

Initial syntax

begin program.

import time

time.sleep(.1)

end program.

 

New syntax

stats sleep delay=.5.

 

From: Jon Peck <[hidden email]>
Sent: Thursday, September 5, 2019 1:07 PM
To: Chris Keran <[hidden email]>
Cc: SPSS List <[hidden email]>
Subject: Re: [SPSSX-L] Spotty results for SPSSINC MODIFY TABLES

 

Here are the files.  I didn't package this with all the goodies an extension usually has.  Just save the files where Python can find them such as the python\lib\site-packages directory under your Statistics installation and restart Statistics.

 

Usage:

stats sleep delay=value

e.g.

stats sleep delay=1.

 

Default delay is .5 seconds.

 

 

 

 

On Thu, Sep 5, 2019 at 11:51 AM ChrisKeran <[hidden email]> wrote:

Sounds good. If you can also provide instructions for how to include the xml
and py files, that would be fantastic! Sorry, if I'm a bit "green" behind
the ears on this.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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


 

--

Jon K Peck
[hidden email]

AAN 2019 Annual Meeting • May 4-May 10 • Philadelphia

Register now!


AAN Vision:
To be indispensable to our members.
AAN Mission: To promote the highest quality patient-centered neurologic care and enhance member career satisfaction.
Legal Notice: This message may contain confidential or legally privileged information intended only for the use of the addressee(s) named above. Unauthorized use, disclosure, distribution, or copying is prohibited. If you have received this message in error, please reply to the sender and delete the original message. Thank you.

===================== 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


--
Jon K Peck
[hidden email]

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

ChrisKeran

I’m guessing I placed the files in the wrong folder because I am getting this error…

stats sleep delay=.5.

 

Error # 1.  Command name: stats

The first word in the line is not recognized as an SPSS Statistics command.

Execution of this command stops.

 

…or I need to install a stats extension utility?

 

FYI, I placed both of those files in each of these two folders…

C:\Program Files\IBM\SPSS\Statistics\26\Python\Lib\site-packages

C:\Program Files\IBM\SPSS\Statistics\26\Python3\Lib\site-packages

 

…because I’m not sure which Python folder is the correct one.

 

 

From: Jon Peck <[hidden email]>
Sent: Thursday, September 5, 2019 2:04 PM
To: Chris Keran <[hidden email]>
Cc: SPSS List <[hidden email]>
Subject: Re: [SPSSX-L] Spotty results for SPSSINC MODIFY TABLES

 

yes and yes.  The code in the extension actually just does the same sleep call, although it is wrapped up using the extension protocols.

 

On Thu, Sep 5, 2019 at 12:55 PM Chris Keran <[hidden email]> wrote:

Thank you, Jon.

 

Should I replace the entire initial delay syntax with this new syntax?

And should I include the new syntax prior to each of the MODIFY TABLES commands, as I did with the initial syntax?

 

Initial syntax

begin program.

import time

time.sleep(.1)

end program.

 

New syntax

stats sleep delay=.5.

 

From: Jon Peck <[hidden email]>
Sent: Thursday, September 5, 2019 1:07 PM
To: Chris Keran <[hidden email]>
Cc: SPSS List <[hidden email]>
Subject: Re: [SPSSX-L] Spotty results for SPSSINC MODIFY TABLES

 

Here are the files.  I didn't package this with all the goodies an extension usually has.  Just save the files where Python can find them such as the python\lib\site-packages directory under your Statistics installation and restart Statistics.

 

Usage:

stats sleep delay=value

e.g.

stats sleep delay=1.

 

Default delay is .5 seconds.

 

 

 

 

On Thu, Sep 5, 2019 at 11:51 AM ChrisKeran <[hidden email]> wrote:

Sounds good. If you can also provide instructions for how to include the xml
and py files, that would be fantastic! Sorry, if I'm a bit "green" behind
the ears on this.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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


 

--

Jon K Peck
[hidden email]

AAN 2019 Annual Meeting • May 4-May 10 • Philadelphia

Register now!


AAN Vision:
To be indispensable to our members.
AAN Mission: To promote the highest quality patient-centered neurologic care and enhance member career satisfaction.
Legal Notice: This message may contain confidential or legally privileged information intended only for the use of the addressee(s) named above. Unauthorized use, disclosure, distribution, or copying is prohibited. If you have received this message in error, please reply to the sender and delete the original message. Thank you.

===================== 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


 

--

Jon K Peck
[hidden email]

AAN 2019 Annual Meeting • May 4-May 10 • Philadelphia

Register now!


AAN Vision:
To be indispensable to our members.
AAN Mission: To promote the highest quality patient-centered neurologic care and enhance member career satisfaction.
Legal Notice: This message may contain confidential or legally privileged information intended only for the use of the addressee(s) named above. Unauthorized use, disclosure, distribution, or copying is prohibited. If you have received this message in error, please reply to the sender and delete the original message. Thank you.

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

Jon Peck
This is Python 2 stuff.  Did you restart Statistics after saving the files?  The message means that Statistics did not find the xml file.

On Thu, Sep 5, 2019 at 1:19 PM Chris Keran <[hidden email]> wrote:

I’m guessing I placed the files in the wrong folder because I am getting this error…

stats sleep delay=.5.

 

Error # 1.  Command name: stats

The first word in the line is not recognized as an SPSS Statistics command.

Execution of this command stops.

 

…or I need to install a stats extension utility?

 

FYI, I placed both of those files in each of these two folders…

C:\Program Files\IBM\SPSS\Statistics\26\Python\Lib\site-packages

C:\Program Files\IBM\SPSS\Statistics\26\Python3\Lib\site-packages

 

…because I’m not sure which Python folder is the correct one.

 

 

From: Jon Peck <[hidden email]>
Sent: Thursday, September 5, 2019 2:04 PM
To: Chris Keran <[hidden email]>
Cc: SPSS List <[hidden email]>
Subject: Re: [SPSSX-L] Spotty results for SPSSINC MODIFY TABLES

 

yes and yes.  The code in the extension actually just does the same sleep call, although it is wrapped up using the extension protocols.

 

On Thu, Sep 5, 2019 at 12:55 PM Chris Keran <[hidden email]> wrote:

Thank you, Jon.

 

Should I replace the entire initial delay syntax with this new syntax?

And should I include the new syntax prior to each of the MODIFY TABLES commands, as I did with the initial syntax?

 

Initial syntax

begin program.

import time

time.sleep(.1)

end program.

 

New syntax

stats sleep delay=.5.

 

From: Jon Peck <[hidden email]>
Sent: Thursday, September 5, 2019 1:07 PM
To: Chris Keran <[hidden email]>
Cc: SPSS List <[hidden email]>
Subject: Re: [SPSSX-L] Spotty results for SPSSINC MODIFY TABLES

 

Here are the files.  I didn't package this with all the goodies an extension usually has.  Just save the files where Python can find them such as the python\lib\site-packages directory under your Statistics installation and restart Statistics.

 

Usage:

stats sleep delay=value

e.g.

stats sleep delay=1.

 

Default delay is .5 seconds.

 

 

 

 

On Thu, Sep 5, 2019 at 11:51 AM ChrisKeran <[hidden email]> wrote:

Sounds good. If you can also provide instructions for how to include the xml
and py files, that would be fantastic! Sorry, if I'm a bit "green" behind
the ears on this.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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


 

--

Jon K Peck
[hidden email]

AAN 2019 Annual Meeting • May 4-May 10 • Philadelphia

Register now!


AAN Vision:
To be indispensable to our members.
AAN Mission: To promote the highest quality patient-centered neurologic care and enhance member career satisfaction.
Legal Notice: This message may contain confidential or legally privileged information intended only for the use of the addressee(s) named above. Unauthorized use, disclosure, distribution, or copying is prohibited. If you have received this message in error, please reply to the sender and delete the original message. Thank you.

===================== 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


 

--

Jon K Peck
[hidden email]

AAN 2019 Annual Meeting • May 4-May 10 • Philadelphia

Register now!


AAN Vision:
To be indispensable to our members.
AAN Mission: To promote the highest quality patient-centered neurologic care and enhance member career satisfaction.
Legal Notice: This message may contain confidential or legally privileged information intended only for the use of the addressee(s) named above. Unauthorized use, disclosure, distribution, or copying is prohibited. If you have received this message in error, please reply to the sender and delete the original message. Thank you.

===================== 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


--
Jon K Peck
[hidden email]

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Spotty results for SPSSINC MODIFY TABLES

ChrisKeran

Thanks for the reminder, but I’ve now also rebooted and then restarted Statistics and I’m getting the same error. Thoughts about how I could find out what folder to place them in or how to redirect a pointer?

 

From: Jon Peck <[hidden email]>
Sent: Thursday, September 5, 2019 2:23 PM
To: Chris Keran <[hidden email]>
Cc: SPSS List <[hidden email]>
Subject: Re: [SPSSX-L] Spotty results for SPSSINC MODIFY TABLES

 

This is Python 2 stuff.  Did you restart Statistics after saving the files?  The message means that Statistics did not find the xml file.

 

On Thu, Sep 5, 2019 at 1:19 PM Chris Keran <[hidden email]> wrote:

I’m guessing I placed the files in the wrong folder because I am getting this error…

stats sleep delay=.5.

 

Error # 1.  Command name: stats

The first word in the line is not recognized as an SPSS Statistics command.

Execution of this command stops.

 

…or I need to install a stats extension utility?

 

FYI, I placed both of those files in each of these two folders…

C:\Program Files\IBM\SPSS\Statistics\26\Python\Lib\site-packages

C:\Program Files\IBM\SPSS\Statistics\26\Python3\Lib\site-packages

 

…because I’m not sure which Python folder is the correct one.

 

 

From: Jon Peck <[hidden email]>
Sent: Thursday, September 5, 2019 2:04 PM
To: Chris Keran <[hidden email]>
Cc: SPSS List <[hidden email]>
Subject: Re: [SPSSX-L] Spotty results for SPSSINC MODIFY TABLES

 

yes and yes.  The code in the extension actually just does the same sleep call, although it is wrapped up using the extension protocols.

 

On Thu, Sep 5, 2019 at 12:55 PM Chris Keran <[hidden email]> wrote:

Thank you, Jon.

 

Should I replace the entire initial delay syntax with this new syntax?

And should I include the new syntax prior to each of the MODIFY TABLES commands, as I did with the initial syntax?

 

Initial syntax

begin program.

import time

time.sleep(.1)

end program.

 

New syntax

stats sleep delay=.5.

 

From: Jon Peck <[hidden email]>
Sent: Thursday, September 5, 2019 1:07 PM
To: Chris Keran <[hidden email]>
Cc: SPSS List <[hidden email]>
Subject: Re: [SPSSX-L] Spotty results for SPSSINC MODIFY TABLES

 

Here are the files.  I didn't package this with all the goodies an extension usually has.  Just save the files where Python can find them such as the python\lib\site-packages directory under your Statistics installation and restart Statistics.

 

Usage:

stats sleep delay=value

e.g.

stats sleep delay=1.

 

Default delay is .5 seconds.

 

 

 

 

On Thu, Sep 5, 2019 at 11:51 AM ChrisKeran <[hidden email]> wrote:

Sounds good. If you can also provide instructions for how to include the xml
and py files, that would be fantastic! Sorry, if I'm a bit "green" behind
the ears on this.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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


 

--

Jon K Peck
[hidden email]

AAN 2019 Annual Meeting • May 4-May 10 • Philadelphia

Register now!


AAN Vision:
To be indispensable to our members.
AAN Mission: To promote the highest quality patient-centered neurologic care and enhance member career satisfaction.
Legal Notice: This message may contain confidential or legally privileged information intended only for the use of the addressee(s) named above. Unauthorized use, disclosure, distribution, or copying is prohibited. If you have received this message in error, please reply to the sender and delete the original message. Thank you.

===================== 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


 

--

Jon K Peck
[hidden email]

AAN 2019 Annual Meeting • May 4-May 10 • Philadelphia

Register now!


AAN Vision:
To be indispensable to our members.
AAN Mission: To promote the highest quality patient-centered neurologic care and enhance member career satisfaction.
Legal Notice: This message may contain confidential or legally privileged information intended only for the use of the addressee(s) named above. Unauthorized use, disclosure, distribution, or copying is prohibited. If you have received this message in error, please reply to the sender and delete the original message. Thank you.

===================== 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


 

--

Jon K Peck
[hidden email]

AAN 2019 Annual Meeting • May 4-May 10 • Philadelphia

Register now!


AAN Vision:
To be indispensable to our members.
AAN Mission: To promote the highest quality patient-centered neurologic care and enhance member career satisfaction.
Legal Notice: This message may contain confidential or legally privileged information intended only for the use of the addressee(s) named above. Unauthorized use, disclosure, distribution, or copying is prohibited. If you have received this message in error, please reply to the sender and delete the original message. Thank you.

===================== 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