Neerav Monga
2005-11-18 18:51:46 UTC
Hi everyone,
I just received data in the form of a SPSS portable file which I can
read in using SAS. However, the problem is that SPSS codes all
character variables to be of length 200 AND formats them as $255.
When I go to view the data, I can't see the columns next to one another
b/c of this formatting by SPSS. Is there anyway to change the formats
and lengths of ALL character variables using a DATASTEP or SQL?
I'd be happy if the length was fixed say at 20, and format $20. as
well. I have around 60 variables that need to be coded like this.
Thanks for any advice you may have in advance,
Neerav
I just received data in the form of a SPSS portable file which I can
read in using SAS. However, the problem is that SPSS codes all
character variables to be of length 200 AND formats them as $255.
When I go to view the data, I can't see the columns next to one another
b/c of this formatting by SPSS. Is there anyway to change the formats
and lengths of ALL character variables using a DATASTEP or SQL?
I'd be happy if the length was fixed say at 20, and format $20. as
well. I have around 60 variables that need to be coded like this.
Thanks for any advice you may have in advance,
Neerav