How to Total no.of jobs in a Project

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
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

How to Total no.of jobs in a Project

Post by reddy »

Hi Guys,

How to find total no.of jobs from my project using datastage administrator

or command line mode.

Thanks in advance.

Thanks
Narasa
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you mean the UniVerse/DataStage environment command line mode, you can execute COUNT DS_JOBS WITH JOBTYPEIND NE ''

If you mean Unix, you could do a "dsjob -ljobs {yourprojectname} | wc -l"
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

COUNT DS_JOBS WITH NAME LIKE "1A0X"
would be my preference from the Administrator client command window.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
hexa
Participant
Posts: 51
Joined: Sun Aug 08, 2004 6:25 am

Post by hexa »

Hi ray,

COUNT DS_JOBS WITH NAME LIKE "1A0X"

"1A0X" --> What does it mean?


could you Explain!
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In the BASIC Programmer's Guide pages 6-248 onwards it describes the mask formats - this one denote 1 alphabetic character and then any number of any characters. The reason you cannot just do a COUNT of the file is that it contains several records that do not hold descriptions of jobs but control information and we are filtering them out.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Note that the dsjob command will also return the status code.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

The DS_JOBS table has categories in it as well as jobs. They start with "\". So to not count them you need to do what Ray posted or something similar. I prefer UNLIKE "\...". This is just Ray's style.
Mamu Kim
Post Reply