syntax for changing width of variable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

syntax for changing width of variable

Christine-28
Hi there!
I'm using version 15 and am new to syntax. I am combining two large datasets
and need to change the width of a string variable (of all things). What
would the code be for doing this task?

It would be very cumbersome to go into the dataset and manually change it as
this is longitudinal data and I am trying to create a script that processes
this automatically. All my books assume I can just simply go in and manually
change it but this would not be ideal.

Dataset1: ID, variable Type string, width 8
Dataset2: ID, variable Type string, width 15

Basically all I need to do is change 15 to 8

Thanks in advance.
Christine

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD