Jobhandle is retruned as 0

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
bman
Participant
Posts: 33
Joined: Wed Oct 10, 2007 5:42 pm

Jobhandle is retruned as 0

Post by bman »

Hi,

Got a query regarding the DSAttachJob command.

I am using an exception handler sequence to trigger a routine which will fetch all the FATAL log entries form the job that is aborted in the sequence. It works fine if the sequence is single instance. But for a multi instance sequence routine is not able to get a valid Jobhandle.

For muti instance job, routine tries to get job handle by DSAttachJob( JobName.Invocationid, DSJ.ERRFATAL ). But it returns 0 always.

The same routine when tested as standalone it works but when used in the sequence it fails.

Any idea why this could be happening?
Post Reply