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 (May 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 12 May 2003 12:22:09 -0700
Reply-To:     Ray Wallace <raymondw@UIDAHO.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ray Wallace <raymondw@UIDAHO.EDU>
Organization: University of Idaho
Subject:      convert char values to nums

I am getting variables from a datasource such as ACT score and gpa. When SAS queries these fields, proc contents shows that they are Chars. I need them to be numeric values.

How can a change char values in a field to their corresponding numeric values. For example, an if statement for each values would do it, but there are a lot of different values. I.e., there would be too many of these types of statements: if gpa eq '3.42' then gpa = 3.42;

thanks,


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