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 (March 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 24 Mar 2003 10:42:12 +0800
Reply-To:     paul yeo <paulyeo11@yahoo.com.sg>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         paul yeo <paulyeo11@yahoo.com.sg>
Subject:      Re: CONVERT NUM VARIABLE TO STRING VARIABLE
Comments: To: Raynald Levesque <rlevesque@videotron.ca>
In-Reply-To:  <JAEFJAPAEBFCDIHJIFKCMEEHCOAA.rlevesque@videotron.ca>
Content-Type: text/plain; charset=iso-8859-1

hI RAYNALD AND ALL SPSS LIST MEMBER * QUESTION: How can i combine two variable into one variable ? that is Variable " S_NO " and " S_Model " ?

DATA LIST FREE /brand (F8.0) model(A12) sales (F8.0). BEGIN DATA 1 's_one' 19 1 's_one' 14 1 's_one' 29 1 's_one' 20 2 's_two' 13 2 's_two' 24 2 's_two' 24 2 's_two' 22 3 's_three' 20 3 's_three' 34 3 's_three' 27 3 's_three' 25 7 's_seven' 40 7 's_seven' 44 7 's_seven' 22 7 's_seven' 26 END DATA.

SORT CASES BY brand. SAVE OUTFILE='c:\temp\temp.sav'.

GET FILE='c:\temp\temp.sav'.

I HAVE TRY the following syntax , but it does not work.

compute S_NO = $casenum. exe.

STRING S_Model (A50). /* declare new string variable */ COMPUTE S_Model=CONCAT(SUBSTR(S_NO,1,2)," ", Model). exe.

__________________________________________________ Do You Yahoo!? Promote your business from just $5 a month! http://sg.biztools.yahoo.com


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