Querying for Source and Target Table Names

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
SGT
Participant
Posts: 9
Joined: Tue May 04, 2004 12:57 pm

Querying for Source and Target Table Names

Post by SGT »

Given a particular job name, from the Datastage repository can I query(from Administrator or otherwise) to find out what is the source and target table names used in the Job.
Assumption is that I use only one source and target table and I use the Dynamic RDBMS stage for both.
(If not familiar with Dynamic RDBMS stage can also give solution considering I was using ODBC stage)
Thanks.
SGT
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

No you cannot unless you know a lot about DS_JOBJECTS and Universe. You need MetaStage or query against the doc_tool.mdb that is populated by the Reporting Assistant.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

And, if you've used job parameters for table names, this can be quite a messy query!

The table name is a property of the passive stage's input or output link. So, given a job name, you need to determine a list of that job's stage names (from DSStages Where JobName = 'name'). Then you need to determine the link names connected to stages (from DSLinks joined to those rows in DSStages). Then you need to determine which links connect to which table names (from DSProperties joined to those rows from DSLinks). If they're parameters, you then have the parameter name(s) and have to join also to DSParameters and from there back to DSProperties to get the table names. Enjoy! Or get MetaStage, when it does the work for you.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Hi

If u using ODBC stageu can view the source and target table from OBDC stage itself..


Please check the ODBC stage.
Post Reply