SPSS 20 - problem with syntax editor

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

SPSS 20 - problem with syntax editor

Dawn Wiest
Dear listserv,

I am writing to ask if anyone on the list has experienced a similar
problem and if so, how the problem was resolved. I recently installed
SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
code into the syntax editor, everything slows down after a few minutes
(i.e. I type but there is a delay between typing and what appears on
screen) and then eventually freezes. Even when the syntax editor
unfreezes, I still cannot place the cursor where I need it, or delete
code, or type any code without a delay. It simply becomes impossible to
continue working in the document. When I try to save the document before
closing it, I receive the message “Failed to save document”.  I then
close the document and reopen it, but the document is 100% empty. Also,
the name I gave the document when I created it and saved it for the
first time no longer appears in the upper left hand corner. Instead, the
banner reads “IBM Statistics Syntax Editor” as if I had opened a new
syntax document.

I had this exact problem with SPSS 19 last year when my computer ran on
Windows XP. The problem was solved once I downloaded and ran the patch
to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
and I haven’t had much luck with IBM technical support.

Any suggestions would be very much appreciated.


Dawn Wiest, Ph.D.
Senior Research Analyst
Research Center - 7th Floor
American College of Physicians
190 North Independence Mall West Philadelphia, PA 19106-1572

[hidden email]
(215) 351-2561

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

Automatic reply: SPSS 20 - problem with syntax editor

Tierney, Mary Lou

I am PTOB 11-13 July and will respond to email upon my return on 16 July.

 

For assistance with the MITRE Innovation Program please contact the [hidden email]

 

For assistance with Project/Portfolio Pages or Discover, please contact the [hidden email]

 

For assistance with other Innovation Zone sites, such as CI&T InZone, please contact [hidden email].

 

 

Regards,

Mary Lou

Reply | Threaded
Open this post in threaded view
|

Re: SPSS 20 - problem with syntax editor

Jignesh Sutar
In reply to this post by Dawn Wiest
Hi,
 
I don't experience all the problems you mention. I do however experience a lag between typing and the text appearing on the syntax (on SPSS v20). This is noticeable when the file size is large. For example, I have a syntax file which approaches 500MB with over 5000 lines of code. Simply typing and editing the code cause a delay for the action to be seen on the screen. If however opening a new empty syntax and typing no lag exists. And if you happen to make a typo and hit the undo button it takes an eternity for the undo to affect.
 
I have also disabled auto-complete to help with this but it doesn't really solve it. Maybe these additional features; colour coding of syntax, auto complete use up to much resources? I have no problems whatsoever if I go back working with the same syntax file on SPSS v15.
 
Sorry not an answer to your query but to re-iterate there is something serious wrong with the syntax editor and would welcome a response also.
 
Jignesh

 
On 11 July 2012 16:34, Dawn Wiest <[hidden email]> wrote:
Dear listserv,

I am writing to ask if anyone on the list has experienced a similar
problem and if so, how the problem was resolved. I recently installed
SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
code into the syntax editor, everything slows down after a few minutes
(i.e. I type but there is a delay between typing and what appears on
screen) and then eventually freezes. Even when the syntax editor
unfreezes, I still cannot place the cursor where I need it, or delete
code, or type any code without a delay. It simply becomes impossible to
continue working in the document. When I try to save the document before
closing it, I receive the message “Failed to save document”.  I then
close the document and reopen it, but the document is 100% empty. Also,
the name I gave the document when I created it and saved it for the
first time no longer appears in the upper left hand corner. Instead, the
banner reads “IBM Statistics Syntax Editor” as if I had opened a new
syntax document.

I had this exact problem with SPSS 19 last year when my computer ran on
Windows XP. The problem was solved once I downloaded and ran the patch
to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
and I haven’t had much luck with IBM technical support.

Any suggestions would be very much appreciated.


Dawn Wiest, Ph.D.
Senior Research Analyst
Research Center - 7th Floor
American College of Physicians
190 North Independence Mall West Philadelphia, PA 19106-1572

[hidden email]
(215) 351-2561

=====================
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 20 - problem with syntax editor

Art Kendall
Although I have often had projects with over 5000 lines of code, especially if one includes data definition, I never had all of that in one file.
How can you wrap your mind around all that syntax? How can your quality assurance process deal with that all in one chunk?

Way back before INCLUDE was available, I often used a process of,
syntax1 against datafile1 ==> systemfile1
syntax2 against systemfile1 ==> systemfile2
syntax3 against systemfile2 ==> systemfile3
etc.

when I had several instruments which needed to be scored I did something like
syntax1 against itemfile1 == >systemfile_with_scores_only1
syntax2 against itemfile2 == >systemfile_with_scores_only2
syntax3 against itemfile3 == >systemfile_with_scores_only3
syntax4 against itemfile4 == >systemfile_with_scores_only4

syntax5 combined the 4 system files into 1 working system file.

The newer INSERT command made life even easier. I have blocks of syntax that do transformations and blocks that check on those transformations during debugging.
Include file=" ... set1.sps".
Include file=" ... checks1.sps".
Include file=" ... set2.sps".
Include file=" ... checks2.sps".

the files with checks can be commented out as you build the file.

Also if your syntax is most transformations, are you sure that you are not re-inventing something that already exists?

Are you doing an analysis or setting up some kind of production application?
Art Kendall
Social Research Consultants
On 7/12/2012 4:09 AM, J Sutar wrote:
Hi,
I don't experience all the problems you mention. I do however experience a lag between typing and the text appearing on the syntax (on SPSS v20). This is noticeable when the file size is large. For example, I have a syntax file which approaches 500MB with over 5000 lines of code. Simply typing and editing the code cause a delay for the action to be seen on the screen. If however opening a new empty syntax and typing no lag exists. And if you happen to make a typo and hit the undo button it takes an eternity for the undo to affect.
I have also disabled auto-complete to help with this but it doesn't really solve it. Maybe these additional features; colour coding of syntax, auto complete use up to much resources? I have no problems whatsoever if I go back working with the same syntax file on SPSS v15.
Sorry not an answer to your query but to re-iterate there is something serious wrong with the syntax editor and would welcome a response also.
Jignesh

On 11 July 2012 16:34, Dawn Wiest <[hidden email]> wrote:
Dear listserv,

I am writing to ask if anyone on the list has experienced a similar
problem and if so, how the problem was resolved. I recently installed
SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
code into the syntax editor, everything slows down after a few minutes
(i.e. I type but there is a delay between typing and what appears on
screen) and then eventually freezes. Even when the syntax editor
unfreezes, I still cannot place the cursor where I need it, or delete
code, or type any code without a delay. It simply becomes impossible to
continue working in the document. When I try to save the document before
closing it, I receive the message “Failed to save document”. I then
close the document and reopen it, but the document is 100% empty. Also,
the name I gave the document when I created it and saved it for the
first time no longer appears in the upper left hand corner. Instead, the
banner reads “IBM Statistics Syntax Editor” as if I had opened a new
syntax document.

I had this exact problem with SPSS 19 last year when my computer ran on
Windows XP. The problem was solved once I downloaded and ran the patch
to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
and I haven’t had much luck with IBM technical support.

Any suggestions would be very much appreciated.


Dawn Wiest, Ph.D.
Senior Research Analyst
Research Center - 7th Floor
American College of Physicians
190 North Independence Mall West Philadelphia, PA 19106-1572

[hidden email]
(215) 351-2561

=====================
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
Art Kendall
Social Research Consultants
Reply | Threaded
Open this post in threaded view
|

Re: SPSS 20 - problem with syntax editor

David Marso
Administrator
In reply to this post by Jignesh Sutar
@ Jignesh.
Some thoughts:
You might wanr to look at the INSERT and INCLUDE commands.
I'll bet there is considerable repetition.
See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
If you have tones of lines:
IF (condition) blah
......
look at RECODE.
I can't imagine how painful it is to scan through 5000 lines of code. Still it would NOT be 500M.
YMMV.
J Sutar wrote
Hi,

I don't experience all the problems you mention. I do however experience a
lag between typing and the text appearing on the syntax (on SPSS v20). This
is noticeable when the file size is large. For example, I have a syntax
file which approaches 500MB with over 5000 lines of code. Simply typing and
editing the code cause a delay for the action to be seen on the screen. If
however opening a new empty syntax and typing no lag exists. And if you
happen to make a typo and hit the undo button it takes an eternity for the
undo to affect.

I have also disabled auto-complete to help with this but it doesn't really
solve it. Maybe these additional features; colour coding of syntax, auto
complete use up to much resources? I have no problems whatsoever if I go
back working with the same syntax file on SPSS v15.

Sorry not an answer to your query but to re-iterate there is something
serious wrong with the syntax editor and would welcome a response also.

Jignesh


On 11 July 2012 16:34, Dawn Wiest <[hidden email]> wrote:

