Date: Tue, 16 Nov 1999 14:58:04 -0500
Reply-To: Robert J Krajcik <robert.krajcik@BMS.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert J Krajcik <robert.krajcik@BMS.COM>
Organization: Bristol-Myers Squibb
Subject: Re: Proper Case address for SAS mailing
Content-type: multipart/alternative;
Hello Alan,
Looks Like You Want Sentence Case.
Have You Tried Something Like:
/* Assuming the first letter is already upper case... */
If length(word) gt 2
then substr(word,2) = lowcase(substr(word,2));
In other words,
use "substr" as a pseduo-variable on the left, a function on
the right,
and let the length of "substr" default?
N.B. Limited testing.
Rob Krajcik
> I am trying to improve presentation
> of customer addresses for a mailing.
>
> Currently:
>
> MR JOHN SMITH
> FLAT 2 NELSON MANDELA HOUSE
> LONDON
>
> I would like:
>
> Mr John Smith
> Flat 2 Nelson Mandela House
> London
>
[text/html]
|