Re: TdRunSyntax don't work in SPSS 16

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

Re: TdRunSyntax don't work in SPSS 16

Jon Karl Arnason
Hi,

Somewhile ago there were discussions about syntax editing in Textpad which
was able until SPSS 15 but didn't work in SPSS 16.

In my company we have not upgrated to latest version of SPSS as we use the
advantages of clip library in Textpad, and sophisticated serch and replace
in there. We are thus still running SPSS 15.

Now we are considering to upgrade to PASW 18.

Does anyone know if TdRunSyntax does work with PASW 18 or some other
connector beetween Textpad and SPSS made available in last two years.

Kind regards,
Jon Karl Arnason


On Wed, 19 Dec 2007 10:19:26 -0500, Daniel Robertson <[hidden email]>
wrote:

>Some SPSS users prefer to code syntax using text editors such as Textpad
>because they offers features that the SPSS syntax window does not, such
>as syntax highlighting, outlining, and sophisticated search and replace.
>Someone at one point wrote a little program called tdRunSyntax.exe to
>take the syntax from Textpad and submit it to SPSS, which I believe
>worked by interfacing with runsyntx.exe -- see
><http://www.spsstools.net/FAQ.htm#AlternativeEditor?>. I think this is
>what the OP was talking about.
>
>Without knowing anything about how tdRunSyntax.exe worked, my guess is
>that given the rewrite in Java, it won't work with v.16 -- one reason
>being that runsyntx.exe does not appear in the v.16 directory.
>
>Dan R.
>
>Melissa Ives wrote:
>> I think I am missing something.
>> What is the advantage to using textpad instead of an SPSS syntax file?
>>
>> Melissa
>>
>> -----Original Message-----
>> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
>> Auberth Hurtado
>> Sent: Tuesday, December 18, 2007 4:56 PM
>> To: [hidden email]
>> Subject: Re: [SPSSX-L] TdRunSyntax don't work in SPSS 16
>>
>> Hi,
>>
>> I mean, run the syntax from Texpad.
>> I open a file in SPSS v16 and the syntax and run something. I get an
>> error:
>> "Run-time error'429 'ActiveX component can't create object".
>>
>> Thanks
>>
>> -----Mensaje original-----
>> De: ViAnn Beadle [mailto:[hidden email]] Enviado el: Martes, 18 de
>> Diciembre de 2007 05:10 p.m.
>> Para: 'Auberth Hurtado'; [hidden email]
>> Asunto: RE: TdRunSyntax don't work in SPSS 16
>>
>> Do you mean that SPSS doesn't launch from Textpad? What command-line
>> argument does it use to launch SPSS? The executable's name has changed
>> to spss.exe.
>>
>> -----Original Message-----
>> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
>> Auberth Hurtado
>> Sent: Tuesday, December 18, 2007 10:34 AM
>> To: [hidden email]
>> Subject: TdRunSyntax don't work in SPSS 16
>>
>> Hi,
>>
>>
>>
>> I work the syntax of SPSS in textpad, but since I installed version 16,
>> does not run, someone knows how to make it work the TdRunSyntax in
>> version 16?
>>
>>
>>
>> Thanks.
>>
>> =====================
>> 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
>>
>>
>> PRIVILEGED AND CONFIDENTIAL INFORMATION
>> This transmittal and any attachments may contain PRIVILEGED AND
>> CONFIDENTIAL information and is intended only for the use of the
>> addressee. If you are not the designated recipient, or an employee
>> or agent authorized to deliver such transmittals to the designated
>> recipient, you are hereby notified that any dissemination,
>> copying or publication of this transmittal is strictly prohibited. If
>> you have received this transmittal in error, please notify us
>> immediately by replying to the sender and delete this copy from your
>> system. You may also call us at (309) 827-6026 for assistance.
>>
>> =====================
>> 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
>>
>>
>
>--
>Daniel Robertson
>Senior Research and Planning Associate
>Institutional Research and Planning
>Cornell University / irp.cornell.edu
>
>=====================
>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: TdRunSyntax don't work in SPSS 16

Jon K Peck

