LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (December 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 11 Dec 2001 08:26:54 -0500
Reply-To:   Larry Bertolini <bertolini.1@OSU.EDU>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Larry Bertolini <bertolini.1@OSU.EDU>
Organization:   Ohio State University
Subject:   Re: upper(trim(left(myvar)))
Content-Type:   text/plain; charset=us-ascii

I can accept that way that SAS currently works, and I've got enough "legacy" code around that I wouldn't want the default behavior to change.

I can also agree that the trailing blanks can be a pain in the neck on occasion.

Perhaps SAS could add a few enhancements:

* a new operator that would trim, then concatenate. E.g. c = a :: b;

* an enhancement to the $varying format, that would automatically supply the length of the trimmed string; e.g.:

put a $varying20. * b $varying20. *;

(If the string is "missing", the length would be 0, not 1.)


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