Log extraction in case of multiple instance

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mathewb
Premium Member
Premium Member
Posts: 22
Joined: Tue Jul 17, 2007 10:35 pm

Log extraction in case of multiple instance

Post 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
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post 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.
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
mathewb
Premium Member
Premium Member
Posts: 22
Joined: Tue Jul 17, 2007 10:35 pm

Post by mathewb »

How do we refilter the returned log rows to just our invocation id??

Did DataStage 8 fixed the bug??
Post Reply