Pass Invocation Id value to Job Parameter

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
chaithanya
Participant
Posts: 12
Joined: Fri Apr 12, 2013 7:12 am

Pass Invocation Id value to Job Parameter

Post by chaithanya »

I tried to pass the Invocation Id value as Job Parameter. In the "Default Value" of the Parameters , i gave the macro "DsJobInvocation Id".But the Job Aborted. Any ideas for the same?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DSJobInvocationId tries to get the invocation ID of the current job (that is, the sequence from which the job is being invoked). If the sequence is not multi-instance, this attempt is doomed.

If you're not invoking from a sequence, then you're breaking a different rule; the invocation ID is not available until the job has actually started, which it hasn't if you're in the Job Run Options dialog.
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