How to get Count of table used in a stage.

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
aschindler
Participant
Posts: 30
Joined: Wed May 15, 2013 1:22 am
Location: Bangalore

How to get Count of table used in a stage.

Post by aschindler »

Hi

I have a set of parallel jobs and i need to get the count(*) from table that has used in target stage of each job,that count need to be captured in a server job which will load audit table.Is there any way to get the database name and table name and to run the sql queries to get the count captured in my server job.

Please help.
Cheers,
Schindler
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The easiest way is to query the system tables (or "catalog" in some databases) in which the tables reside.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

That is what my ETL completeness does. Do a search. Just a few jobs to make it work. It is table driven. Easy to use and setup. Been using it for years. Works great.
Mamu Kim
Post Reply