How many job are in the 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
jseclen
Participant
Posts: 133
Joined: Wed Mar 05, 2003 4:19 pm
Location: Lima - Peru. Sudamerica
Contact:

How many job are in the project?

Post by jseclen »

Hi forumers ....

With the next UNIX command obtain the number of jobs:

> dsjob -ljobs MyProject | wc -l

But the result is only the server jobs ...

How obtain the total number of jobs in my project (server and mainframe) ?????

:roll:
Saludos,

Miguel Seclén
Lima - Peru
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

COUNT DS_JOBS WITH @ID LIKE "1N0N"

This UniVerse (DataStage Engine) command counts the integer keys in the DS_JOBS file. This is the total number of jobs that you have. It does not differentiate job type; this was not part of your original request.

To execute this from a UNIX shell, you need the uv command.
cd yourproject
$DSHOME/bin/uv "COUNT DS_JOBS WITH @ID LIKE '1N0N'"
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mhester
Participant
Posts: 622
Joined: Tue Mar 04, 2003 5:26 am
Location: Phoenix, AZ
Contact:

Post by mhester »

I do not know or use what Ray posted, but this too will work -

>SELECT DS_JOBS <> '\\NextNumber' AND F5 > 0

This will not include the Next Number record and only those objects that have a job number. Folders do not have a job number.

Regards,

Michael Hester
Post Reply