I read the manuls for dsjob and stuck at a point
dsjob -logsum (gives the short details of the entire log)
dsjob -logdetail gives all details of a particular event
dsjob -lognewest will give us the latest event id based upon the Type
(If we specify the type as Started, it is returning me the last event id,(Finishing of a job)
dsjob -jobinfo give me the latest start datetime of a job.
My question is how to get the Max and Min event id for a job , based on latest run.
Within DS we can use the query given by KIm Duke to find the event ids
Code: Select all
SELECT @ID FROM RT_LOG1 WHERE EVAL "@ID" NOT LIKE "//%" AND @ID > CAST(EVAL "FIELD(TRANS('RT_LOG1','//JOB.STARTED.NO',1,'X'), @SVM, 1)"AS DECIMAL) order by @ID,TIMESTAMP
I know that some posts by David give me exactly what i want. But I am having some access rights for creating files in the Ascential server. For that only , i decided to write a batch file.