Date: Tue, 13 Apr 2004 12:12:03 +0200
Reply-To: Robert Bardos <bardos2@ANSYS.CH>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert Bardos <bardos2@ANSYS.CH>
Subject: Re: how to convert a number in string format to its numerical
value
In-Reply-To: <002101c42118$2c0df360$4f78c080@TCB527299>
Content-Type: text/plain; charset="iso-8859-1"
Mayukh,
use the INPUT function.
DocLink: http://v8doc.sas.com/sashtml/lgref/z0180357.htm#z0226269
Hope this helps
Robert Bardos
Ansys AG, Switzerland
-----Ursprüngliche Nachricht-----
Von: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]Im Auftrag von
Mayukh Dass
Gesendet: Dienstag, 13. April 2004 07:29
An: SAS-L@LISTSERV.UGA.EDU
Betreff: how to convert a number in string format to its numerical value
Hi,
I have a dataset where the variable age is a string variable and contains
numbers. I would like to process the numeric value of these strings.
For example,
Age
20 is a string. I want to convert this 20
which is a string to 20 as a numeric value.
Thank you in advance.
Mayukh
|