| Date: | Fri, 21 Jul 2006 03:44:59 -0700 |
| Reply-To: | Guillermo Ramos <g.ramos.alvarez@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Guillermo Ramos <g.ramos.alvarez@GMAIL.COM> |
| Organization: | http://groups.google.com |
| Subject: | Re: converting text to numeric column |
|
| In-Reply-To: | <1153471342.088793.257680@b28g2000cwb.googlegroups.com> |
| Content-Type: | text/plain; charset="iso-8859-1" |
|---|
Anu,
try this:
...
data sample1 ;
set sample (firstobs=2 rename=(no=no_old));
no = input (no_old, best.);
drop no_old;
run;
Hope that helps.
anu wrote:
> Hi,
>
> I have a dataset sample as follows
>
> data sample;
> input no $ name $;
> cards;
> a fffm
> 1 aaan
> 2 bbbc
> ;
> run;
>
>
> data sample1 ;
> set sample (firstobs=2);
> run;
>
>
> Now how do I convert the column 'no' to be numeric
|