SPSS Statistics

SPSS Statistics

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

 View Only
  • 1.  "Text value too long" warn

    Posted Thu July 27, 2023 06:21 AM
      |   view attached

    Hello everyone. When i try to get the total score of my scale, spss gives this warn "text value too long for the current server locale". What am i supposed to do?  #SPSS Statistics



    ------------------------------
    Refika B
    ------------------------------

    Attachment(s)

    docx
    spsswarn.docx   92 KB 1 version


  • 2.  RE: "Text value too long" warn

    Posted Fri July 28, 2023 09:23 AM

    Hi Refika, sorry you are having difficulties. May I assume from the screen shot that you are on a Windows machine? 

    Some other questions:

    1. Which version of Statistics are you using?
    2. What version of MS-Windows do you have?
    3. Is this a single-seat copy of Statistics or are you connecting to a remote Statistics server?
    4. What locale is the server set to use?  (run `SHOW LOCALE` syntax to find out).
    5. Are you in Unicode or Code Page mode (run `SHOW UNICODE` syntax to find out). 

    The Compute statement in the screen shot looks pretty long. Is there a way to break the compute operation up into several smaller steps?

    Regards,



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------



  • 3.  RE: "Text value too long" warn

    Posted Fri August 04, 2023 05:12 PM
    Edited by David Dwyer Mon August 07, 2023 08:58 AM

    Hi @Refika B,
    One way to shorten the text in this dialog would be to :

    • Sort the variables such that all those mentioned here are next to one another in the file
    • Use the SUM(var, var ,var, ...) function rather than stringing the list of variables together with "+"
    • Use the "TO" keyword.

    Example:
    You are trying to build somehting like:

    COMPUTE newvar = var1 + var2+ var3 + ... + var1000.
    EXECUTE.

    Try instead:

    COMPUTE newvar = SUM(var1 TO v1000).
    EXECUTE.

    Again, the above assumes the variables you want to sum, are all next to each other in the Data Editor.



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



  • 4.  RE: "Text value too long" warn

    Posted Fri August 04, 2023 05:19 PM
    I think  you meant
    SUM(var1 TO var100),

    --





  • 5.  RE: "Text value too long" warn

    Posted Mon August 07, 2023 09:01 AM

    Sigh. You're right, I did mean that.



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