Detect if a job is multi-instance?

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
SettValleyConsulting
Premium Member
Premium Member
Posts: 72
Joined: Thu Sep 04, 2003 5:01 am
Location: UK & Europe

Detect if a job is multi-instance?

Post by SettValleyConsulting »

Is it possible to detect if a job is multi-instance in code?

I have a shared container and it generates a string based on the Job Name and Invocation ID. But when embedded in a single-instance job the call to the DSInvocationID macro throws a warning.

We have a zero-tolerance policy towards warnings, so I was wondering if it is possible to test if the host job is Single Instance and not do the macro call if so?

I could of course make 2 versions of the SC, or demote the warning to Info, just wondering if there was a more elegant answer .....
Phil Clarke
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The easiest non-warning way is a routine that uses the DSGetJobInfo() function. One of the returnable values is a true/false indicating whether or not the job is multi-instance capable.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply