|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.)