LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2009)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 28 Jan 2009 11:17:25 +0100
Reply-To:     Lucas Bremer <bremer@bwl.uni-kiel.de>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Lucas Bremer <bremer@bwl.uni-kiel.de>
Subject:      automatically concatenate one string with many variables
Content-Type: text/plain; charset="us-ascii"

Hello everybody,

I'm trying to concatenate one string variable with let's say with 100 other numerical variables.

My data looks like this:

STRING N1 N2 N3 ... N100

AAAA 100 345 456 502

AAAB 056 101 159 312

...

The resulting data should have this format

STRING C1 C2 C3 ... C100

AAAA AAAA100 AAAA345 AAAA456 AAAA502

AAAB AAAB056 AAAB101 AAAB159 AAAB312

...

I know that I can use concat(var1,var2,.) but I don't know how to use it in combination with a loop.

Thanks in advance.

Bye, Lucas

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


Back to: Top of message | Previous page | Main SPSSX-L page