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
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
and let the length of "substr" default?
N.B. Limited testing.
> I am trying to improve presentation
> of customer addresses for a mailing.
> MR JOHN SMITH
> FLAT 2 NELSON MANDELA HOUSE
> I would like:
> Mr John Smith
> Flat 2 Nelson Mandela House