Page 1 of 1

Getting count from a log of job

Posted: Wed Jan 17, 2007 4:58 am
by 47shailesh
Hello every one,

I want to take count of entries for a particular job so that this count can be used in my some other routine...

can anyone provide me an appropriate solution for this :?:

Posted: Wed Jan 17, 2007 5:05 am
by ArndW
What do you mean by "count of entries"? Do you mean the number of log file entries for a job run?

Posted: Wed Jan 17, 2007 6:19 am
by 47shailesh
Yes

Posted: Wed Jan 17, 2007 6:19 am
by 47shailesh
Yes

Posted: Wed Jan 17, 2007 7:40 am
by hema arvind
DSGetLogSummary function may help!

Posted: Wed Jan 17, 2007 7:46 am
by DSguru2B
Get the last event number using lognewest with the dsjob command. That will give you the number of entries present in your entire log file. If you want number of enteries for the latest run then you need to get lognewest before the job starts and after it ends. Subtract them and that will give you the number of log enteries.

Posted: Wed Jan 17, 2007 3:38 pm
by ray.wurlod
Constrain DSGetLogSummary() to entries made at or after DSJobStartTimeStamp.