spss.Submit error won't allow me to run python again in same session

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

spss.Submit error won't allow me to run python again in same session

ChetMeinzer
This post was updated on .
when i run spss.Submit, and the code has an error, I am not able to run a python block again in the same session.

for example:

begin program.
import spss
spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
#*the next line causes an error because it is out of order.
spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav' /file=* /by ru.")
spss.Submit("exe.")
end program.

begin program.
print '<code here>'
end program.


It looks normal, but when the processor starts the next block, the lower right corner says
'running begin program.'

but nothing ever happens again... until i shut down the engine.

Any idea what i'm doing wrong?


I also tried this

begin program.
import spss
try:
 spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
 spss.Submit("select if primdx='295.70' and xdate.year(opdate)=2012.")
 spss.Submit("exe.")
 spss.Submit("sort cases by case.")
 spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav' /file=* /by ru.")
 spss.Submit("exe.")
 spss.Submit("save outfile='//covenas\decisionsupport/aaaaa1.sav'.")
except Exception,e:
 print e
end program.



no difference.


It's specifically a sort gone wrong that kills it.

this works fine

    begin program.
    not code
    end program.
   
    begin program.
    print 'does it stop?'
    end program.


Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: spss.Submit error won't allow me to run python again in same session

Jon K Peck
If that * below is literally part of your syntax, then the begin program command would be treated as a comment, and many things would go wrong.  Assuming that it is just text in the message, it appears that the begin program state is not getting cleared up when the program terminates unexpectedly.  I don't see this problem, but you can put your Submit's in a try/except block to clean up better.

try:
    spss.Submit(....)
except:
    raise

Note that you can have multiple SPSS commands in the same Submit call.



Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        ChetMeinzer <[hidden email]>
To:        [hidden email],
Date:        07/14/2014 02:07 PM
Subject:        [SPSSX-L] spss.Submit error won't allow me to run python again in same session
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




when i run spss.Submit, and the code has an error, I am not able to run a
python block again in the same session.

for example:
*
begin program.
spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
*the next line causes an error because it is out of order.
spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav'
/file=* /by ru.")
spss.Submit("exe.")
end program.

begin program.
print '<code here>'
end program.*

It looks normal, but when the processor starts the next block, the lower
right corner says
'running begin program.'

but nothing ever happens again... until i shut down the engine.

Any idea what i'm doing wrong?



--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699.html
Sent from the SPSSX Discussion mailing list archive at 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


===================== 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: spss.Submit error won't allow me to run python again in same session

ChetMeinzer
I'm afraid my updates did not show up.   here is my updated message


when i run spss.Submit, and the code has an error, I am not able to run a python block again in the same session.

for example:

begin program.
import spss
spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
#*the next line causes an error because it is out of order.
spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav' /file=* /by ru.")
spss.Submit("exe.")
end program.

begin program.
print '<code here>'
end program.

It looks normal, but when the processor starts the next block, the lower right corner says
'running begin program.'

but nothing ever happens again... until i shut down the engine.

Any idea what i'm doing wrong?


I also tried this

begin program.
import spss
try:
 spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
 spss.Submit("select if primdx='295.70' and xdate.year(opdate)=2012.")
 spss.Submit("exe.")
 spss.Submit("sort cases by case.")
 spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav' /file=* /by ru.")
 spss.Submit("exe.")
 spss.Submit("save outfile='//covenas\decisionsupport/aaaaa1.sav'.")
except Exception,e:
 print e
end program.


no difference.


It's specifically a sort gone wrong that kills it.

this works fine

    begin program.
    not code
    end program.
   
    begin program.
    print 'does it stop?'
    end program.


Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: spss.Submit error won't allow me to run python again in same session

Bruce Weaver
Administrator
In reply to this post by Jon K Peck
Jon, I believe the asterisk you are seeing is a result of the OP using the BOLD feature when posting via Nabble.  See the original post here, for example:

http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-td5726699.html

Notice that there is no asterisk.

HTH.


Jon K Peck wrote
If that * below is literally part of your syntax, then the begin program
command would be treated as a comment, and many things would go wrong.
Assuming that it is just text in the message, it appears that the begin
program state is not getting cleared up when the program terminates
unexpectedly.  I don't see this problem, but you can put your Submit's in
a try/except block to clean up better.

try:
    spss.Submit(....)
except:
    raise