I have not heard of any revival of the TextPad connection, but starting with V17, the SPSS syntax editor has syntax coloring, error checking, code completion, bookmarks, etc.  The syntax coloring and checking is much more accurate than what TextPad did, and, of course, this is fully integrated into SPSS Statistics.

Regards,
Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435



From: Jon Karl Arnason <[hidden email]>
To: [hidden email]
Date: 01/23/2010 07:00 AM
Subject: Re: [SPSSX-L] TdRunSyntax don't work in SPSS 16
Sent by: "SPSSX(r) Discussion" <[hidden email]>





Hi,

Somewhile ago there were discussions about syntax editing in Textpad which
was able until SPSS 15 but didn't work in SPSS 16.

In my company we have not upgrated to latest version of SPSS as we use the
advantages of clip library in Textpad, and sophisticated serch and replace
in there. We are thus still running SPSS 15.

Now we are considering to upgrade to PASW 18.

Does anyone know if TdRunSyntax does work with PASW 18 or some other
connector beetween Textpad and SPSS made available in last two years.

Kind regards,
Jon Karl Arnason




Reply | Threaded
Open this post in threaded view
|

Re: TdRunSyntax don't work in SPSS 16

Jón Karl Árnason

Thank you for the answer.

 

We have now upgraded  to PASW18, but the thing we miss the most from the old TextPad connection is that in TextPad we had clip library with block of commands for specific purpose.

For example if we were running a 1-5 scale question we would click on that header in the clip library and get the block below.

 

TITLE 'Question on a Scale 1-5'.

FREQ XXX.

COMPUTE M_XXX=6-XXX.

DES M_XXX.

MEANS M_XXX by sex agegroup income /STA ANOVA.

CRO sex agegroup income  BY XXX /STA=CHISQ/COUNT=ASIS.

 

Is something like that available in V18 or comming in V19?

 

Kind regards,

Jón Karl

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Jon K Peck
Sent: 23. janúar 2010 14:24
To: [hidden email]
Subject: Re: TdRunSyntax don't work in SPSS 16

 


I have not heard of any revival of the TextPad connection, but starting with V17, the SPSS syntax editor has syntax coloring, error checking, code completion, bookmarks, etc.  The syntax coloring and checking is much more accurate than what TextPad did, and, of course, this is fully integrated into SPSS Statistics.

Regards,
Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435


From:

Jon Karl Arnason <[hidden email]>

To:

[hidden email]

Date:

01/23/2010 07:00 AM

Subject:

Re: [SPSSX-L] TdRunSyntax don't work in SPSS 16

Sent by:

"SPSSX(r) Discussion" <[hidden email]>

 





Hi,

Somewhile ago there were discussions about syntax editing in Textpad which
was able until SPSS 15 but didn't work in SPSS 16.

In my company we have not upgrated to latest version of SPSS as we use the
advantages of clip library in Textpad, and sophisticated serch and replace
in there. We are thus still running SPSS 15.

Now we are considering to upgrade to PASW 18.

Does anyone know if TdRunSyntax does work with PASW 18 or some other
connector beetween Textpad and SPSS made available in last two years.

Kind regards,
Jon Karl Arnason





 

Jón Karl Árnason
Gagnagreining / Data Analysis
Capacent Gallup


Tel: +354 540 1000
Direct: +354 540 1039
[hidden email]

Borgartúni 27
105 Reykjavík
www.capacent.is

CAPACENT is the leading Nordic business consultancy. Capacent is the competitive business consultancy alternative. We focus on improving our clients’ business performance by providing sustainable, no-nonsense results.

Disclaimer

Reply | Threaded
Open this post in threaded view
|

Re: TdRunSyntax don't work in SPSS 16

Jon K Peck

There are a few alternatives you might consider to replace the TextPad clip library mechanism.

You can set named bookmarks in the syntax editor, so if you create a bookmark in a syntax file corresponding to each clip, you can jump to them by name (Tools>Go To Bookmark) in that window and copy as needed.

Of course, if these are separate files, they can be executed with the INSERT command.

If you have a library of syntax and want to be able to run it, possibly passing parameters, you can convert all this to a set of functions in a Python module and then just use the Submit api to execute it.

