LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (May 2001, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 3 May 2001 08:39:19 EDT
Reply-To:     nnair@acf.dhhs.gov
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Neal K Nair <nnair@ACF.DHHS.GOV>
Subject:      Re: ... no subject ...
Comments: To: Magnus Wiberg <MagnusW@IUI.SE>

Magnus:

I think you should be using INPUT, not PUT, to convert character to numeric.

Neal ---------- Original Text ----------

From: "Magnus Wiberg" <MagnusW@IUI.SE>, on 5/3/01 8:24 AM: To: SMTP@Public.11@ACF.WDC[<SAS-L@LISTSERV.UGA.EDU>]

How do you convert a text variable to a numeric? The command I use doesnnt work when there is text present.

data distans(drop hif); set mergers.distans(rename=(aik=hif)); aupnatc=put(hif, 3.); run;

Is there a problem with the format 3. maybe?

Magnus


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