Trim function

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
sriec12
Participant
Posts: 56
Joined: Mon Nov 01, 2010 5:34 pm

Trim function

Post by sriec12 »

Hello Everyone,

My input data comes like "ASH" or SRI"RAM" when its loading to file ......its loading as ""ASH"" or "SRI"RAM""

I want to trim " (quotes).....


expected output is
--------------------------------

"ASH"
"SRIRAM"

I m using Trim(columnname, ' " ', A) but its not working...Plz guide me
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Do you really have a space before and after the double quotes like your example does?

If so, you should be using '"' (single,double,single), not ' " ' (single, space,double,space,single).

Also - not all quotes are the same character set - insure you are stripping out the correct quotes.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
sriec12
Participant
Posts: 56
Joined: Mon Nov 01, 2010 5:34 pm

Post by sriec12 »

I dont have any spaces here ....double quotes first place and in between or end.
sriec12
Participant
Posts: 56
Joined: Mon Nov 01, 2010 5:34 pm

Post by sriec12 »

My bad......The function which i am using working fine.
Post Reply