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 (November 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 15 Nov 2003 14:04:16 -0500
Reply-To:     Raynald Levesque <rlevesque@videotron.ca>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Raynald Levesque <rlevesque@videotron.ca>
Subject:      Re: Use of Concat procedure
In-Reply-To:  <sfb61c1f.000@GWMAIL01.LOYOLA.EDU>
Content-type: text/plain; charset=US-ASCII

Hi

DATA LIST LIST /v1 v2 v3 v4 (4A1) v5 v6 (2A2). BEGIN DATA 1 2 3 4 5 9 2 3 5 2 7 8 END DATA.

STRING first4(A4) notlast2 last2(A2). COMPUTE first4=CONCAT(v1,v2,v3,v4).

* However next command does not work. COMPUTE notlast2=CONCAT(v5,v6). * following method works. COMPUTE last2=CONCAT(RTRIM(v5),v6). EXECUTE.

HTH

Raynald Levesque rlevesque@videotron.ca Visit my SPSS site: http://pages.infinit.net/rlevesqu/

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of Martin Sherman Sent: November 15, 2003 12:29 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Use of Concat procedure

Dear list: I am trying to use the concat procedure for the first time and seem to be having some difficulty. I want to take four string variables and make them into one variable. That is, I want 1 2 2 1 to become 1221. Suggestions appreciated.

Martin F. Sherman, Ph.D. Professor of Psychology Loyola College 222 B Beatty Hall 4501 North Charles Street Baltimore, MD 21210

410 617-2417 (Office) 410 617-5341 (FAX) msherman@loyola.edu


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