> Dear listserv,
>
> I am writing to ask if anyone on the list has experienced a similar
> problem and if so, how the problem was resolved. I recently installed
> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
> code into the syntax editor, everything slows down after a few minutes
> (i.e. I type but there is a delay between typing and what appears on
> screen) and then eventually freezes. Even when the syntax editor
> unfreezes, I still cannot place the cursor where I need it, or delete
> code, or type any code without a delay. It simply becomes impossible to
> continue working in the document. When I try to save the document before
> closing it, I receive the message “Failed to save document”.  I then
> close the document and reopen it, but the document is 100% empty. Also,
> the name I gave the document when I created it and saved it for the
> first time no longer appears in the upper left hand corner. Instead, the
> banner reads “IBM Statistics Syntax Editor” as if I had opened a new
> syntax document.
>
> I had this exact problem with SPSS 19 last year when my computer ran on
> Windows XP. The problem was solved once I downloaded and ran the patch
> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
> and I haven’t had much luck with IBM technical support.
>
> Any suggestions would be very much appreciated.
>
>
> Dawn Wiest, Ph.D.
> Senior Research Analyst
> Research Center - 7th Floor
> American College of Physicians
> 190 North Independence Mall West Philadelphia, PA 19106-1572
>
> [hidden email]
> (215) 351-2561
>
> =====================
> 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: SPSS 20 - problem with syntax editor

Jignesh Sutar
Sorry, yes your right, NOT 500MB but 500KB.
 
The syntax file is in compact format as can be. I am using DO REPEAT/DEFINE/!ENDDEFINE wherever possible.
 
Admittedly there are also instances within there where I have to use lines of IF or COMPUTE statements but these are unavoidable.
 
The syntax is in a very friendly format with clear commented headings for me to easily be able to navigate to using CTL+F (Find) referencing question numbers, that isn't an issue. And there also no need to break up the file into multiple bite size pieces, its more manageable and efficient (if SPSS allowed!) for me to keep all the commands in a single SPSS master syntax file. 
 
Question is more the difficulty SPSS has with dealing with something as simple as a syntax?
 
Especially when one has been using SPSS v15 without such issues and later new/upgraded version behave less efficiently...?
 
 
On 12 July 2012 14:00, David Marso <[hidden email]> wrote:
@ Jignesh.
Some thoughts:
You might wanr to look at the INSERT and INCLUDE commands.
I'll bet there is considerable repetition.
See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
If you have tones of lines:
IF (condition) blah
......
look at RECODE.
I can't imagine how painful it is to scan through 5000 lines of code. Still
it would NOT be 500M.
YMMV.

J Sutar wrote
>
> Hi,
>
> I don't experience all the problems you mention. I do however experience a
> lag between typing and the text appearing on the syntax (on SPSS v20).
> This
> is noticeable when the file size is large. For example, I have a syntax
> file which approaches 500MB with over 5000 lines of code. Simply typing
> and
> editing the code cause a delay for the action to be seen on the screen. If
> however opening a new empty syntax and typing no lag exists. And if you
> happen to make a typo and hit the undo button it takes an eternity for the
> undo to affect.
>
> I have also disabled auto-complete to help with this but it doesn't really
> solve it. Maybe these additional features; colour coding of syntax, auto
> complete use up to much resources? I have no problems whatsoever if I go
> back working with the same syntax file on SPSS v15.
>
> Sorry not an answer to your query but to re-iterate there is something
> serious wrong with the syntax editor and would welcome a response also.
>
> Jignesh
>
>
> On 11 July 2012 16:34, Dawn Wiest &lt;DWiest@.acponline&gt; wrote:
>
>> Dear listserv,
>>
>> I am writing to ask if anyone on the list has experienced a similar
>> problem and if so, how the problem was resolved. I recently installed
>> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
>> code into the syntax editor, everything slows down after a few minutes
>> (i.e. I type but there is a delay between typing and what appears on
>> screen) and then eventually freezes. Even when the syntax editor
>> unfreezes, I still cannot place the cursor where I need it, or delete
>> code, or type any code without a delay. It simply becomes impossible to
>> continue working in the document. When I try to save the document before
>> closing it, I receive the message “Failed to save document”.  I then
>> close the document and reopen it, but the document is 100% empty. Also,
>> the name I gave the document when I created it and saved it for the
>> first time no longer appears in the upper left hand corner. Instead, the
>> banner reads “IBM Statistics Syntax Editor” as if I had opened a new
>> syntax document.
>>
>> I had this exact problem with SPSS 19 last year when my computer ran on
>> Windows XP. The problem was solved once I downloaded and ran the patch
>> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
>> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
>> and I haven’t had much luck with IBM technical support.
>>
>> Any suggestions would be very much appreciated.
>>
>>
>> Dawn Wiest, Ph.D.
>> Senior Research Analyst
>> Research Center - 7th Floor
>> American College of Physicians
>> 190 North Independence Mall West Philadelphia, PA 19106-1572
>>
>> DWiest@.acponline
>> (215) 351-2561
>>
>> =====================
>> 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
>>
>


--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714161.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

Reply | Threaded
Open this post in threaded view
|

Re: SPSS 20 - problem with syntax editor

Maguin, Eugene

We’ll be getting 20 within a month and it is disheartening to hear about editor problems not fixed by patches.

 

I’m curious whether something I encountered in 19 persists in 20. The problem is that pasting text into a line of correctly written syntax results in some part of the line to the right of the pasted text no longer being displayed. The complete text remains present but not completely displayed and will be displayed if, for example, I ‘arrow’ over it. For whatever it means, I run the editor with all the editing features turned off.

 

I’m not asking for a response from anybody at spss about 19. I posted this six months or more ago and Jon responded. Leave it at that. I now curious about 20

 

Gene Maguin

 

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of J Sutar
Sent: Thursday, July 12, 2012 9:41 AM
To: [hidden email]
Subject: Re: SPSS 20 - problem with syntax editor

 

Sorry, yes your right, NOT 500MB but 500KB.

 

The syntax file is in compact format as can be. I am using DO REPEAT/DEFINE/!ENDDEFINE wherever possible.

 

Admittedly there are also instances within there where I have to use lines of IF or COMPUTE statements but these are unavoidable.

 

The syntax is in a very friendly format with clear commented headings for me to easily be able to navigate to using CTL+F (Find) referencing question numbers, that isn't an issue. And there also no need to break up the file into multiple bite size pieces, its more manageable and efficient (if SPSS allowed!) for me to keep all the commands in a single SPSS master syntax file. 

 

Question is more the difficulty SPSS has with dealing with something as simple as a syntax?

 

Especially when one has been using SPSS v15 without such issues and later new/upgraded version behave less efficiently...?

 

 

On 12 July 2012 14:00, David Marso <[hidden email]> wrote:

@ Jignesh.
Some thoughts:
You might wanr to look at the INSERT and INCLUDE commands.
I'll bet there is considerable repetition.
See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
If you have tones of lines:
IF (condition) blah
......
look at RECODE.
I can't imagine how painful it is to scan through 5000 lines of code. Still
it would NOT be 500M.
YMMV.

J Sutar wrote

>


> Hi,
>
> I don't experience all the problems you mention. I do however experience a
> lag between typing and the text appearing on the syntax (on SPSS v20).
> This
> is noticeable when the file size is large. For example, I have a syntax
> file which approaches 500MB with over 5000 lines of code. Simply typing
> and
> editing the code cause a delay for the action to be seen on the screen. If
> however opening a new empty syntax and typing no lag exists. And if you
> happen to make a typo and hit the undo button it takes an eternity for the
> undo to affect.
>
> I have also disabled auto-complete to help with this but it doesn't really
> solve it. Maybe these additional features; colour coding of syntax, auto
> complete use up to much resources? I have no problems whatsoever if I go
> back working with the same syntax file on SPSS v15.
>
> Sorry not an answer to your query but to re-iterate there is something
> serious wrong with the syntax editor and would welcome a response also.
>
> Jignesh
>
>

> On 11 July 2012 16:34, Dawn Wiest &lt;DWiest@.acponline&gt; wrote:
>
>> Dear listserv,
>>
>> I am writing to ask if anyone on the list has experienced a similar
>> problem and if so, how the problem was resolved. I recently installed
>> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
>> code into the syntax editor, everything slows down after a few minutes
>> (i.e. I type but there is a delay between typing and what appears on
>> screen) and then eventually freezes. Even when the syntax editor
>> unfreezes, I still cannot place the cursor where I need it, or delete
>> code, or type any code without a delay. It simply becomes impossible to
>> continue working in the document. When I try to save the document before
>> closing it, I receive the message “Failed to save document”.  I then
>> close the document and reopen it, but the document is 100% empty. Also,
>> the name I gave the document when I created it and saved it for the
>> first time no longer appears in the upper left hand corner. Instead, the
>> banner reads “IBM Statistics Syntax Editor” as if I had opened a new
>> syntax document.
>>
>> I had this exact problem with SPSS 19 last year when my computer ran on
>> Windows XP. The problem was solved once I downloaded and ran the patch
>> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
>> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
>> and I haven’t had much luck with IBM technical support.
>>
>> Any suggestions would be very much appreciated.
>>
>>
>> Dawn Wiest, Ph.D.
>> Senior Research Analyst
>> Research Center - 7th Floor
>> American College of Physicians
>> 190 North Independence Mall West Philadelphia, PA 19106-1572
>>

