Date: Fri, 30 Sep 2005 10:57:31 +0200
Reply-To: Spousta Jan <JSpousta@CSAS.CZ>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Spousta Jan <JSpousta@CSAS.CZ>
Subject: Re: String Transformation
Content-Type: text/plain; charset="US-ASCII"
Hi,
Just a remark: the second line of the code can be even simpler, I think:
string tab (a1) .
compute tab=string(9,pib1).
etc.
I am still missing \t and \n and similar abbreviations in SPSS...
Greetings
Jan
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of
Simon Freidin
Sent: Friday, September 30, 2005 4:16 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Re: String Transformation
here's another way
string tab (a1) .
compute tab=string(number('9',n2),pib1).
compute
x=concat("if",tab,"y=",tab,"""",ltrim(rtrim(y)),"""",tab,"code=",tab,"."
).
At 02:39 AM 30/09/2005, Arthur Aguirre wrote:
>Hi,
>
>I have the following compute function:
>
>comp x=concat("if"," ","y=","""",ltrim(rtrim(y)),"""","","code=","
>",".").
>
>It would be useful to insert tab spaces verses singles spaces (" ").
>Anyone know if this is possible?
>
>Thanks.
>Arthur
>
>
>
>
>______________________________________________________________________
>This email has been scanned by the MessageLabs Email Security System.
>For more information please visit http://www.messagelabs.com/email
>______________________________________________________________________
Research Database Manager and Analyst
Melbourne Institute of Applied Economic and Social Research The
University of Melbourne Melbourne VIC 3010 Australia New Tel: (03) 8344
2085 New Fax: (03) 8344 2111 http://www.melbourneinstitute.com/hilda/
|