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 (July 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: sas-l@uga.edu
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


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