« Return to Thread: What exactly is 'width' in variable view?

Compute newvar string+number

by Parise, Carol A. :: Rate this Message:

Reply to Author | View in Thread

Hi all,

I need to compute a new variable that combines a string variable with a
year variable which is stored as a number.

For example:
V1      Year
A5      2007
C90     2006

I would like my new variable to be a string:

A52007
C902006

Should i just convert my year to a string and use concat to do this or
does someone know of a trick so that i can leave year as a number?

Thanks
Carol

=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@... (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

 « Return to Thread: What exactly is 'width' in variable view?