Monitoring SPSS progress in real time

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

Monitoring SPSS progress in real time

John F Hall

I’m using Ctrl+H to find and replace the text “ 8 ‘DK’” with “” (nothing) in a syntax file with 29,000 lines.  It worked on a previous file with 100, 000 liones in about 25 minutes.  This one has been stuck for over an hour.  How can I find out what it is doing (if anything) and how far it has got?

 

John F Hall (Mr)

[Retired academic survey researcher]

(SPSS 24: Windows 7 Pro 32-bit)

Email:   [hidden email] 

Website: www.surveyresearch.weebly.com

SPSS start page:  www.surveyresearch.weebly.com/1-survey-analysis-workshop

 

 

===================== 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: Monitoring SPSS progress in real time

David Marso
Administrator
A simple Find/Replace of this sort should take mere seconds.  
Perhaps do this in Notepad or something else?
I suspect maybe syntax highlighting or some such beast is getting in the way?
---
John F Hall wrote
I'm using Ctrl+H to find and replace the text " 8 'DK'" with "" (nothing) in
a syntax file with 29,000 lines.  It worked on a previous file with 100, 000
liones in about 25 minutes.  This one has been stuck for over an hour.  How
can I find out what it is doing (if anything) and how far it has got?
 
John F Hall (Mr)
[Retired academic survey researcher]
(SPSS 24: Windows 7 Pro 32-bit)
Email:    <mailto:[hidden email]> [hidden email] 
Website:  <http://www.surveyresearch.weebly.com/>
www.surveyresearch.weebly.com
SPSS start page:
<http://surveyresearch.weebly.com/1-survey-analysis-workshop.html>
www.surveyresearch.weebly.com/1-survey-analysis-workshop
 
 

=====================
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
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Monitoring SPSS progress in real time

Albert-Jan Roskam-3
In reply to this post by John F Hall
from os.path import splitext
syntax = r"c:\some\syntax.sps"
with open(syntax, "rb") as infile, open(splitext(syntax)[0] + _subst.sps", "wb") as outfile:
    for line in infile:
        line = line.replace(“ 8 ‘DK’", "')
    outfile.write(line)


Date: Wed, 25 May 2016 10:37:40 +0200
From: [hidden email]
Subject: [SPSSX-L] Monitoring SPSS progress in real time
To: [hidden email]

I’m using Ctrl+H to find and replace the text “ 8 ‘DK’” with “” (nothing) in a syntax file with 29,000 lines.  It worked on a previous file with 100, 000 liones in about 25 minutes.  This one has been stuck for over an hour.  How can I find out what it is doing (if anything) and how far it has got?

 

John F Hall (Mr)

[Retired academic survey researcher]

(SPSS 24: Windows 7 Pro 32-bit)

Email:   johnfhall@... 

Website: www.surveyresearch.weebly.com

SPSS start page:  www.surveyresearch.weebly.com/1-survey-analysis-workshop

 

 

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@... (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