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
|