>> [hidden email]

>> (215) 351-2561
>>
>> =====================
>> 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
>>
>


--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714161.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

 

Reply | Threaded
Open this post in threaded view
|

Re: SPSS 20 - problem with syntax editor

David Marso
Administrator
In reply to this post by Jignesh Sutar
Whatever works for you!
That is still fairly large.  If my on screen code is more than 2-3 pages  I feel compelled to break it down.
I tend to organize complex projects in a modular fashion and directory structure accordingly.
For any given project I clone the following and everything seems quite manageable.
I have come onto projects where EVERYTHING has been done in a single folder and all code is in a single file. First pass... MOVE MOVE MOVE... CHOP CHOP CHOP... Sanity restored ;-))).
Basic idea is once you have read the raw data and applied whatever transforms merges etc there is no need to run that ever again so archive that.
Think Modularity and Process flow, Don't redo what has already been done.
Projects
- ProjectX
- - Proposal_SOW_Contracts
- - Documentation
- - Syntax
- - - Main
- - - Macros
- - - Scripts
- - - Include
- - - - DataImport
- - - - DataTransform
- - - - ProductionStats
- - Data
- - - Raw
- - - SPSS
- - - Export
- - Output
- - - SPSS
- - - Exports
- - - - Excel
- - - - Other...
- - DELIVERABLES

-----------------------
J Sutar wrote
Sorry, yes your right, NOT 500MB but 500KB.

The syntax file is in compact format as can be. I am using DO
REPEAT/DEFINE/!ENDDEFINE wherever possible.

Admittedly there are also instances within there where I have to use lines
of IF or COMPUTE statements but these are unavoidable.

The syntax is in a very friendly format with clear commented headings for
me to easily be able to navigate to using CTL+F (Find) referencing question
numbers, that isn't an issue. And there also no need to break up the file
into multiple bite size pieces, its more manageable and efficient (if SPSS
allowed!) for me to keep all the commands in a single SPSS master syntax
file.

Question is more the difficulty SPSS has with dealing with something as
simple as a syntax?

Especially when one has been using SPSS v15 without such issues and later
new/upgraded version behave less efficiently...?


On 12 July 2012 14:00, David Marso <[hidden email]> wrote:

> @ Jignesh.
> Some thoughts:
> You might wanr to look at the INSERT and INCLUDE commands.
> I'll bet there is considerable repetition.
> See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
> If you have tones of lines:
> IF (condition) blah
> ......
> look at RECODE.
> I can't imagine how painful it is to scan through 5000 lines of code. Still
> it would NOT be 500M.
> YMMV.
>
> J Sutar wrote
> >
> > Hi,
> >
> > I don't experience all the problems you mention. I do however experience
> a
> > lag between typing and the text appearing on the syntax (on SPSS v20).
> > This
> > is noticeable when the file size is large. For example, I have a syntax
> > file which approaches 500MB with over 5000 lines of code. Simply typing
> > and
> > editing the code cause a delay for the action to be seen on the screen.
> If
> > however opening a new empty syntax and typing no lag exists. And if you
> > happen to make a typo and hit the undo button it takes an eternity for
> the
> > undo to affect.
> >
> > I have also disabled auto-complete to help with this but it doesn't
> really
> > solve it. Maybe these additional features; colour coding of syntax, auto
> > complete use up to much resources? I have no problems whatsoever if I go
> > back working with the same syntax file on SPSS v15.
> >
> > Sorry not an answer to your query but to re-iterate there is something
> > serious wrong with the syntax editor and would welcome a response also.
> >
> > Jignesh
> >
> >
> > On 11 July 2012 16:34, Dawn Wiest <DWiest@.acponline> wrote:
> >
> >> Dear listserv,
> >>
> >> I am writing to ask if anyone on the list has experienced a similar
> >> problem and if so, how the problem was resolved. I recently installed
> >> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
> >> code into the syntax editor, everything slows down after a few minutes
> >> (i.e. I type but there is a delay between typing and what appears on
> >> screen) and then eventually freezes. Even when the syntax editor
> >> unfreezes, I still cannot place the cursor where I need it, or delete
> >> code, or type any code without a delay. It simply becomes impossible to
> >> continue working in the document. When I try to save the document before
> >> closing it, I receive the message “Failed to save document”.  I then
> >> close the document and reopen it, but the document is 100% empty. Also,
> >> the name I gave the document when I created it and saved it for the
> >> first time no longer appears in the upper left hand corner. Instead, the
> >> banner reads “IBM Statistics Syntax Editor” as if I had opened a new
> >> syntax document.
> >>
> >> I had this exact problem with SPSS 19 last year when my computer ran on
> >> Windows XP. The problem was solved once I downloaded and ran the patch
> >> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
> >> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
> >> and I haven’t had much luck with IBM technical support.
> >>
> >> Any suggestions would be very much appreciated.
> >>
> >>
> >> Dawn Wiest, Ph.D.
> >> Senior Research Analyst
> >> Research Center - 7th Floor
> >> American College of Physicians
> >> 190 North Independence Mall West Philadelphia, PA 19106-1572
> >>
> >> DWiest@.acponline
> >> (215) 351-2561
> >>
> >> =====================
> >> 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
> >>
> >
>
>
> --
> View this message in context:
> http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714161.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
>
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: SPSS 20 - problem with syntax editor

Jon K Peck
In reply to this post by Maguin, Eugene
Let's be clear about the difference between V15 and V20 in the Syntax Editor.
The newer SE does a tremendous amount of analysis of the syntax.  In V15, it was just a plain text editor.
Now the SE is parsing and validating the syntax as it is entered along with color coding and completion prompts.  Sometimes this requires reparsing large amounts of code in order to account for block structure and very long commands as sometimes happens with, say VALUE LABELS.  And with V20, runtime errors get tracked back to the error window in the SE, which can then jump to the line that caused it.

We keep working on performance here, but the V20 SE is a completely different beast from the V15 SE.
A 500K file is inevitably going to be a performance challenge for this, but IMO such files should be modularized for maintenance, understandability, and reuse totally apart from any performance issues.
Note that judicious use of FILE HANDLE can keep a master syntax file from having to hardwire specific locations for the use of INSERT (or INCLUDE if you  are old school), so you have a lot of flexibility in organizing these.

Regards,

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




From:        "Maguin, Eugene" <[hidden email]>
To:        [hidden email]
Date:        07/12/2012 08:21 AM
Subject:        Re: [SPSSX-L] SPSS 20 - problem with syntax editor
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




We’ll be getting 20 within a month and it is disheartening to hear about editor problems not fixed by patches.
 
I’m curious whether something I encountered in 19 persists in 20. The problem is that pasting text into a line of correctly written syntax results in some part of the line to the right of the pasted text no longer being displayed. The complete text remains present but not completely displayed and will be displayed if, for example, I ‘arrow’ over it. For whatever it means, I run the editor with all the editing features turned off.
 
I’m not asking for a response from anybody at spss about 19. I posted this six months or more ago and Jon responded. Leave it at that. I now curious about 20
 
Gene Maguin
 
 
From: SPSSX(r) Discussion [[hidden email]] On Behalf Of J Sutar
Sent:
Thursday, July 12, 2012 9:41 AM
To:
[hidden email]
Subject:
Re: SPSS 20 - problem with syntax editor

 
Sorry, yes your right, NOT 500MB but 500KB.
 
The syntax file is in compact format as can be. I am using DO REPEAT/DEFINE/!ENDDEFINE wherever possible.
 
Admittedly there are also instances within there where I have to use lines of IF or COMPUTE statements but these are unavoidable.
 
The syntax is in a very friendly format with clear commented headings for me to easily be able to navigate to using CTL+F (Find) referencing question numbers, that isn't an issue. And there also no need to break up the file into multiple bite size pieces, its more manageable and efficient (if SPSS allowed!) for me to keep all the commands in a single SPSS master syntax file.
 
Question is more the difficulty SPSS has with dealing with something as simple as a syntax?
 
Especially when one has been using SPSS v15 without such issues and later new/upgraded version behave less efficiently...?
 
 
On 12 July 2012 14:00, David Marso <david.marso@...> wrote:
@ Jignesh.
Some thoughts:
You might wanr to look at the INSERT and INCLUDE commands.
I'll bet there is considerable repetition.
See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
If you have tones of lines:
IF (condition) blah
......
look at RECODE.
I can't imagine how painful it is to scan through 5000 lines of code. Still
it would NOT be 500M.
YMMV.

J Sutar wrote

