Date: Wed, 21 Jul 2010 09:34:27 -0400
Reply-To: Gene Maguin <email@example.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Gene Maguin <firstname.lastname@example.org>
Subject: Re: changing width of strings
Patricia, look at the Alter type command. Extremely useful. Gene Maguin
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of
Cleland, Patricia (EDU)
Sent: Wednesday, July 21, 2010 9:25 AM
Subject: changing width of strings
I'm trying to merge the results of two versions of a questionnaire but I'm
having problems with some of the open-ended questions. For example, in one
of the versions, the format of a variable is A22 and in the other version
it's A36. I assume that if I change the format in the first version to A36,
the merge should work. I can certainly go in and do that by hand, but
that's labour intensive, error prone, doesn't leave an audit trail and
requires stopping in the middle of a run.
When I had a similar problem with a variable that should have been numeric
in both versions but came through as a string in one version, I used the
COMPUTE NewVar=numeric(OldVar, F6) command.
Is there something similar that I can use for strings?