Is there a way to add/drop columns in a parallel datastage job during runtime?
For example: If I have a db2 table called Table1 with ColA and ColB, I want to be able to run a datastage job that can add ColC or remove ColA or ColB.
Is this possible?
Alter Table in Parallel Job
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 44
- Joined: Wed Sep 02, 2015 7:19 am
- Location: Brasilia, Brazil
I think there is a way if there is some logic behind when drop and create columns, but IMO, this will be a little hard to maintain. Is there some special motive to drop and create columns on runtime?
Why not mantain ColA, ColB and ColC always on table and just fill it with nulls or dummy data?
Why not mantain ColA, ColB and ColC always on table and just fill it with nulls or dummy data?
Leandro Vieira
Data Expert - Brasilia, Brazil
Data Expert - Brasilia, Brazil
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can use a Column Generator stage to add and drop columns.
You can use pretty much any stage to drop columns; Copy stage is probably the most efficient.
A dynamic approach might be possible using the Modify stage, or alternate streams of processing in the job design.
You can use pretty much any stage to drop columns; Copy stage is probably the most efficient.
A dynamic approach might be possible using the Modify stage, or alternate streams of processing in the job design.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.