Extra column

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
thatiprashant
Participant
Posts: 25
Joined: Mon Sep 19, 2005 11:32 am

Extra column

Post by thatiprashant »

hi,,

i am very much new to datastage, i am trying to add an extra column to an exisiting columns.. is there any stage with which we can do this.

thanks
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Where exactly are you trying to add this column. Is it in between the job to do some transformation or is it in your target. With that said, you can always use Transformer stage to append or insert a new column.

HTH
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Welcome aboard,
As kris mentioned, solution to your question depends upon where exactly do you want to add a column
If its just a flat file, lookup set or a database; you can go in the columns tab and either manually edit or import
If the source has 4 columns and you want 5 columns in the target (whatever it maybe), just pass it through the transformer, manually edit/add a column or import from a saved schema, to your target and that shall do the trick.
If your quest is any different, then please elaborate your question with specific examples.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
thatiprashant
Participant
Posts: 25
Joined: Mon Sep 19, 2005 11:32 am

Post by thatiprashant »

thanks a lot for ur reply guys, i was trying to add in transformer..
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

As mentioned, you can just go in and manually insert a column. Or if you have that particular column saved somewhere, just import it by hitting the Load Column Definition button (a block with a red arrow facing right) inside the transformer.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Another possibility is a Column Generator stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rony_daniel
Participant
Posts: 36
Joined: Thu Sep 01, 2005 5:44 am
Location: Canada

Post by rony_daniel »

ray.wurlod wrote:Another possibility is a Column Generator stage. ...
If the requirement is to just add a new column to the taget then Ray's suggestion would be better as transformer takes a toll on performance.
Post Reply