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 ...
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