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 (April 2007)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 10 Apr 2007 13:38:14 -0400
Reply-To:     Art@DrKendall.org
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Art Kendall <Arthur.Kendall@verizon.net>
Subject:      Re: string to number??
Comments: To: Samuel Solomon <samuel.solomon@nso.gov.er>
In-Reply-To:  <BE3FA3B86F9D4643B1162B55FBB4FEA4322FB0@exchange.nso.gov.er>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

There is example syntax below the sig block.

Save all your current work, then open a new instance of SPSS. Make sure that you put warnings, etc. into the output file. <edit> <options> <viewer>. Cut-and-paste then run the syntax. Please restate your question in more detail. What results you are getting? how do they differ from what you want? Are you getting any error messages? Perhaps post a small data set with variables "have" and "want",

Art

Social Research Consultants

data list list/mystring (a8). begin data 1.23456 12.3456 123.456 1234.56 12345.6 123456 .123456 .0123456 end data. compute mynumber = number(mystring, f16.7). formats mynumber (f16.7). list.

Samuel Solomon wrote: > > Hi, > > > > How are you? I want to ask you simple question. How can I change a > predefined string variable to the same numeric variable? I tried > *number(argu,format)* function but it didn't serve me write. I am > using spss11.0. > > > > Thanks, > > > > samuel > > > > > > > > > > > > > > > > > > >


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