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 (April 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 10 Apr 2003 19:34:25 -0400
Reply-To:     Sigurd Hermansen <HERMANS1@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Sigurd Hermansen <HERMANS1@WESTAT.COM>
Subject:      Re: switch variable character into numeric
Comments: To: kfran <kfran@FR.ST>
Content-Type: text/plain; charset="iso-8859-1"

In a DATA step, try the statement form x=inputn(source, best.); in a SQL SELECT or WHERE clause, try ...,inputn(source, best.) as x,..... .

Replace 'source' with the character variable name. You may also replace 'best.' (an informat) with any of many different numeric informats. 'x', of course, stands for any variable name.

Sig

-----Original Message----- From: kfran [mailto:kfran@FR.ST] Sent: Wednesday, April 09, 2003 6:00 PM To: SAS-L@LISTSERV.UGA.EDU Subject: switch variable character into numeric

Hi, I am a French student I have a problem on SAS I want to switch a character variable into numeric variable for that I use the function inputn(source, informat., W, d) soucre -> name of the variable informat -> I do not know what write can you help me thank you in advance


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