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 (October 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 2 Oct 2006 07:03:42 -0700
Reply-To:   vanwamelen@GMAIL.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   vanwamelen@GMAIL.COM
Organization:   http://groups.google.com
Subject:   Avoiding "Invalid numeric data" errors
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset="iso-8859-1"

Dear SAS gurus,

I would like to check whether the value in a character variable can be converted to numeric.

Currently I do something like: var_num = put(var_char, 8.); if var_num ^= . This works, but creates a big mess in my log. Surely there must be a better way?

Best, Paul


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