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 (April 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 16 Apr 2009 00:02:59 +0800
Reply-To:     Alex Murphy <goladin@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Alex Murphy <goladin@GMAIL.COM>
Subject:      Re: Character Variable Equivalence (NOT case sensitive)
Comments: To: Michael Bryce Herrington <mherrin@g.clemson.edu>
In-Reply-To:  <e52cf8710904150858y5ed62cdbq5f957a26fd5d90df@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

You can use the UPCASE function.

class = UPCASE(raceclass1)

On Wed, Apr 15, 2009 at 11:58 PM, Michael Bryce Herrington < mherrin@g.clemson.edu> wrote:

> I have two character variables which I want to use in an if then statement > like so: > > > if class = raceclass1 then sameclass=*1*; > > else sameclass=*0*; > But Class is in all caps and raceclass is in all lowercase. How can I get > around this? Thanks. > > -- > Bryce Herrington > Clemson University >

-- Regards, Murphy Choy

Certified Advanced Programmer for SAS V9 Certified Basic Programmer for SAS V9 DataShaping Certified SAS Professional


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