How to make first and last letter capital

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Prince_Hyd
Participant
Posts: 35
Joined: Mon May 06, 2013 5:59 am

How to make first and last letter capital

Post by Prince_Hyd »

Hi folks

I have a source file like this

name
hyundai
suzuki
ford
honda

i want to make first and last letter capital how can i perform this.


Thanks
shiva_reddys447
Participant
Posts: 21
Joined: Sat Sep 08, 2007 12:04 am
Location: bangalore

Re: How to make first and last letter capital

Post by shiva_reddys447 »

Hello,

use this derivation in Tx.

upcase(left(DSLink2.name,1)): DSLink2.name[2,len(DSLink2.name)-2]:upcase(right(DSLink2.name,1))


Replace the DSLink2.name with your column name
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Actually you only need to do it once.
:lol:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chandra.shekhar@tcs.com
Premium Member
Premium Member
Posts: 353
Joined: Mon Jan 17, 2011 5:03 am
Location: Mumbai, India

Post by chandra.shekhar@tcs.com »

Actually Ray, this is a problem with the website.
While posting comments, if the net speed is slow then the comment is posted twice(or thrice) :shock:
Thanx and Regards,
ETL User
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

... and then you go back and delete the extra ones. Anyone can do that as long as they haven't been replied to. Me, I can do it anytime. 8)
-craig

"You can never have too many knives" -- Logan Nine Fingers
chandra.shekhar@tcs.com
Premium Member
Premium Member
Posts: 353
Joined: Mon Jan 17, 2011 5:03 am
Location: Mumbai, India

Post by chandra.shekhar@tcs.com »

@Craig,
You also posted two times.. :wink:
Thanx and Regards,
ETL User
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You sure?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Prince_Hyd
Participant
Posts: 35
Joined: Mon May 06, 2013 5:59 am

Re: How to make first and last letter capital

Post by Prince_Hyd »

Hi Siva

perfect solution




Thanks
Post Reply