Note that you can have multiple SPSS commands in the same Submit call.



Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:   ChetMeinzer <[hidden email]>
To:     [hidden email],
Date:   07/14/2014 02:07 PM
Subject:        [SPSSX-L] spss.Submit error won't allow me to run python
again in same session
Sent by:        "SPSSX(r) Discussion" <[hidden email]>



when i run spss.Submit, and the code has an error, I am not able to run a
python block again in the same session.

for example:
*
begin program.
spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
*the next line causes an error because it is out of order.
spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav'
/file=* /by ru.")
spss.Submit("exe.")
end program.

begin program.
print '<code here>'
end program.*

It looks normal, but when the processor starts the next block, the lower
right corner says
'running begin program.'

but nothing ever happens again... until i shut down the engine.

Any idea what i'm doing wrong?



--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699.html

Sent from the SPSSX Discussion mailing list archive at 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



=====================
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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: spss.Submit error won't allow me to run python again in same session

ChetMeinzer
Yes, I  didnt catch that and will avoid bold. Sorry.

Sent from mobile

On Jul 14, 2014, at 14:57, "Bruce Weaver [via SPSSX Discussion]" <[hidden email]<mailto:[hidden email]>> wrote:

Jon, I believe the asterisk you are seeing is a result of the OP using the BOLD feature when posting via Nabble.  See the original post here, for example:

http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-td5726699.html

Notice that there is no asterisk.

HTH.


Jon K Peck wrote
If that * below is literally part of your syntax, then the begin program
command would be treated as a comment, and many things would go wrong.
Assuming that it is just text in the message, it appears that the begin
program state is not getting cleared up when the program terminates
unexpectedly.  I don't see this problem, but you can put your Submit's in
a try/except block to clean up better.

try:
    spss.Submit(....)
except:
    raise

Note that you can have multiple SPSS commands in the same Submit call.



Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]</user/SendEmail.jtp?type=node&node=5726703&i=0>
phone: 720-342-5621




From:   ChetMeinzer <[hidden email]</user/SendEmail.jtp?type=node&node=5726703&i=1>>
To:     [hidden email]</user/SendEmail.jtp?type=node&node=5726703&i=2>,
Date:   07/14/2014 02:07 PM
Subject:        [SPSSX-L] spss.Submit error won't allow me to run python
again in same session
Sent by:        "SPSSX(r) Discussion" <[hidden email]</user/SendEmail.jtp?type=node&node=5726703&i=3>>



when i run spss.Submit, and the code has an error, I am not able to run a
python block again in the same session.

for example:
*
begin program.
spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
*the next line causes an error because it is out of order.
spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav'
/file=* /by ru.")
spss.Submit("exe.")
end program.

begin program.
print '<code here>'
end program.*

It looks normal, but when the processor starts the next block, the lower
right corner says
'running begin program.'

but nothing ever happens again... until i shut down the engine.

Any idea what i'm doing wrong?



--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699.html

Sent from the SPSSX Discussion mailing list archive at Nabble.com<http://Nabble.com>.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email]</user/SendEmail.jtp?type=node&node=5726703&i=4> (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]</user/SendEmail.jtp?type=node&node=5726703&i=5> (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
--
Bruce Weaver
[hidden email]<mailto:[hidden email]>
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.


________________________________
If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699p5726703.html
To unsubscribe from spss.Submit error won't allow me to run python again in same session, click here<
NAML<
http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Reply | Threaded
Open this post in threaded view
|

Re: spss.Submit error won't allow me to run python again in same session

Jon K Peck
In reply to this post by Bruce Weaver
I figured that the * was probably markup in one of the zillion simple markup languages.  But Chet's issue is not so simple as a bad SORT command.  I can run similar syntax and just get a normal error stop on the sort, and subsequent programs run fine.  I tried this in V22 and V21.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Bruce Weaver <[hidden email]>
To:        [hidden email],
Date:        07/14/2014 03:58 PM
Subject:        Re: [SPSSX-L] spss.Submit error won't allow me to run python again in same session
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Jon, I believe the asterisk you are seeing is a result of the OP using the
BOLD feature when posting via Nabble.  See the original post here, for
example:

http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-td5726699.html

Notice that there is no asterisk.

HTH.



