SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
  • 1.  syntax window scrolling

    Posted Tue June 20, 2023 10:23 AM
    Just joined, and had a critical question for some of the members.
    I have been using SPSS for over 40 years, and recently updated my version to V29 in the form of IBM SPSS Statistics Premium Grad Pack from ThinkEDU. 
    After downloading and installing the replacement for my previous version. I began using V29, only to find that scrolling - through the Syntax Window only -  was extremely slow and unwieldy
    The other windows - Output and Data - were fine, but the scrolling through Syntax has become a real problem!
    I have tried the IBM online suggestion:

    Large syntax files in IBM SPSS Statistics very slow to navigate
    Troubleshooting
    Problem
    I am using IBM SPSS Statistics. I have a syntax file that is over 1 MB in size. When I open the file, I can see the syntax commands but SPSS seems to hang and I am not able to navigate within it. After a couple minutes, I can them move about in my file. What is happening?
    Symptom
    large syntax file. hang on opening. slow to navigate
    Cause
    This behavior is a combination of the large file and having all the options enabled for the syntax window. SPSS is loading all this information on launch of the file, hence the inability to click.
    Resolving The Problem
    This behavior is a combination of the large file and having all the options enabled for the syntax window. SPSS is loading all this information on launch of the file, hence the inability to click. To speed up the load time, launch SPSS and go into Edit->options and click the Syntax Editor tab. Uncheck the options that are unnecessary for you, for example Display Color Coding. Click Apply and OK. Now you will be able to navigate the large syntax file sooner without the long delay.

     
    Unfortunately, this was not successful. Could you point me to the answers that could help me find a solution to this vexing problem?
    Best,
     
    Roger


    ------------------------------
    Roger Fiedler
    ------------------------------


  • 2.  RE: syntax window scrolling

    Posted Tue June 20, 2023 01:33 PM

    Hi @Roger Fiedler 

    This question has come up many many times over the life of IBM SPSS Statistics (and before it "SPSS for Windows").  As the product has progressed through the years the Syntax Editor has. become less and less like a text editor.  It is constantly checking key presses and revising the display.  With longer command syntax files, it reaches a point where interactivity is seriously degraded or lost entirely. At that point, I usually direct the user to the above technote. The sum of that technote is to make the IBM SPSS Statistics Syntax Editor as much like a text editor as possible.

    If your command syntax file is still so large that it is unwieldy in the Syntax Editor, then there really are only two solutions that remain:

    • Actually take the syntax into your favorite text editor.
    • Break the syntax up in thematic modules and then knit the modules together as needed using INSERT command syntax from a main syntax file.  Better still to make use of Python Programmability to control these underlying modules of command syntax.


    ------------------------------
    David Dwyer
    SPSS Technical Support
    IBM Software
    ------------------------------



  • 3.  RE: syntax window scrolling

    Posted Tue June 20, 2023 02:56 PM
    Hi David,

    This was incredibly helpful, thank you! It's been a while since I've had a chance to talk with another so familiar with SPSS, and I was worried I would not hear back from the 

    IBM TechXchange Community. Your suggestions will help considerably, as I just was not sure where the problem existed - on my system, or in SPSS. Previous versions of SPSS did not have as long a delay as V29, but I can parse the syntax as you describe with INSERTs. Thank you ever so much again for your reply!!


    All the best,

    Roger