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