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 2005)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 11 Jan 2005 15:15:33 -0000
Reply-To:     Kevin Gray <KGray@networkhg.org.uk>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Kevin Gray <KGray@networkhg.org.uk>
Subject:      Re: syntax problem: joining content of string-variables
Content-Type: text/plain; charset="iso-8859-1"

Hi Lenz

try

STRING var_new (a20). EXECUTE.

compute var_new =concat ((ltrim(rtrim(var_1))),(ltrim(rtrim(var_2)))). Execute.

Kevin Gray Database & Business System Manager Project 7 Network Housing Group kgray@networkhg.org.uk

Tel 020 8782 5455

Lenz Dobler <doblerl@uni-muenster.de> Sent by: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>

11/01/2005 14:57 Please respond to doblerl To: SPSSX-L@LISTSERV.UGA.EDU@SMTP@Exchange cc: (bcc: Kevin Gray/NetworkHA) Subject: syntax problem: joining content of string-variables

Hello List, I'd like to join the content of every single case of 2 string-variables in a new string-variable via syntax, like:

case_1 var_1 var_2 var_new 1 A B AB 2 B C BC ... ... ... ...

how to do that ? Hope someone can help !

regards

Lenz

--

Dr. Lorenz Dobler

Environmental Specimen Bank for Human Tissue University of Muenster D-48129 Muenster, Germany Phone: +49(0)251/83-52307 Phone: +49(0)251/83-56065 FAX: +49(0)251/83-55524 ------------------------------------------------------------ Umweltprobenbank des Bundes, Teilbank für Humanproben Universitaet Muenster D-48129 Muenster (Briefanschrift) D-48149 Muenster, Domagkstr. 11 (Hausanschrift) ------------------------------------------------------------ E-Mail: doblerl@uni-muenster.de Internet: http://www.uni-muenster.de/UPBHum/ ------------------------------------------------------------

________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________

______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________


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