>
> Hi,
>
> I don't experience all the problems you mention. I do however experience a
> lag between typing and the text appearing on the syntax (on SPSS v20).
> This
> is noticeable when the file size is large. For example, I have a syntax
> file which approaches 500MB with over 5000 lines of code. Simply typing
> and
> editing the code cause a delay for the action to be seen on the screen. If
> however opening a new empty syntax and typing no lag exists. And if you
> happen to make a typo and hit the undo button it takes an eternity for the
> undo to affect.
>
> I have also disabled auto-complete to help with this but it doesn't really
> solve it. Maybe these additional features; colour coding of syntax, auto
> complete use up to much resources? I have no problems whatsoever if I go
> back working with the same syntax file on SPSS v15.
>
> Sorry not an answer to your query but to re-iterate there is something
> serious wrong with the syntax editor and would welcome a response also.
>
> Jignesh
>
>

> On 11 July 2012 16:34, Dawn Wiest &lt;DWiest@.acponline&gt; wrote:
>
>> Dear listserv,
>>
>> I am writing to ask if anyone on the list has experienced a similar
>> problem and if so, how the problem was resolved. I recently installed
>> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
>> code into the syntax editor, everything slows down after a few minutes
>> (i.e. I type but there is a delay between typing and what appears on
>> screen) and then eventually freezes. Even when the syntax editor
>> unfreezes, I still cannot place the cursor where I need it, or delete
>> code, or type any code without a delay. It simply becomes impossible to
>> continue working in the document. When I try to save the document before
>> closing it, I receive the message “Failed to save document”.  I then
>> close the document and reopen it, but the document is 100% empty. Also,
>> the name I gave the document when I created it and saved it for the
>> first time no longer appears in the upper left hand corner. Instead, the
>> banner reads “IBM Statistics Syntax Editor” as if I had opened a new
>> syntax document.
>>
>> I had this exact problem with SPSS 19 last year when my computer ran on
>> Windows XP. The problem was solved once I downloaded and ran the patch
>> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
>> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
>> and I haven’t had much luck with IBM technical support.
>>
>> Any suggestions would be very much appreciated.
>>
>>
>> Dawn Wiest, Ph.D.
>> Senior Research Analyst
>> Research Center - 7th Floor
>> American College of Physicians
>> 190 North Independence Mall West Philadelphia, PA 19106-1572
>>

>> DWiest@.acponline
>> (215) 351-2561
>>
>> =====================
>> 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
>>
>

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714161.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.


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

 
Reply | Threaded
Open this post in threaded view
|

Re: SPSS 20 - problem with syntax editor

David Marso
Administrator
In reply to this post by Maguin, Eugene
Download the trial version and kick the tires ;-)

Maguin, Eugene wrote
We'll be getting 20 within a month and it is disheartening to hear about editor problems not fixed by patches.

I'm curious whether something I encountered in 19 persists in 20. The problem is that pasting text into a line of correctly written syntax results in some part of the line to the right of the pasted text no longer being displayed. The complete text remains present but not completely displayed and will be displayed if, for example, I 'arrow' over it. For whatever it means, I run the editor with all the editing features turned off.

I'm not asking for a response from anybody at spss about 19. I posted this six months or more ago and Jon responded. Leave it at that. I now curious about 20

Gene Maguin


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of J Sutar
Sent: Thursday, July 12, 2012 9:41 AM
To: [hidden email]
Subject: Re: SPSS 20 - problem with syntax editor

Sorry, yes your right, NOT 500MB but 500KB.

The syntax file is in compact format as can be. I am using DO REPEAT/DEFINE/!ENDDEFINE wherever possible.

Admittedly there are also instances within there where I have to use lines of IF or COMPUTE statements but these are unavoidable.

The syntax is in a very friendly format with clear commented headings for me to easily be able to navigate to using CTL+F (Find) referencing question numbers, that isn't an issue. And there also no need to break up the file into multiple bite size pieces, its more manageable and efficient (if SPSS allowed!) for me to keep all the commands in a single SPSS master syntax file.

Question is more the difficulty SPSS has with dealing with something as simple as a syntax?

Especially when one has been using SPSS v15 without such issues and later new/upgraded version behave less efficiently...?


On 12 July 2012 14:00, David Marso <[hidden email]<mailto:[hidden email]>> wrote:
@ Jignesh.
Some thoughts:
You might wanr to look at the INSERT and INCLUDE commands.
I'll bet there is considerable repetition.
See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
If you have tones of lines:
IF (condition) blah
......
look at RECODE.
I can't imagine how painful it is to scan through 5000 lines of code. Still
it would NOT be 500M.
YMMV.

