When SPSS reads an excel file, can it automatically remove blanks from headers.

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

When SPSS reads an excel file, can it automatically remove blanks from headers.

Art Kendall
I do not have access to SPSS today or I could just test this.
Does version 21 have an option to read an Excel file and collapse column Headers by removing blanks?
e.g. "Date of Birth" ==> "DateofBirth"
or
"First Name" ==> "FirstName"
-- 
Art Kendall
Social Research Consultants
Art Kendall
Social Research Consultants
Reply | Threaded
Open this post in threaded view
|

Re: When SPSS reads an excel file, can it automatically remove blanks from headers.

Jon K Peck
Statistics 22 compresses blanks out automatically, but 21 replaces the name with Vnnn.


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




From:        Art Kendall <[hidden email]>
To:        [hidden email],
Date:        04/05/2014 08:41 AM
Subject:        [SPSSX-L] When SPSS reads an excel file,              can it automatically remove blanks from headers.
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I do not have access to SPSS today or I could just test this.
Does version 21 have an option to read an Excel file and collapse column Headers by removing blanks?
e.g. "Date of Birth" ==> "DateofBirth"
or
"First Name" ==> "FirstName"

--
Art Kendall
Social Research Consultants

Art Kendall
Social Research Consultants



View this message in context: When SPSS reads an excel file, can it automatically remove blanks from headers.
Sent from the
SPSSX Discussion mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: When SPSS reads an excel file, can it automatically remove blanks from headers.

Jignesh Sutar
There was a bug/inconsistency in this. IIRC, if it contained a blank then then the blank would be removed and the remainder of the string would be used as the variable name but if it contained a illegal character (for a variable name) then it would use the V# convention instead (rather than simply removing the illegal character). I remember it to be something along these line. I filled a bug report which was accepted and fixed in the latest V22 fix pack. See notes below




Error description

  • In v 21 when importing from Excel, if the variable name contains
    an illegal character like a space or a . it renames the variable
    to V18 or V23 -- the number corresponding to the position of the
    variable in the file.  In other manifestations, it simply strips
    the '.' character from the fieldname.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of SPSS Statistics wanting to read from MS Excel       *
    * (*.xlsx) files                                               *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * ILLEGAL VARIABLE NAMES FROM EXCEL ARE RENAMED                *
    * INAPPROPRIATELY                                              *
    * (E.G. 'MY VARNAME' BECOMES 'V12')                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Update to SPSS Statistics 21.0 Fixpack 2 (21.0.0.2)          *
    ****************************************************************
    

Problem conclusion

  • This issue has been resolved for SPSS Statistics 21.0 Fixpack 2
    (21.0.0.2)
  • APAR Information

    • APAR number

      PM85225

    • Reported component name

      SPSS STATISTICS

    • Reported component ID

      5725A54ST

    • Reported release

      L00



On 5 April 2014 15:45, Jon K Peck <[hidden email]> wrote:
Statistics 22 compresses blanks out automatically, but 21 replaces the name with Vnnn.


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




From:        Art Kendall <[hidden email]>
To:        [hidden email],
Date:        04/05/2014 08:41 AM
Subject:        [SPSSX-L] When SPSS reads an excel file,              can it automatically remove blanks from headers.
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I do not have access to SPSS today or I could just test this.
Does version 21 have an option to read an Excel file and collapse column Headers by removing blanks?
e.g. "Date of Birth" ==> "DateofBirth"
or
"First Name" ==> "FirstName"

--
Art Kendall
Social Research Consultants

Art Kendall
Social Research Consultants



View this message in context: When SPSS reads an excel file, can it automatically remove blanks from headers.
Sent from the
SPSSX Discussion mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|

Re: When SPSS reads an excel file, can it automatically remove blanks from headers.

Art Kendall
In reply to this post by Jon K Peck
Okay I must have been remembering the Beta of SPSS 22.
Things are still messed up with my receiving a regular SPSS22 access code
Art Kendall
Social Research Consultants
On 4/5/2014 10:51 AM, Jon K Peck [via SPSSX Discussion] wrote:
Statistics 22 compresses blanks out automatically, but 21 replaces the name with Vnnn.


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




From:        Art Kendall <[hidden email]>
To:        [hidden email],
Date:        04/05/2014 08:41 AM
Subject:        [SPSSX-L] When SPSS reads an excel file,              can it automatically remove blanks from headers.
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I do not have access to SPSS today or I could just test this.
Does version 21 have an option to read an Excel file and collapse column Headers by removing blanks?
e.g. "Date of Birth" ==> "DateofBirth"
or
"First Name" ==> "FirstName"

--
Art Kendall
Social Research Consultants

Art Kendall
Social Research Consultants



View this message in context: When SPSS reads an excel file, can it automatically remove blanks from headers.
Sent from the
SPSSX Discussion mailing list archive at Nabble.com.



To start a new topic under SPSSX Discussion, email [hidden email]
To unsubscribe from SPSSX Discussion, click here.
NAML

Art Kendall
Social Research Consultants