Import SPSS long character variables

Reply
Occasional Contributor
Posts: 7

Import SPSS long character variables

I've been using PROC IMPORT for a while to read SPSS files into SAS (the usual proc import file="name.sav" out=a; runSmiley Wink.

However, how do you important long character values (32,000+) characters long so that it is just one variable in SAS? When I import long character values from a .sav file, it breaks it up into several SAS variables.

Thanks.

Frequent Contributor
Posts: 130

Re: Import SPSS long character variables

32767 is the maximum length of a SAS character variable. What sort of processing do you have in mind for it once imported? Text mining? Do you really need the text data in one variable?

Sorry this may not be much help.

Damien

Ask a Question
Discussion stats
  • 1 reply
  • 185 views
  • 0 likes
  • 2 in conversation