J Sutar wrote
>
> Hi,
>
> I don't experience all the problems you mention. I do however experience a
> lag between typing and the text appearing on the syntax (on SPSS v20).
> This
> is noticeable when the file size is large. For example, I have a syntax
> file which approaches 500MB with over 5000 lines of code. Simply typing
> and
> editing the code cause a delay for the action to be seen on the screen. If
> however opening a new empty syntax and typing no lag exists. And if you
> happen to make a typo and hit the undo button it takes an eternity for the
> undo to affect.
>
> I have also disabled auto-complete to help with this but it doesn't really
> solve it. Maybe these additional features; colour coding of syntax, auto
> complete use up to much resources? I have no problems whatsoever if I go
> back working with the same syntax file on SPSS v15.
>
> Sorry not an answer to your query but to re-iterate there is something
> serious wrong with the syntax editor and would welcome a response also.
>
> Jignesh
>
>
> On 11 July 2012 16:34, Dawn Wiest <DWiest@.acponline> wrote:
>
>> Dear listserv,
>>
>> I am writing to ask if anyone on the list has experienced a similar
>> problem and if so, how the problem was resolved. I recently installed
>> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
>> code into the syntax editor, everything slows down after a few minutes
>> (i.e. I type but there is a delay between typing and what appears on
>> screen) and then eventually freezes. Even when the syntax editor
>> unfreezes, I still cannot place the cursor where I need it, or delete
>> code, or type any code without a delay. It simply becomes impossible to
>> continue working in the document. When I try to save the document before
>> closing it, I receive the message "Failed to save document".  I then
>> close the document and reopen it, but the document is 100% empty. Also,
>> the name I gave the document when I created it and saved it for the
>> first time no longer appears in the upper left hand corner. Instead, the
>> banner reads "IBM Statistics Syntax Editor" as if I had opened a new
>> syntax document.
>>
>> I had this exact problem with SPSS 19 last year when my computer ran on
>> Windows XP. The problem was solved once I downloaded and ran the patch
>> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
>> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
>> and I haven't had much luck with IBM technical support.
>>
>> Any suggestions would be very much appreciated.
>>
>>
>> Dawn Wiest, Ph.D.
>> Senior Research Analyst
>> Research Center - 7th Floor
>> American College of Physicians
>> 190 North Independence Mall West Philadelphia, PA 19106-1572
>>
>> DWiest@.acponline<mailto:DWiest@.acponline>
>> (215) 351-2561
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>> LISTSERV@.UGA<mailto: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
>>
>

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714161.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]<mailto:[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: SPSS 20 - problem with syntax editor

David Marso
Administrator
In reply to this post by Jon K Peck
Question re INSERT vs INCLUDE.
Sometimes when building MATRIX programs it is essential to partition the problem into smaller segments due to memory considerations.  One approach is to use SPLIT FILE .  However MATRIX will not do this in interactive mode.  Using INCLUDE surmounts this issue.  Does INSERT using /SYNTAX=BATCH behave the same?  From the docs I would infer yes.
eg:
data list free / id a b c.
begin data
1 2 3 4
2 4 5 6
3 7 8 9
end data.
split file by id.
** contents of 'outer.sps'.
matrix.
get data / var a b c / file *.
compute outer=T(data)*data  .
print outer .
save outer / outfile *.
end matrix.

>Error # 14324
>MATRIX cannot do split-file processing in interactive mode.  Run the job in
>batch mode or process each split-file group separately.
>This command not executed.

**.
INCLUDE 'c:\temp\outer.sps'.

Run MATRIX procedure:

OUTER
   4   6   8
   6   9  12
   8  12  16

OUTER
  16  20  24
  20  25  30
  24  30  36

OUTER
  49  56  63
  56  64  72
  63  72  81

------ END MATRIX -----


Jon K Peck wrote
Let's be clear about the difference between V15 and V20 in the Syntax
Editor.
The newer SE does a tremendous amount of analysis of the syntax.  In V15,
it was just a plain text editor.
Now the SE is parsing and validating the syntax as it is entered along
with color coding and completion prompts.  Sometimes this requires
reparsing large amounts of code in order to account for block structure
and very long commands as sometimes happens with, say VALUE LABELS.  And
with V20, runtime errors get tracked back to the error window in the SE,
which can then jump to the line that caused it.

We keep working on performance here, but the V20 SE is a completely
different beast from the V15 SE.
A 500K file is inevitably going to be a performance challenge for this,
but IMO such files should be modularized for maintenance,
understandability, and reuse totally apart from any performance issues.
Note that judicious use of FILE HANDLE can keep a master syntax file from
having to hardwire specific locations for the use of INSERT (or INCLUDE if
you  are old school), so you have a lot of flexibility in organizing
these.

Regards,

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




From:   "Maguin, Eugene" <[hidden email]>
To:     [hidden email]
Date:   07/12/2012 08:21 AM
Subject:        Re: [SPSSX-L] SPSS 20 - problem with syntax editor
Sent by:        "SPSSX(r) Discussion" <[hidden email]>



We’ll be getting 20 within a month and it is disheartening to hear about
editor problems not fixed by patches.
 
I’m curious whether something I encountered in 19 persists in 20. The
problem is that pasting text into a line of correctly written syntax
results in some part of the line to the right of the pasted text no longer
being displayed. The complete text remains present but not completely
displayed and will be displayed if, for example, I ‘arrow’ over it. For
whatever it means, I run the editor with all the editing features turned
off.
 
I’m not asking for a response from anybody at spss about 19. I posted this
six months or more ago and Jon responded. Leave it at that. I now curious
about 20
 
Gene Maguin
 
 
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of J
Sutar
Sent: Thursday, July 12, 2012 9:41 AM
To: [hidden email]
Subject: Re: SPSS 20 - problem with syntax editor
 
Sorry, yes your right, NOT 500MB but 500KB.
 
The syntax file is in compact format as can be. I am using DO
REPEAT/DEFINE/!ENDDEFINE wherever possible.
 
Admittedly there are also instances within there where I have to use lines
of IF or COMPUTE statements but these are unavoidable.
 
The syntax is in a very friendly format with clear commented headings for
me to easily be able to navigate to using CTL+F (Find) referencing
question numbers, that isn't an issue. And there also no need to break up
the file into multiple bite size pieces, its more manageable and efficient
(if SPSS allowed!) for me to keep all the commands in a single SPSS master
syntax file.
 
Question is more the difficulty SPSS has with dealing with something as
simple as a syntax?
 
Especially when one has been using SPSS v15 without such issues and later
new/upgraded version behave less efficiently...?
 
 
On 12 July 2012 14:00, David Marso <[hidden email]> wrote:
@ Jignesh.
Some thoughts:
You might wanr to look at the INSERT and INCLUDE commands.
I'll bet there is considerable repetition.
See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
If you have tones of lines:
IF (condition) blah
......
look at RECODE.
I can't imagine how painful it is to scan through 5000 lines of code.
Still
it would NOT be 500M.
YMMV.

J Sutar wrote
>
> Hi,
>
> I don't experience all the problems you mention. I do however experience
a
> lag between typing and the text appearing on the syntax (on SPSS v20).
> This
> is noticeable when the file size is large. For example, I have a syntax
> file which approaches 500MB with over 5000 lines of code. Simply typing
> and
> editing the code cause a delay for the action to be seen on the screen.
If
> however opening a new empty syntax and typing no lag exists. And if you
> happen to make a typo and hit the undo button it takes an eternity for
the
> undo to affect.
>
> I have also disabled auto-complete to help with this but it doesn't
really
> solve it. Maybe these additional features; colour coding of syntax, auto
> complete use up to much resources? I have no problems whatsoever if I go
> back working with the same syntax file on SPSS v15.
>
> Sorry not an answer to your query but to re-iterate there is something
> serious wrong with the syntax editor and would welcome a response also.
>
> Jignesh
>
>
> On 11 July 2012 16:34, Dawn Wiest <DWiest@.acponline> wrote:
>
>> Dear listserv,
>>
>> I am writing to ask if anyone on the list has experienced a similar
>> problem and if so, how the problem was resolved. I recently installed
>> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
>> code into the syntax editor, everything slows down after a few minutes
>> (i.e. I type but there is a delay between typing and what appears on
>> screen) and then eventually freezes. Even when the syntax editor
>> unfreezes, I still cannot place the cursor where I need it, or delete
>> code, or type any code without a delay. It simply becomes impossible to
>> continue working in the document. When I try to save the document
before
>> closing it, I receive the message “Failed to save document”.  I then
>> close the document and reopen it, but the document is 100% empty. Also,
>> the name I gave the document when I created it and saved it for the
>> first time no longer appears in the upper left hand corner. Instead,
the
>> banner reads “IBM Statistics Syntax Editor” as if I had opened a new
>> syntax document.
>>
>> I had this exact problem with SPSS 19 last year when my computer ran on
>> Windows XP. The problem was solved once I downloaded and ran the patch
>> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
>> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this
problem,
>> and I haven’t had much luck with IBM technical support.
>>
>> Any suggestions would be very much appreciated.
>>
>>
>> Dawn Wiest, Ph.D.
>> Senior Research Analyst
>> Research Center - 7th Floor
>> American College of Physicians
>> 190 North Independence Mall West Philadelphia, PA 19106-1572
>>
>> DWiest@.acponline
>> (215) 351-2561
>>
>> =====================
>> 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
>>
>

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714161.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
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: SPSS 20 - problem with syntax editor

Jon K Peck
I have no idea where this odd split file limitation comes from in MATRIX, but I can confirm that using INSERT with SYNTAX=BATCH does work.

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




From:        David Marso <[hidden email]>
To:        [hidden email]
Date:        07/12/2012 10:29 AM
Subject:        Re: [SPSSX-L] SPSS 20 - problem with syntax editor
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Question re INSERT vs INCLUDE.
Sometimes when building MATRIX programs it is essential to partition the
problem into smaller segments due to memory considerations.  One approach is
to use SPLIT FILE .  However MATRIX will not do this in interactive mode.
Using INCLUDE surmounts this issue.  Does INSERT using /SYNTAX=BATCH behave
the same?  From the docs I would infer yes.
eg:
data list free / id a b c.
begin data
1 2 3 4
2 4 5 6
3 7 8 9
end data.
split file by id.
** contents of 'outer.sps'.
matrix.
get data / var a b c / file *.
compute outer=T(data)*data  .
print outer .
save outer / outfile *.
end matrix.

>Error # 14324
>MATRIX cannot do split-file processing in interactive mode.  Run the job in
>batch mode or process each split-file group separately.
>This command not executed.

**.
INCLUDE 'c:\temp\outer.sps'.

Run MATRIX procedure:

OUTER
  4   6   8
  6   9  12
  8  12  16

OUTER
 16  20  24
 20  25  30
 24  30  36

OUTER
 49  56  63
 56  64  72
 63  72  81

------ END MATRIX -----



Jon K Peck wrote
>
> Let's be clear about the difference between V15 and V20 in the Syntax
> Editor.
> The newer SE does a tremendous amount of analysis of the syntax.  In V15,
> it was just a plain text editor.
> Now the SE is parsing and validating the syntax as it is entered along
> with color coding and completion prompts.  Sometimes this requires
> reparsing large amounts of code in order to account for block structure
> and very long commands as sometimes happens with, say VALUE LABELS.  And
> with V20, runtime errors get tracked back to the error window in the SE,
> which can then jump to the line that caused it.
>
> We keep working on performance here, but the V20 SE is a completely
> different beast from the V15 SE.
> A 500K file is inevitably going to be a performance challenge for this,
> but IMO such files should be modularized for maintenance,
> understandability, and reuse totally apart from any performance issues.
> Note that judicious use of FILE HANDLE can keep a master syntax file from
> having to hardwire specific locations for the use of INSERT (or INCLUDE if
> you  are old school), so you have a lot of flexibility in organizing
> these.
>
> Regards,
>
> Jon Peck (no "h") aka Kim
> Senior Software Engineer, IBM
> peck@.ibm
> new phone: 720-342-5621
>
>
>
>
> From:   "Maguin, Eugene" &lt;emaguin@&gt;
> To:     SPSSX-L@.uga
> Date:   07/12/2012 08:21 AM
> Subject:        Re: [SPSSX-L] SPSS 20 - problem with syntax editor
> Sent by:        "SPSSX(r) Discussion" &lt;SPSSX-L@.uga&gt;
>
>
>
> We’ll be getting 20 within a month and it is disheartening to hear about
> editor problems not fixed by patches.
>
> I’m curious whether something I encountered in 19 persists in 20. The
> problem is that pasting text into a line of correctly written syntax
> results in some part of the line to the right of the pasted text no longer
> being displayed. The complete text remains present but not completely
> displayed and will be displayed if, for example, I ‘arrow’ over it. For
> whatever it means, I run the editor with all the editing features turned
> off.
>
> I’m not asking for a response from anybody at spss about 19. I posted this
> six months or more ago and Jon responded. Leave it at that. I now curious
> about 20
>
> Gene Maguin
>
>
> From: SPSSX(r) Discussion [
[hidden email]] On Behalf Of J
> Sutar
> Sent: Thursday, July 12, 2012 9:41 AM
> To: SPSSX-L@.UGA
> Subject: Re: SPSS 20 - problem with syntax editor
>
> Sorry, yes your right, NOT 500MB but 500KB.
>
> The syntax file is in compact format as can be. I am using DO
> REPEAT/DEFINE/!ENDDEFINE wherever possible.
>
> Admittedly there are also instances within there where I have to use lines
> of IF or COMPUTE statements but these are unavoidable.
>
> The syntax is in a very friendly format with clear commented headings for
> me to easily be able to navigate to using CTL+F (Find) referencing
> question numbers, that isn't an issue. And there also no need to break up
> the file into multiple bite size pieces, its more manageable and efficient
> (if SPSS allowed!) for me to keep all the commands in a single SPSS master
> syntax file.
>
> Question is more the difficulty SPSS has with dealing with something as
> simple as a syntax?
>
> Especially when one has been using SPSS v15 without such issues and later
> new/upgraded version behave less efficiently...?
>
>
> On 12 July 2012 14:00, David Marso &lt;david.marso@&gt; wrote:
> @ Jignesh.
> Some thoughts:
> You might wanr to look at the INSERT and INCLUDE commands.
> I'll bet there is considerable repetition.
> See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
> If you have tones of lines:
> IF (condition) blah
> ......
> look at RECODE.
> I can't imagine how painful it is to scan through 5000 lines of code.
> Still
> it would NOT be 500M.
> YMMV.
>
> J Sutar wrote
>>
>> Hi,
>>
>> I don't experience all the problems you mention. I do however experience
> a
>> lag between typing and the text appearing on the syntax (on SPSS v20).
>> This
>> is noticeable when the file size is large. For example, I have a syntax
>> file which approaches 500MB with over 5000 lines of code. Simply typing
>> and
>> editing the code cause a delay for the action to be seen on the screen.
> If
>> however opening a new empty syntax and typing no lag exists. And if you
>> happen to make a typo and hit the undo button it takes an eternity for
> the
>> undo to affect.
>>
>> I have also disabled auto-complete to help with this but it doesn't
> really
>> solve it. Maybe these additional features; colour coding of syntax, auto
>> complete use up to much resources? I have no problems whatsoever if I go
>> back working with the same syntax file on SPSS v15.
>>
>> Sorry not an answer to your query but to re-iterate there is something
>> serious wrong with the syntax editor and would welcome a response also.
>>
>> Jignesh
>>
>>
>> On 11 July 2012 16:34, Dawn Wiest &lt;DWiest@.acponline&gt; wrote:
>>
>>> Dear listserv,
>>>
>>> I am writing to ask if anyone on the list has experienced a similar
>>> problem and if so, how the problem was resolved. I recently installed
>>> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
>>> code into the syntax editor, everything slows down after a few minutes
>>> (i.e. I type but there is a delay between typing and what appears on
>>> screen) and then eventually freezes. Even when the syntax editor
>>> unfreezes, I still cannot place the cursor where I need it, or delete
>>> code, or type any code without a delay. It simply becomes impossible to
>>> continue working in the document. When I try to save the document
> before
>>> closing it, I receive the message “Failed to save document”.  I then
>>> close the document and reopen it, but the document is 100% empty. Also,
>>> the name I gave the document when I created it and saved it for the
>>> first time no longer appears in the upper left hand corner. Instead,
> the
>>> banner reads “IBM Statistics Syntax Editor” as if I had opened a new
>>> syntax document.
>>>
>>> I had this exact problem with SPSS 19 last year when my computer ran on
>>> Windows XP. The problem was solved once I downloaded and ran the patch
>>> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
>>> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this
> problem,
>>> and I haven’t had much luck with IBM technical support.
>>>
>>> Any suggestions would be very much appreciated.
>>>
>>>
>>> Dawn Wiest, Ph.D.
>>> Senior Research Analyst
>>> Research Center - 7th Floor
>>> American College of Physicians
>>> 190 North Independence Mall West Philadelphia, PA 19106-1572
>>>
>>> DWiest@.acponline
>>> (215) 351-2561
>>>
>>> =====================
>>> 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
>>>
>>
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714161.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
>


--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714169.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


Reply | Threaded
Open this post in threaded view
|

Re: SPSS 20 - problem with syntax editor

David Marso
Administrator
Thanks Jon,
I might be needing that soon (good to know).
While we are on the subject of the Syntax editor I would like to propose an enhancement.
Hierarchical Collapsible Regions and dynamic viewing of INSERTED code

Let's say I have a mass of code consisting of raw data import, a mass of file merges
10 sets of independent calculations.
I would like to be able to tag the file as follows

<data>
<data1>
data list file 1 blah blah
SAVE file1.
</data1>
<data2>
.........
</datak>
<merge>
ADD FILES ..........
MATCH FILES......
.....
.....
VARSTOCASES .....
</merge>
</rawdata>
<transforms>
<transforms1>
compute blah blah.
.........
</transforms1>
....
</transforms>
</data>
Rather than show ALL of the syntax it would show me a tree of the nodes and the nested child nodes.  Clicking would expand the syntax.
If one clicks on an INSERT or INCLUDE it should open the referenced file in a child window.  Just my thoughts ;-)
I built precisely this sort of application for a consulting client about 10 years ago using VB6.  These days I'd probably go with VB.Net or C# and use WPF for the GUI .
It was love at first sight!
Jon K Peck wrote
I have no idea where this odd split file limitation comes from in MATRIX,
but I can confirm that using INSERT with SYNTAX=BATCH does work.

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