Jon K Peck wrote
> If that * below is literally part of your syntax, then the begin program
> command would be treated as a comment, and many things would go wrong.
> Assuming that it is just text in the message, it appears that the begin
> program state is not getting cleared up when the program terminates
> unexpectedly.  I don't see this problem, but you can put your Submit's in
> a try/except block to clean up better.
>
> try:
>     spss.Submit(....)
> except:
>     raise
>
> Note that you can have multiple SPSS commands in the same Submit call.
>
>
>
> Jon Peck (no "h") aka Kim
> Senior Software Engineer, IBM

> peck@.ibm

> phone: 720-342-5621
>
>
>
>
> From:   ChetMeinzer &lt;

> cmeinzer@

> &gt;
> To:    

> SPSSX-L@.uga

> ,
> Date:   07/14/2014 02:07 PM
> Subject:        [SPSSX-L] spss.Submit error won't allow me to run python
> again in same session
> Sent by:        "SPSSX(r) Discussion" &lt;

> SPSSX-L@.uga

> &gt;
>
>
>
> when i run spss.Submit, and the code has an error, I am not able to run a
> python block again in the same session.
>
> for example:
> *
> begin program.
> spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
> *the next line causes an error because it is out of order.
> spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav'
> /file=* /by ru.")
> spss.Submit("exe.")
> end program.
>
> begin program.
> print '
> <code here>
> '
> end program.*
>
> It looks normal, but when the processor starts the next block, the lower
> right corner says
> 'running begin program.'
>
> but nothing ever happens again... until i shut down the engine.
>
> Any idea what i'm doing wrong?
>
>
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699.html
>
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

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

> LISTSERV@.UGA

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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699p5726703.html
Sent from the SPSSX Discussion mailing list archive at 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


===================== 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: spss.Submit error won't allow me to run python again in same session

ChetMeinzer
Thank you for testing. I tried on multiple v22 client and server edition, and I'm having the same problem. Perhaps I'm not upto date on patches?

Sent from mobile

On Jul 14, 2014, at 16:42, "Jon K Peck [via SPSSX Discussion]" <[hidden email]<mailto:[hidden email]>> wrote:

I figured that the * was probably markup in one of the zillion simple markup languages.  But Chet's issue is not so simple as a bad SORT command.  I can run similar syntax and just get a normal error stop on the sort, and subsequent programs run fine.  I tried this in V22 and V21.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]</user/SendEmail.jtp?type=node&node=5726705&i=0>
phone: 720-342-5621




From:        Bruce Weaver <[hidden email]</user/SendEmail.jtp?type=node&node=5726705&i=1>>
To:        [hidden email]</user/SendEmail.jtp?type=node&node=5726705&i=2>,
Date:        07/14/2014 03:58 PM
Subject:        Re: [SPSSX-L] spss.Submit error won't allow me to run python again in same session
Sent by:        "SPSSX(r) Discussion" <[hidden email]</user/SendEmail.jtp?type=node&node=5726705&i=3>>
________________________________



Jon, I believe the asterisk you are seeing is a result of the OP using the
BOLD feature when posting via Nabble.  See the original post here, for
example:

http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-td5726699.html

Notice that there is no asterisk.

HTH.



Jon K Peck wrote

> If that * below is literally part of your syntax, then the begin program
> command would be treated as a comment, and many things would go wrong.
> Assuming that it is just text in the message, it appears that the begin
> program state is not getting cleared up when the program terminates
> unexpectedly.  I don't see this problem, but you can put your Submit's in
> a try/except block to clean up better.
>
> try:
>     spss.Submit(....)
> except:
>     raise
>
> Note that you can have multiple SPSS commands in the same Submit call.
>
>
>
> Jon Peck (no "h") aka Kim
> Senior Software Engineer, IBM

> peck@.ibm

> phone: 720-342-5621
>
>
>
>
> From:   ChetMeinzer &lt;

> cmeinzer@

> &gt;
> To:

> SPSSX-L@.uga

> ,
> Date:   07/14/2014 02:07 PM
> Subject:        [SPSSX-L] spss.Submit error won't allow me to run python
> again in same session
> Sent by:        "SPSSX(r) Discussion" &lt;

> SPSSX-L@.uga

> &gt;
>
>
>
> when i run spss.Submit, and the code has an error, I am not able to run a
> python block again in the same session.
>
> for example:
> *
> begin program.
> spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
> *the next line causes an error because it is out of order.
> spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav'
> /file=* /by ru.")
> spss.Submit("exe.")
> end program.
>
> begin program.
> print '
> <code here>
> '
> end program.*
>
> It looks normal, but when the processor starts the next block, the lower
> right corner says
> 'running begin program.'
>
> but nothing ever happens again... until i shut down the engine.
>
> Any idea what i'm doing wrong?
>
>
>
> --
> View this message in context:
> http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699.html
>
> Sent from the SPSSX Discussion mailing list archive at Nabble.com<http://Nabble.com>.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

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

