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 (October 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Kenneth Karan <posible88-sswug@YAHOO.COM>
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


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