From:   David Marso <[hidden email]>
To:     [hidden email]
Date:   07/12/2012 10:29 AM
Subject:        Re: [SPSSX-L] SPSS 20 - problem with syntax editor
Sent by:        "SPSSX(r) Discussion" <[hidden email]>



Question re INSERT vs INCLUDE.
Sometimes when building MATRIX programs it is essential to partition the
problem into smaller segments due to memory considerations.  One approach
is
to use SPLIT FILE .  However MATRIX will not do this in interactive mode.
Using INCLUDE surmounts this issue.  Does INSERT using /SYNTAX=BATCH
behave
the same?  From the docs I would infer yes.
eg:
data list free / id a b c.
begin data
1 2 3 4
2 4 5 6
3 7 8 9
end data.
split file by id.
** contents of 'outer.sps'.
matrix.
get data / var a b c / file *.
compute outer=T(data)*data  .
print outer .
save outer / outfile *.
end matrix.

>Error # 14324
>MATRIX cannot do split-file processing in interactive mode.  Run the job
in
>batch mode or process each split-file group separately.
>This command not executed.

**.
INCLUDE 'c:\temp\outer.sps'.

Run MATRIX procedure:

OUTER
   4   6   8
   6   9  12
   8  12  16

OUTER
  16  20  24
  20  25  30
  24  30  36

OUTER
  49  56  63
  56  64  72
  63  72  81

------ END MATRIX -----