For example, this fragment could be converted into a Python function like this:
TITLE 'Question on a Scale 1-5'.
FREQ XXX.
COMPUTE M_XXX=6-XXX.
DES M_XXX.
MEANS M_XXX by sex agegroup income /STA ANOVA.
CRO sex agegroup income  BY XXX /STA=CHISQ/COUNT=ASIS.

becomes
def oneToFive():
  spss.Submit(r"""TITLE 'Question on a Scale 1-5'.
FREQ XXX.
COMPUTE M_XXX=6-XXX.
DES M_XXX.
MEANS M_XXX by sex agegroup income /STA ANOVA.
CRO sex agegroup income  BY XXX /STA=CHISQ/COUNT=ASIS.""")

(It could be parameterized, too).

So suppose you have saved this collection in a module called utilities.py.

Then you execute it like this (I've supposed another function, too).
begin program.
import spss, utilities
utilities.oneToFive()
utilities.someotherfunction()
end program.

The advantage is that rather than duplicating the code each time you use it, you just build a library of routines that live in one place and can be updated just once if needed.  Most likely you would want parameters, and that is easily accommodated.

This approach, of course, requires some Python learning, but note that any block of syntax can be converted to a Python function trivially without modifying the syntax itself (unless you want to parameterize it), and you wind up with a central, reusable utility module.

HTH,
Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435



From: Jón Karl Árnason <[hidden email]>
To: Jon K Peck/Chicago/IBM@IBMUS, <[hidden email]>
Date: 09/08/2010 09:37 AM
Subject: RE:      Re: TdRunSyntax don't work in SPSS 16





Thank you for the answer.
 
We have now upgraded  to PASW18, but the thing we miss the most from the old TextPad connection is that in TextPad we had clip library with block of commands for specific purpose.
For example if we were running a 1-5 scale question we would click on that header in the clip library and get the block below.
 
TITLE 'Question on a Scale 1-5'.
FREQ XXX.
COMPUTE M_XXX=6-XXX.
DES M_XXX.
MEANS M_XXX by sex agegroup income /STA ANOVA.
CRO sex agegroup income  BY XXX /STA=CHISQ/COUNT=ASIS.
 
Is something like that available in V18 or comming in V19?
 
Kind regards,
Jón Karl
 
From: SPSSX(r) Discussion [[hidden email]] On Behalf Of Jon K Peck
Sent:
23. janúar 2010 14:24
To:
[hidden email]
Subject:
Re: TdRunSyntax don't work in SPSS 16

 

I have not heard of any revival of the TextPad connection, but starting with V17, the SPSS syntax editor has syntax coloring, error checking, code completion, bookmarks, etc.  The syntax coloring and checking is much more accurate than what TextPad did, and, of course, this is fully integrated into SPSS Statistics.


Regards,

Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435

From: Jon Karl Arnason <[hidden email]>
To: [hidden email]
Date: 01/23/2010 07:00 AM
Subject: Re: [SPSSX-L] TdRunSyntax don't work in SPSS 16
Sent by: "SPSSX(r) Discussion" <[hidden email]>

 






Hi,

Somewhile ago there were discussions about syntax editing in Textpad which
was able until SPSS 15 but didn't work in SPSS 16.

In my company we have not upgrated to latest version of SPSS as we use the
advantages of clip library in Textpad, and sophisticated serch and replace
in there. We are thus still running SPSS 15.

Now we are considering to upgrade to PASW 18.

Does anyone know if TdRunSyntax does work with PASW 18 or some other
connector beetween Textpad and SPSS made available in last two years.

Kind regards,
Jon Karl Arnason




 

Jón Karl Árnason
Gagnagreining / Data Analysis
Capacent Gallup


Tel: +354 540 1000
Direct: +354 540 1039
[hidden email]

Borgartúni 27
105 Reykjavík

www.capacent.is

CAPACENT is the leading Nordic business consultancy. Capacent is the competitive business consultancy alternative. We focus on improving our clients’ business performance by providing sustainable, no-nonsense results.
Disclaimer