Cascade trim to multiple columns

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
sumesh.abraham
Participant
Posts: 153
Joined: Thu May 11, 2006 1:52 am
Location: Bangalore

Cascade trim to multiple columns

Post by sumesh.abraham »

Dear All,

I want to apply Trim function in the transformer for 65 columns. I was looking for any functionality in PX where I can specify Trim for one column and let it be cascaded to other columns. Do we have anything like that? Any help on this would be appreciated.


Cheers,
Sumesh
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Select all the columns you want to apply the function. With them selected right click and choose Derivation Substitution from the menu. In the field at the bottom enter Trim($1) and click OK, then Yes to All.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

Hi,

Does this shortcut work in server jobs?

Thanks in advance
pandeeswaran
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes. Wouldn't it have been so much easier to try it? :roll:
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