Jon K Peck wrote
>
> Let's be clear about the difference between V15 and V20 in the Syntax
> Editor.
> The newer SE does a tremendous amount of analysis of the syntax.  In
V15,
> it was just a plain text editor.
> Now the SE is parsing and validating the syntax as it is entered along
> with color coding and completion prompts.  Sometimes this requires
> reparsing large amounts of code in order to account for block structure
> and very long commands as sometimes happens with, say VALUE LABELS.  And
> with V20, runtime errors get tracked back to the error window in the SE,
> which can then jump to the line that caused it.
>
> We keep working on performance here, but the V20 SE is a completely
> different beast from the V15 SE.
> A 500K file is inevitably going to be a performance challenge for this,
> but IMO such files should be modularized for maintenance,
> understandability, and reuse totally apart from any performance issues.
> Note that judicious use of FILE HANDLE can keep a master syntax file
from
> having to hardwire specific locations for the use of INSERT (or INCLUDE
if
> you  are old school), so you have a lot of flexibility in organizing
> these.
>
> Regards,
>
> Jon Peck (no "h") aka Kim
> Senior Software Engineer, IBM
> peck@.ibm
> new phone: 720-342-5621
>
>
>
>
> From:   "Maguin, Eugene" <emaguin@>
> To:     SPSSX-L@.uga
> Date:   07/12/2012 08:21 AM
> Subject:        Re: [SPSSX-L] SPSS 20 - problem with syntax editor
> Sent by:        "SPSSX(r) Discussion" <SPSSX-L@.uga>
>
>
>
> We’ll be getting 20 within a month and it is disheartening to hear about
> editor problems not fixed by patches.
>
> I’m curious whether something I encountered in 19 persists in 20. The
> problem is that pasting text into a line of correctly written syntax
> results in some part of the line to the right of the pasted text no
longer
> being displayed. The complete text remains present but not completely
> displayed and will be displayed if, for example, I ‘arrow’ over it. For
> whatever it means, I run the editor with all the editing features turned
> off.
>
> I’m not asking for a response from anybody at spss about 19. I posted
this
> six months or more ago and Jon responded. Leave it at that. I now
curious
> about 20
>
> Gene Maguin
>
>
> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of J
> Sutar
> Sent: Thursday, July 12, 2012 9:41 AM
> To: SPSSX-L@.UGA
> Subject: Re: SPSS 20 - problem with syntax editor
>
> Sorry, yes your right, NOT 500MB but 500KB.
>
> The syntax file is in compact format as can be. I am using DO
> REPEAT/DEFINE/!ENDDEFINE wherever possible.
>
> Admittedly there are also instances within there where I have to use
lines
> of IF or COMPUTE statements but these are unavoidable.
>
> The syntax is in a very friendly format with clear commented headings
for
> me to easily be able to navigate to using CTL+F (Find) referencing
> question numbers, that isn't an issue. And there also no need to break
up
> the file into multiple bite size pieces, its more manageable and
efficient
> (if SPSS allowed!) for me to keep all the commands in a single SPSS
master
> syntax file.
>
> Question is more the difficulty SPSS has with dealing with something as
> simple as a syntax?
>
> Especially when one has been using SPSS v15 without such issues and
later
> new/upgraded version behave less efficiently...?
>
>
> On 12 July 2012 14:00, David Marso <david.marso@> wrote:
> @ Jignesh.
> Some thoughts:
> You might wanr to look at the INSERT and INCLUDE commands.
> I'll bet there is considerable repetition.
> See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
> If you have tones of lines:
> IF (condition) blah
> ......
> look at RECODE.
> I can't imagine how painful it is to scan through 5000 lines of code.
> Still
> it would NOT be 500M.
> YMMV.
>
> J Sutar wrote
>>
>> Hi,
>>
>> I don't experience all the problems you mention. I do however
experience
> a
>> lag between typing and the text appearing on the syntax (on SPSS v20).
>> This
>> is noticeable when the file size is large. For example, I have a syntax
>> file which approaches 500MB with over 5000 lines of code. Simply typing
>> and
>> editing the code cause a delay for the action to be seen on the screen.
> If
>> however opening a new empty syntax and typing no lag exists. And if you
>> happen to make a typo and hit the undo button it takes an eternity for
> the
>> undo to affect.
>>
>> I have also disabled auto-complete to help with this but it doesn't
> really
>> solve it. Maybe these additional features; colour coding of syntax,
auto
>> complete use up to much resources? I have no problems whatsoever if I
go
>> back working with the same syntax file on SPSS v15.
>>
>> Sorry not an answer to your query but to re-iterate there is something
>> serious wrong with the syntax editor and would welcome a response also.
>>
>> Jignesh
>>
>>
>> On 11 July 2012 16:34, Dawn Wiest <DWiest@.acponline> wrote:
>>
>>> Dear listserv,
>>>
>>> I am writing to ask if anyone on the list has experienced a similar
>>> problem and if so, how the problem was resolved. I recently installed
>>> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
>>> code into the syntax editor, everything slows down after a few minutes
>>> (i.e. I type but there is a delay between typing and what appears on
>>> screen) and then eventually freezes. Even when the syntax editor
>>> unfreezes, I still cannot place the cursor where I need it, or delete
>>> code, or type any code without a delay. It simply becomes impossible
to
>>> continue working in the document. When I try to save the document
> before
>>> closing it, I receive the message “Failed to save document”.  I then
>>> close the document and reopen it, but the document is 100% empty.
Also,
>>> the name I gave the document when I created it and saved it for the
>>> first time no longer appears in the upper left hand corner. Instead,
> the
>>> banner reads “IBM Statistics Syntax Editor” as if I had opened a new
>>> syntax document.
>>>
>>> I had this exact problem with SPSS 19 last year when my computer ran
on
>>> Windows XP. The problem was solved once I downloaded and ran the patch
>>> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
>>> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this
> problem,
>>> and I haven’t had much luck with IBM technical support.
>>>
>>> Any suggestions would be very much appreciated.
>>>
>>>
>>> Dawn Wiest, Ph.D.
>>> Senior Research Analyst
>>> Research Center - 7th Floor
>>> American College of Physicians
>>> 190 North Independence Mall West Philadelphia, PA 19106-1572
>>>
>>> DWiest@.acponline
>>> (215) 351-2561
>>>
>>> =====================
>>> 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
>>>
>>
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714161.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
>


--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714169.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
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: SPSS 20 - problem with syntax editor

Jon K Peck
The syntax window outline does provide some support similar to this, but it does not open up insert files, which would be nice, and it does not have a collapse feature, which would also be nice.

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




From:        David Marso <[hidden email]>
To:        [hidden email]
Date:        07/12/2012 07:16 PM
Subject:        Re: [SPSSX-L] SPSS 20 - problem with syntax editor
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Thanks Jon,
I might be needing that soon (good to know).
While we are on the subject of the Syntax editor I would like to propose an
enhancement.
Hierarchical Collapsible Regions and dynamic viewing of INSERTED code

Let's say I have a mass of code consisting of raw data import, a mass of
file merges
10 sets of independent calculations.
I would like to be able to tag the file as follows

<data>

<merge>
ADD FILES ..........
MATCH FILES......
.....
.....
VARSTOCASES .....
</merge>
</rawdata>
<transforms>
<transforms1>
compute blah blah.
.........
</transforms1>
....
</transforms>
</data>
Rather than show ALL of the syntax it would show me a tree of the nodes and
the nested child nodes.  Clicking would expand the syntax.
If one clicks on an INSERT or INCLUDE it should open the referenced file in
a child window.  Just my thoughts ;-)
I built precisely this sort of application for a consulting client about 10
years ago using VB6.  These days I'd probably go with VB.Net or C# and use
WPF for the GUI .
It was love at first sight!

