Just follow the code you submitted in your most recent example.
DATA CAPITALIZE;
INFORMAT FIRST LAST $30.;
INPUT FIRST $ LAST $;
FIRST = LOWCASE(FIRST);
LAST = LOWCASE(LAST);
SUBSTR(FIRST,1,1) = UPCASE(SUBSTR(FIRST,1,1));
SUBSTR(LAST,1,1) = UPCASE(SUBSTR(LAST,1,1));
DATALINES;
ronaldcODy THomaSeDISON
;
run;
You're reading one record that has two strings:
first=ronaldcODy
and
last=THomaSeDISON
You're then making all of the letters, of both, to be lower case. i.e.,
ronaldcody
and
thomasedison
You're then make the first letter, of each, to be uppercase:
Ronaldcody
and
Thomasedison
Art, CEO, AnalystFinder.com
... View more