Hi,
I need to create a generic job which will create metadata for different tables at run time.
My source is DB2 and I need to create table definitions at run time for different tables at run time.
Please let me know how can this be accomplished.
Regards,
- Pavan
Retrieving Metadata dynamically at run time
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
That's a very easy one. It can't be done with this tool. DataStage is driven by the metadata, not the reverse. Some people elect to create a "generic table definition" with more than enough VarChar columns, but it's not really a satisfactory solution.
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.
Hi Ray,ray.wurlod wrote:That's a very easy one. It can't be done with this tool. DataStage is driven by the metadata, not the reverse. Some people elect to create a "generic table definition" with more than enough VarChar columns, but it's not really a satisfactory solution.
So whats the best approach, I need to create a generic job which will extract metadata for more than 40 tables.
Regards,
- Pavan
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 18
- Joined: Tue Nov 15, 2005 9:36 am
Hibhargava129189 wrote:Ray how do i create the unix script. do you mean we can pass metadata for a job using shell script please elaborate.
Welcome Aboard :D
Once the metadate been created using scripts, Scheme file option can be utilized (The option available in Sequential stage) to accomplish the task.
But for DB2 stage
![Confused :?](./images/smilies/icon_confused.gif)
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You create the script with a text editor. How you get and handle the metadata is up to you. "Dynamic metadata" can not be done in DataStage. This is not a forum for solving non-DataStage problems.bhargava129189 wrote:Ray how do i create the unix script. do you mean we can pass metadata for a job using shell script please elaborate.
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.