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 (July 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 19 Jul 2006 12:33:35 -0400
Reply-To:     Sophie <sophiestat@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Sophie <sophiestat@GMAIL.COM>
Subject:      Re: Question on retrieving character data
Comments: To: Ya Huang <ya.huang@amylin.com>
In-Reply-To:  <200607191625.k6JAkQVO021624@malibu.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I will say trim(left(var1))='tom some 112' Sophie

On 7/19/06, Ya Huang <ya.huang@amylin.com> wrote: > > can you try this and let us know what happens? > > if left(var1)='tom some 112' then output; > > > On Wed, 19 Jul 2006 09:18:56 -0700, jn mao <jn_mao@YAHOO.COM> wrote: > > >Hello SAS-Ls, > > > > I have a character variable. It was set 49 lenght, but most of them > have > 12 letters including number. I need to retrieve them. However, whatever I > code to output them, they won't come out. > > > > For example, my code is > > > > if var1='tom some 112' then output; > > > > The var1 is a 12 letters data, but its length parameter shown 49. I > don't know how these data were entered. > > > > Could someone help me on retrieving them? Thanks much. > > > > Jane > > > > > >--------------------------------- > >Groups are talking. We're listening. Check out the handy changes to > Yahoo! > Groups. >


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