Avoid Concatenate/constants in Transformer

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
alisoviejo
Participant
Posts: 49
Joined: Fri Nov 11, 2005 10:19 am

Avoid Concatenate/constants in Transformer

Post by alisoviejo »

Hi,
If I have to concatenate or say insert constant valus in some columns before loading into Oracle , is using the transformer the only option or do we have any light stages than the transformer.

Thanks,
ALISO
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You have a "Generate Columns" stage to add constant values, and I would think that you might be able to do some concatenation in a modify stage, but I'd have to check up on that to make sure (I'm not at a DataStage machine right now - but someone else might correct me before I get to a client workstation tomorrow)
tardifma
Premium Member
Premium Member
Posts: 23
Joined: Tue Jan 24, 2006 10:53 am

Post by tardifma »

Hi
As far as I know, I think so...

But if your source is a database... maybe you could hardcode it into your SQL statement at the beginning...

You probably want to avoid the transformer stage for performance reason isn'it?

Hope it helps.
Mathieu
The Brute
alisoviejo
Participant
Posts: 49
Joined: Fri Nov 11, 2005 10:19 am

Post by alisoviejo »

I do the concatenation after a couple of lookups so cannot do it in the Source stage and also would avoid it that way, so that the logic is presented in DataStage.
Will try the Column generator and let you guys know.
ALISO
tardifma
Premium Member
Premium Member
Posts: 23
Joined: Tue Jan 24, 2006 10:53 am

Post by tardifma »

Hi ArndW

I am curious... I am currently looking at the column generator stage...

How do you define the constant value? Is there any option to specify the value?

Thanks in advance.
Mathieu
The Brute
alisoviejo
Participant
Posts: 49
Joined: Fri Nov 11, 2005 10:19 am

Post by alisoviejo »

You can go to the row properties and set the values.
ALISO
reachthiru
Participant
Posts: 28
Joined: Mon Jan 09, 2006 1:31 pm

Post by reachthiru »

Hi Aliso,

Even if you want to do the concatenation after several steps, still u can do the hard coding in the source stage itself. In the source stage instead of concatenating there, pass that value as a separate column and at the place where you want to concatenate, there just concatenate the fields.
With regards,
Thiru
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use a Cycle with only one value in the cycle.
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