Page 1 of 1

Number of only jobs and number of only sequences in project

Posted: Wed Mar 14, 2007 7:11 pm
by SharingDS
Hi Gurus,

I can get the total number of jobs in a project by executing the query COUNT DS_JOBS WITH @ID LIKE '1N0N' ,
but 1) I want to get the number of jobs in a particular category in my project
2) Number of only jobs and number of only sequences in project
3)Number of only jobs and number of only sequences in particular category.

Can anyone tell me how can i get this Info, i have seached this forum based on number of jobs as search word, but i did't get any already posted query .

Kind Regards

Posted: Wed Mar 14, 2007 9:49 pm
by Sreedhar
Hi,


You can get the detail of the no of Jobs in a particular project by using the following command line interface.


dsjob -lprojects you will get all the project that are attached to a server

dsjob -ljobs <project name> will give you all the job in the project.

for further information on the same go through the serverdev.pdf page no 700 (command Line Interface)

Posted: Wed Mar 14, 2007 10:08 pm
by kduke
You are going to have to do it at TCL like viewtopic.php?t=101044&highlight=JOBTYPE

CATEGORY and JOBTYPE are in DS_JOBS. Use SQL.

Re: Number of only jobs and number of only sequences in proj

Posted: Thu Mar 15, 2007 4:38 am
by Cr.Cezon
Try with:


1) I want to get the number of jobs in a particular category in my project
COUNT DS_JOBS WITH F3 = 'your category'

2) Number of only jobs a
COUNT DS_JOBS WITH F6 = 0 or F6 = 3
nd number of only sequences in project
COUNT DS_JOBS WITH F6 = 2

3)Number of only jobs and number of only sequences in particular category.

add:
AND F3 = 'your category'


regards,
Crisitna

Posted: Thu Mar 15, 2007 7:42 pm
by ray.wurlod
CATEGORY and JOBTYPE are designated column names in DS_JOBS; why not use them? For example:

Code: Select all

SELECT COUNT(NAME) FROM DS_JOBS WHERE CATEGORY = '<<Category>>';

SELECT COUNT(*) FROM DS_JOBS WHERE JOBTYPE = 3;  

Posted: Sat Mar 17, 2007 6:37 am
by SharingDS
Thanks a lot Kim, Cr.cezon and Ray Ji ,

I got Ans exactly what i want.

Thanks once again

Cheers