Log extraction in case of multiple instance
Posted: Wed Jan 30, 2008 12:29 pm
Hi,
We are trying to capture logs of jobs into a file as soon as the job finishes.
The logic used is:
DSJOBN=Jobname.Instance
lastmsgid=$(dsjob -lognewest $DSPROJ $DSJOBN | cut -c13-17)
dsjob -logdetail $DSPROJ $DSJOBN 0 $lastmsgid > $DSLOGS/${DSJOBN}-${starttime}.log
But "logdetail" is fetching log entries of other invocation job when the job is of multi-instance type.
I have searched for a solution in posts. But couldnt find much.
I am seeing one case similar but doesn't have the resolution
http://dsxchange.com/viewtopic.php?t=11 ... e763ea4ca8
That was in 2006 post with server job but I hope by now atleast someone knows the solution
Thanks
We are trying to capture logs of jobs into a file as soon as the job finishes.
The logic used is:
DSJOBN=Jobname.Instance
lastmsgid=$(dsjob -lognewest $DSPROJ $DSJOBN | cut -c13-17)
dsjob -logdetail $DSPROJ $DSJOBN 0 $lastmsgid > $DSLOGS/${DSJOBN}-${starttime}.log
But "logdetail" is fetching log entries of other invocation job when the job is of multi-instance type.
I have searched for a solution in posts. But couldnt find much.
I am seeing one case similar but doesn't have the resolution
http://dsxchange.com/viewtopic.php?t=11 ... e763ea4ca8
That was in 2006 post with server job but I hope by now atleast someone knows the solution
Thanks