Page 1 of 1

Log extraction in case of multiple instance

Posted: Wed Jan 30, 2008 12:29 pm
by mathewb
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

Posted: Wed Jan 30, 2008 1:13 pm
by kcbland
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.

Posted: Wed Jan 30, 2008 1:52 pm
by mathewb
How do we refilter the returned log rows to just our invocation id??

Did DataStage 8 fixed the bug??