Delta Processing using change capture

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
reddy.cba
Premium Member
Premium Member
Posts: 27
Joined: Wed Jan 31, 2007 3:32 am
Location: sydney

Delta Processing using change capture

Post by reddy.cba »

Is there any Trim Function in R 7.5 enterprise edition to trim the Blank spaces in between two words.
Like if souce is 'vamshi mohan' can i get it as vamshi mohan.
Removing more than one spaces in between.
In the document it states we can use trail R function but this function is not available in the r 7.5 edition.
ANy idea how we can remove the spaces?
Thanks
Reddy
Man Has Created Money...Its not Money which has created Man....
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi Reddy,
But the example that you gave as input and out is same,
Like if souce is 'vamshi mohan' can i get it as vamshi mohan.
Do you mean to say, you need to get output as 'vamshimohan'?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
reddy.cba
Premium Member
Premium Member
Posts: 27
Joined: Wed Jan 31, 2007 3:32 am
Location: sydney

Post by reddy.cba »

Typo again..
WHen Input is Vamshi mohan , output should be vamshimohan.
Thanks
Vee Yes,
Man Has Created Money...Its not Money which has created Man....
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

You can remove all the occurences of a character as follows:

Code: Select all

Trim (Input.Column," ", "A" )
Kris

Where's the "Any" key?-Homer Simpson
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

... or, slightly more efficiently,

Code: Select all

Convert(" ", "", InLink.TheString)
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