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
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.
***********************************************************************
|