Jon K Peck wrote
>
> I have no idea where this odd split file limitation comes from in MATRIX,
> but I can confirm that using INSERT with SYNTAX=BATCH does work.
>
> Jon Peck (no "h") aka Kim
> Senior Software Engineer, IBM
> peck@.ibm
> new phone: 720-342-5621
>
>
>
>
> From:   David Marso &lt;david.marso@&gt;
> To:     SPSSX-L@.uga
> Date:   07/12/2012 10:29 AM
> Subject:        Re: [SPSSX-L] SPSS 20 - problem with syntax editor
> Sent by:        "SPSSX(r) Discussion" &lt;SPSSX-L@.uga&gt;
>
>
>
> Question re INSERT vs INCLUDE.
> Sometimes when building MATRIX programs it is essential to partition the
> problem into smaller segments due to memory considerations.  One approach
> is
> to use SPLIT FILE .  However MATRIX will not do this in interactive mode.
> Using INCLUDE surmounts this issue.  Does INSERT using /SYNTAX=BATCH
> behave
> the same?  From the docs I would infer yes.
> eg:
> data list free / id a b c.
> begin data
> 1 2 3 4
> 2 4 5 6
> 3 7 8 9
> end data.
> split file by id.
> ** contents of 'outer.sps'.
> matrix.
> get data / var a b c / file *.
> compute outer=T(data)*data  .
> print outer .
> save outer / outfile *.
> end matrix.
>
>>Error # 14324
>>MATRIX cannot do split-file processing in interactive mode.  Run the job
> in
>>batch mode or process each split-file group separately.
>>This command not executed.
>
> **.
> INCLUDE 'c:\temp\outer.sps'.
>
> Run MATRIX procedure:
>
> OUTER
>    4   6   8
>    6   9  12
>    8  12  16
>
> OUTER
>   16  20  24
>   20  25  30
>   24  30  36
>
> OUTER
>   49  56  63
>   56  64  72
>   63  72  81
>
> ------ END MATRIX -----
>
>
>
> Jon K Peck wrote
>>
>> Let's be clear about the difference between V15 and V20 in the Syntax
>> Editor.
>> The newer SE does a tremendous amount of analysis of the syntax.  In
> V15,
>> it was just a plain text editor.
>> Now the SE is parsing and validating the syntax as it is entered along
>> with color coding and completion prompts.  Sometimes this requires
>> reparsing large amounts of code in order to account for block structure
>> and very long commands as sometimes happens with, say VALUE LABELS.  And
>> with V20, runtime errors get tracked back to the error window in the SE,
>> which can then jump to the line that caused it.
>>
>> We keep working on performance here, but the V20 SE is a completely
>> different beast from the V15 SE.
>> A 500K file is inevitably going to be a performance challenge for this,
>> but IMO such files should be modularized for maintenance,
>> understandability, and reuse totally apart from any performance issues.
>> Note that judicious use of FILE HANDLE can keep a master syntax file
> from
>> having to hardwire specific locations for the use of INSERT (or INCLUDE
> if
>> you  are old school), so you have a lot of flexibility in organizing
>> these.
>>
>> Regards,
>>
>> Jon Peck (no "h") aka Kim
>> Senior Software Engineer, IBM
>> peck@.ibm
>> new phone: 720-342-5621
>>
>>
>>
>>
>> From:   "Maguin, Eugene" &lt;emaguin@&gt;
>> To:     SPSSX-L@.uga
>> Date:   07/12/2012 08:21 AM
>> Subject:        Re: [SPSSX-L] SPSS 20 - problem with syntax editor
>> Sent by:        "SPSSX(r) Discussion" &lt;SPSSX-L@.uga&gt;
>>
>>
>>
>> We’ll be getting 20 within a month and it is disheartening to hear about
>> editor problems not fixed by patches.
>>
>> I’m curious whether something I encountered in 19 persists in 20. The
>> problem is that pasting text into a line of correctly written syntax
>> results in some part of the line to the right of the pasted text no
> longer
>> being displayed. The complete text remains present but not completely
>> displayed and will be displayed if, for example, I ‘arrow’ over it. For
>> whatever it means, I run the editor with all the editing features turned
>> off.
>>
>> I’m not asking for a response from anybody at spss about 19. I posted
> this
>> six months or more ago and Jon responded. Leave it at that. I now
> curious
>> about 20
>>
>> Gene Maguin
>>
>>
>> From: SPSSX(r) Discussion [
[hidden email]] On Behalf Of J
>> Sutar
>> Sent: Thursday, July 12, 2012 9:41 AM
>> To: SPSSX-L@.UGA
>> Subject: Re: SPSS 20 - problem with syntax editor
>>
>> Sorry, yes your right, NOT 500MB but 500KB.
>>
>> The syntax file is in compact format as can be. I am using DO
>> REPEAT/DEFINE/!ENDDEFINE wherever possible.
>>
>> Admittedly there are also instances within there where I have to use
> lines
>> of IF or COMPUTE statements but these are unavoidable.
>>
>> The syntax is in a very friendly format with clear commented headings
> for
>> me to easily be able to navigate to using CTL+F (Find) referencing
>> question numbers, that isn't an issue. And there also no need to break
> up
>> the file into multiple bite size pieces, its more manageable and
> efficient
>> (if SPSS allowed!) for me to keep all the commands in a single SPSS
> master
>> syntax file.
>>
>> Question is more the difficulty SPSS has with dealing with something as
>> simple as a syntax?
>>
>> Especially when one has been using SPSS v15 without such issues and
> later
>> new/upgraded version behave less efficiently...?
>>
>>
>> On 12 July 2012 14:00, David Marso &lt;david.marso@&gt; wrote:
>> @ Jignesh.
>> Some thoughts:
>> You might wanr to look at the INSERT and INCLUDE commands.
>> I'll bet there is considerable repetition.
>> See DO REPEAT and DEFINE !ENDDEFINE and refactor the project.
>> If you have tones of lines:
>> IF (condition) blah
>> ......
>> look at RECODE.
>> I can't imagine how painful it is to scan through 5000 lines of code.
>> Still
>> it would NOT be 500M.
>> YMMV.
>>
>> J Sutar wrote
>>>
>>> Hi,
>>>
>>> I don't experience all the problems you mention. I do however
> experience
>> a
>>> lag between typing and the text appearing on the syntax (on SPSS v20).
>>> This
>>> is noticeable when the file size is large. For example, I have a syntax
>>> file which approaches 500MB with over 5000 lines of code. Simply typing
>>> and
>>> editing the code cause a delay for the action to be seen on the screen.
>> If
>>> however opening a new empty syntax and typing no lag exists. And if you
>>> happen to make a typo and hit the undo button it takes an eternity for
>> the
>>> undo to affect.
>>>
>>> I have also disabled auto-complete to help with this but it doesn't
>> really
>>> solve it. Maybe these additional features; colour coding of syntax,
> auto
>>> complete use up to much resources? I have no problems whatsoever if I
> go
>>> back working with the same syntax file on SPSS v15.
>>>
>>> Sorry not an answer to your query but to re-iterate there is something
>>> serious wrong with the syntax editor and would welcome a response also.
>>>
>>> Jignesh
>>>
>>>
>>> On 11 July 2012 16:34, Dawn Wiest &lt;DWiest@.acponline&gt; wrote:
>>>
>>>> Dear listserv,
>>>>
>>>> I am writing to ask if anyone on the list has experienced a similar
>>>> problem and if so, how the problem was resolved. I recently installed
>>>> SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
>>>> code into the syntax editor, everything slows down after a few minutes
>>>> (i.e. I type but there is a delay between typing and what appears on
>>>> screen) and then eventually freezes. Even when the syntax editor
>>>> unfreezes, I still cannot place the cursor where I need it, or delete
>>>> code, or type any code without a delay. It simply becomes impossible
> to
>>>> continue working in the document. When I try to save the document
>> before
>>>> closing it, I receive the message “Failed to save document”.  I then
>>>> close the document and reopen it, but the document is 100% empty.
> Also,
>>>> the name I gave the document when I created it and saved it for the
>>>> first time no longer appears in the upper left hand corner. Instead,
>> the
>>>> banner reads “IBM Statistics Syntax Editor” as if I had opened a new
>>>> syntax document.
>>>>
>>>> I had this exact problem with SPSS 19 last year when my computer ran
> on
>>>> Windows XP. The problem was solved once I downloaded and ran the patch
>>>> to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
>>>> 20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this
>> problem,
>>>> and I haven’t had much luck with IBM technical support.
>>>>
>>>> Any suggestions would be very much appreciated.
>>>>
>>>>
>>>> Dawn Wiest, Ph.D.
>>>> Senior Research Analyst
>>>> Research Center - 7th Floor
>>>> American College of Physicians
>>>> 190 North Independence Mall West Philadelphia, PA 19106-1572
>>>>
>>>> DWiest@.acponline
>>>> (215) 351-2561
>>>>
>>>> =====================
>>>> 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
>>>>
>>>
>>
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714161.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
>>
>
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714169.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
>


--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/SPSS-20-problem-with-syntax-editor-tp5714136p5714178.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


Reply | Threaded
Open this post in threaded view
|

Re: SPSS 20 - problem with syntax editor

David Marso
Administrator
In reply to this post by Dawn Wiest
Well,
It seems the same issues persist in version 21.
Extreme lags.
Say I want to build a comment block

/*******************************************/.
/**Macro EatMe Does whatever the heck                **/
/** Inputs:  FirstBornChild,                                   **/.
/** Outputs:BountifulHarvest                                **/.
/** Possible Errors:  HellFreezesOver                     **/.
/** Side Effects: None (that I know of)                   **/.
/*******************************************/.
/** This is a comment block with asterisks aligned **/.
/** To make it stand out and look really well         **/.
/** documented.  Unfortunately, the entire thing   **/.
/** Freezes for NO good reason while holding       **/.
/** SHIFT-8, taking a LONG time to type anything **/.
/** If this were in COURIER it would probably look **/.
/** nicely aligned:  Who the hell programmed this  **/.
/** Maybe banish them to QA or Teksport for a month **/.
/*******************************************/.
DEFINE EATME ( FirstBornChild !TOKENS(1)
                         / BountifulHarvest !TOKENS(1) ).
!DO !STUFF !IN (!FirstBornChild )
!CONCAT (!STUFF,'IT')
!DOEND
!ENDDEFINE .


Dawn Wiest wrote
Dear listserv,

I am writing to ask if anyone on the list has experienced a similar
problem and if so, how the problem was resolved. I recently installed
SPSS 20 on my desktop computer, which runs Windows 7, 64. When I type
code into the syntax editor, everything slows down after a few minutes
(i.e. I type but there is a delay between typing and what appears on
screen) and then eventually freezes. Even when the syntax editor
unfreezes, I still cannot place the cursor where I need it, or delete
code, or type any code without a delay. It simply becomes impossible to
continue working in the document. When I try to save the document before
closing it, I receive the message “Failed to save document”.  I then
close the document and reopen it, but the document is 100% empty. Also,
the name I gave the document when I created it and saved it for the
first time no longer appears in the upper left hand corner. Instead, the
banner reads “IBM Statistics Syntax Editor” as if I had opened a new
syntax document.

I had this exact problem with SPSS 19 last year when my computer ran on
Windows XP. The problem was solved once I downloaded and ran the patch
to upgrade to 19.0.0.1. However, the SPSS 20 fix pack to upgrade to
20.0.0.1 (SPSS Stats 20.0 FP1 Win64 Client) does not solve this problem,
and I haven’t had much luck with IBM technical support.

Any suggestions would be very much appreciated.


Dawn Wiest, Ph.D.
Senior Research Analyst
Research Center - 7th Floor
American College of Physicians
190 North Independence Mall West Philadelphia, PA 19106-1572

[hidden email]
(215) 351-2561

=====================
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: SPSS 20 - problem with syntax editor

mils
In reply to this post by Dawn Wiest
See the following link

http://www-01.ibm.com/support/docview.wss?uid=swg21484724

This is actually functioning as designed. If you have large syntax files and you would like to have no delay when entering new commands you have to deactivate more options than you have already in order to have a Text Editor behavior in the Syntax Editor. If you turn off the options you will have no delay in the Syntax Editor.
On the Syntax Editor tab of the Edit - Options menu please deactivate:
1) Turn off 'Display syntax color coding'
2) Turn off 'Display validation color coding'
3) Turn off 'Automatically display the auto-complete control'
4) Turn off 'Display command spans'
Also you need to hide the navigation pane, this can be done in the Edit Options menu as well
5) Turn off 'Display the navigation pane OR simply deselect the menu option View->Show Navigation Pane
mils