Count of number of jobs

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
vij
Participant
Posts: 131
Joined: Fri Nov 17, 2006 12:43 am

Count of number of jobs

Post by vij »

Hi,

How do I take the count of number of jobs and sequencers in datastage? I tried the following command from datastage Administrator. I got a count and I believe the count is only for the jobs.

SELECT COUNT(*) FROM DS_JOBS

If this does not count the sequencers, how do I do get the sequencer counts?

Thanks in advance!
Vijayalakshmi
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

It counts all jobs, including sequence jobs.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Do a search. This has been answered several times. There is a job type field in DS_JOBS.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It also counts all the control records (such as category definitions).

You need to constrain the query to eliminate these.

Code: Select all

SELECT JOBTYPEIND, COUNT(*) FROM DS_JOBS WHERE NAME NOT LIKE '//%' GROUP BY JOBTYPEIND;
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply