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 (October 2001, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 26 Oct 2001 10:25:57 -0400
Reply-To:     "Braten, Michael (Exchange)" <mbraten@BEAR.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Braten, Michael (Exchange)" <mbraten@BEAR.COM>
Subject:      Re: Character to numeric conversion
Comments: To: Dietrich Alte <alte@MAIL.UNI-GREIFSWALD.DE>
Content-Type: text/plain

HI!

Characters , as you described , can be converted to numeric via the INPUT function numvar= input( charactervar, fomat) ;

> -----Original Message----- > From: Dietrich Alte [SMTP:alte@MAIL.UNI-GREIFSWALD.DE] > Sent: Friday, October 26, 2001 2:42 AM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Character to numeric conversion > > Is it possible to convert a variable (i.e. it's TYPE) from character > to numeric (assuming the variable has only numeric values)? > > Ok, I know, I can create another variable, multiply with one, rename > and drop, but is there an easier way? I have about 400 vars to change. > > > Any hints welcome. > > -- > ----------------------------------------------------------------- > Dietrich Alte (Statistician, Dipl.-Stat.) > University of Greifswald - Medical Faculty > Institute of Epidemiology and Social Medicine > Walther-Rathenau-Str. 48, D-17487 Greifswald, Germany > Phone +49 (0) 3834 - 86 77 13, fax +49 (0) 3834 - 86 66 84 > Email alte@mail.uni-greifswald.de > Institute http://www.medizin.uni-greifswald.de/epidem/ > Study http://www.medizin.uni-greifswald.de/epidem/ship.htm > -----------------------------------------------------------------

*********************************************************************** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ***********************************************************************


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