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
Log extraction in case of multiple instance
Moderators: chulett, rschirm, roy
I guess this bug was never fixed. I know the API never worked right when multi-instance job technique was introduced at 5.2 (the infamous Accel Pack). We have always had to refilter the returned log rows to just our invocation id and I haven't look back yet to see if it's changed. I guess it's never been fixed as of your version.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle