Date: Thu, 25 Oct 2007 22:04:33 -0400
Reply-To: Dave Scocca <dave@SCOCCA.ORG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Dave Scocca <dave@SCOCCA.ORG>
Subject: Re: Automatic type conversion
In-Reply-To: <200710260132.l9PMobCp026797@mailgw.cc.uga.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
--On 10/25/07 9:32 PM -0400 Kenneth Karan wrote:
> More practically, I always use explicit type conversion. Character to
> numeric: NumVar = input(CharVar, bestn.);
A recent discovery--"Best" is completely optional, and BESTw.d is in fact
simply an alias to the w.d informat.
So: numVar = input(charVar, n.) ; where N is at least the length of the
character variable, up to 32.
Dave
|