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) ?????
How many job are in the project?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 133
- Joined: Wed Mar 05, 2003 4:19 pm
- Location: Lima - Peru. Sudamerica
- Contact:
How many job are in the project?
Saludos,
Miguel Seclén
Lima - Peru
Miguel Seclén
Lima - Peru
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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'"
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
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
>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
Mike Hester
mhester@petra-ps.com
mhester@petra-ps.com