Trim " character

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Trim " character

Post by myukassign »

Hi ,

I have a small issue. I would like to remove " from a string using trim or any other function availabe in Datastage. Can anyone help me.

E.g. If my argument string is like this Arg1= " Arun"Jose ".

The output I want to see is "Arun Jose", I dont want the " come in between.

I tried to use Trim function like this

Trim(Arq1, """, "A"). But it is giving me error. Can anybody tell wht is the correct to way to specify this in Trim function. OR is there any better function to uise in this case.
sud
Premium Member
Premium Member
Posts: 366
Joined: Fri Dec 02, 2005 5:00 am
Location: Here I Am

Re: Trim " character

Post by sud »

Try ereplace
It took me fifteen years to discover I had no talent for ETL, but I couldn't give it up because by that time I was too famous.
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Post by myukassign »

Thanks u ..It worked
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

EReplace or Convert will do it, but the Trim should work as well. Your problem is you used double-quotes to enclose a double-quote. Put single quotes around it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Post by myukassign »

Yes.. I realised my mistake.

Thank you so much for the help.

It solved my problem.
Post Reply