inconsistent output from dsjob command

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
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That's just how it works. There is only one log table for the job, whether it is multi-instance or not. It is up to you to filter them once you've obtained them. Director includes appropriate filtering, but dsjob does not. Submit an enhancement request if you think it's a useful feature.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

In the loop that pulls back the log messages, you'll want to put a conditional in there to only use the log message if the jobname.instance is found in the text string. The DS BASIC job control APIs for scanning job logs are not instance-aware, even if using the jobname.instance.

Your change should be fairly simple, if it's a ksh you're only looking at counting the occurences of the jobname in the log line and if greater than 0 then the message pertains so keep it.
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
Post Reply