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 (September 2000, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 18 Sep 2000 17:32:00 -0400
Reply-To:     HERMANS1 <HERMANS1@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         HERMANS1 <HERMANS1@WESTAT.COM>
Subject:      Re: Converting Char to Numeric
Comments: To: "Deppman; Laurie M" <Laurie.Deppman@DOH.WA.GOV>
Content-Type: text/plain; charset=US-ASCII

In SAS SQL a join on matching key values does not require a common BY group; use a function or format to convert one or both keys to a common basis. For example,

create table t as select t1.date as ndate,t2.date as cdate from a as t1 inner join b as t2 on t1.date=input(t2.date,mmddyy10.) ;

Sig -----Original Message----- From: "Deppman; Laurie M" <Laurie.Deppman@DOH.WA.GOV> at Internet-E-Mail

Sent: Monday, September 18, 2000 12:14 PM To: SAS-L@LISTSERV.UGA.EDU at Internet-E-Mail Subject: Converting Char to Numeric

How do I convert a character to a numeric variable in an existing SAS data set? I am merging three data sets. One data set established a variable as character and the other data sets established the same variable as numeric. SAS will not let me merge them until all like variables are either char or numeric.


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