output

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
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

output

Post by pavan_test »

I have input data as , sony xxxxxx europe

desired output: sony xxxxxx europe

Can anyone please suggest me to accomplish this.

Thanks
Mark
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

I dont find difference between your input and output
You are the creator of your destiny - Swami Vivekananda
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

output

Post by pavan_test »

input: , sony xxxxxx europe

desired output: sony xxxxxx europe (after eliminating comma and extra spaces)
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Code: Select all

TrimF(TrimF(Str)[2])
You are the creator of your destiny - Swami Vivekananda
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

output

Post by pavan_test »

I received output as pe

desired output: sony xxxxxx europe (after eliminating comma and extra spaces)

Thanks
Mark
mobashshar
Participant
Posts: 91
Joined: Wed Apr 20, 2005 7:59 pm
Location: U.S.

Post by mobashshar »

Use the following:
TrimF(Convert(",", "", InputLink.Column))
Post Reply