> LISTSERV@.UGA

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





-----
--
Bruce Weaver
[hidden email]</user/SendEmail.jtp?type=node&node=5726705&i=4>
http://sites.google.com/a/lakeheadu.ca/bweaver/<http://sites.google.com/a/lakeheadu.ca/bweaver>

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699p5726703.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com<http://Nabble.com>.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email]</user/SendEmail.jtp?type=node&node=5726705&i=5> (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]</user/SendEmail.jtp?type=node&node=5726705&i=6> (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

________________________________
If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699p5726705.html
To unsubscribe from spss.Submit error won't allow me to run python again in same session, click here<
NAML<
http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Reply | Threaded
Open this post in threaded view
|

RE: spss.Submit error won't allow me to run python again in same session

ChetMeinzer
In reply to this post by Jon K Peck

It is not the sort that is killing me, it is when the match files fails, it is unrecoverable.

 

When you created the error, did you match on something that was not sorted correctly, because that is the only time I have the problem.

 

Thanks again,

Chet

 

From: Jon K Peck [via SPSSX Discussion] [mailto:[hidden email]]
Sent: Monday, July 14, 2014 4:42 PM
To: Meinzer, Chet BHCS
Subject: Re: spss.Submit error won't allow me to run python again in same session

 

I figured that the * was probably markup in one of the zillion simple markup languages.  But Chet's issue is not so simple as a bad SORT command.  I can run similar syntax and just get a normal error stop on the sort, and subsequent programs run fine.  I tried this in V22 and V21.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Bruce Weaver <[hidden email]>
To:        [hidden email],
Date:        07/14/2014 03:58 PM
Subject:        Re: [SPSSX-L] spss.Submit error won't allow me to run python again in same session
Sent by:        "SPSSX(r) Discussion" <[hidden email]>





Jon, I believe the asterisk you are seeing is a result of the OP using the
BOLD feature when posting via Nabble.  See the original post here, for
example:

http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-td5726699.html

Notice that there is no asterisk.

HTH.



Jon K Peck wrote
> If that * below is literally part of your syntax, then the begin program
> command would be treated as a comment, and many things would go wrong.
> Assuming that it is just text in the message, it appears that the begin
> program state is not getting cleared up when the program terminates
> unexpectedly.  I don't see this problem, but you can put your Submit's in
> a try/except block to clean up better.
>
> try:
>     spss.Submit(....)
> except:
>     raise
>
> Note that you can have multiple SPSS commands in the same Submit call.
>
>
>
> Jon Peck (no "h") aka Kim
> Senior Software Engineer, IBM

> [hidden email]

> phone: 720-342-5621
>
>
>
>
> From:   ChetMeinzer &lt;

> cmeinzer@

> &gt;
> To:    

> [hidden email]

> ,
> Date:   07/14/2014 02:07 PM
> Subject:        [SPSSX-L] spss.Submit error won't allow me to run python
> again in same session
> Sent by:        "SPSSX(r) Discussion" &lt;

> [hidden email]

> &gt;
>
>
>
> when i run spss.Submit, and the code has an error, I am not able to run a
> python block again in the same session.
>
> for example:
> *
> begin program.
> spss.Submit("GET  FILE='//covenas/decisionsupport/episodes.sav'.")
> *the next line causes an error because it is out of order.
> spss.Submit("match files /table='//covenas/decisionsupport/rutable.sav'
> /file=* /by ru.")
> spss.Submit("exe.")
> end program.
>
> begin program.
> print '
> <code here>
> '
> end program.*
>
> It looks normal, but when the processor starts the next block, the lower
> right corner says
> 'running begin program.'
>
> but nothing ever happens again... until i shut down the engine.
>
> Any idea what i'm doing wrong?
>
>
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699.html
>
> Sent from the SPSSX Discussion mailing list archive at 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
>
>
>
> =====================
> 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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/spss-Submit-error-won-t-allow-me-to-run-python-again-in-same-session-tp5726699p5726703.html
Sent from the SPSSX Discussion mailing list archive at 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


===================== 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 unsubscribe from spss.Submit error won't allow me to run python again in same session, click here.
NAML