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
Getting count from a log of job
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 60
- Joined: Tue Aug 29, 2006 11:14 pm
What do you mean by "count of entries"? Do you mean the number of log file entries for a job run?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 26
- Joined: Fri Jun 30, 2006 9:24 am
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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: