Getting count from a log of job

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
47shailesh
Participant
Posts: 60
Joined: Tue Aug 29, 2006 11:14 pm

Getting count from a log of job

Post 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 :?:
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What do you mean by "count of entries"? Do you mean the number of log file entries for a job run?
47shailesh
Participant
Posts: 60
Joined: Tue Aug 29, 2006 11:14 pm

Post by 47shailesh »

Yes
47shailesh
Participant
Posts: 60
Joined: Tue Aug 29, 2006 11:14 pm

Post by 47shailesh »

Yes
hema arvind
Participant
Posts: 26
Joined: Fri Jun 30, 2006 9:24 am

Post by hema arvind »

DSGetLogSummary function may help!
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Constrain DSGetLogSummary() to entries made at or after DSJobStartTimeStamp.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply