Capitolizing the first and last letter

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vijayasarathi7
Participant
Posts: 3
Joined: Mon Nov 25, 2013 1:37 am

Capitolizing the first and last letter

Post by vijayasarathi7 »

Hi All,

I have a job, to capitolizing 1st and last letters.

Source
Column_name-varchar
mphasis
satyam
techmahindra
wipro
ibm


Target
Column_name-varchar
MphasiS
SatyaM
TechmahindrA
WiprO
IbM


Thanks
Vijayasarathi
RPhani
Participant
Posts: 32
Joined: Sun Aug 26, 2012 7:03 am
Location: Hyd

Post by RPhani »

Hi,

Try this:
Upcase(Left(Column_name,1)):Column_name[2,Len(Column_name)-2]:Upcase(Right(Column_name,1))

-----------------------------------------
RPhani
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: Capitolizing the first and last letter

Post by ray.wurlod »

vijayasarathi7 wrote:I have a job, to capitolizing 1st and last letters.
Why?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply