Pass Invocation Id value to Job Parameter
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 12
- Joined: Fri Apr 12, 2013 7:12 am
Pass Invocation Id value to Job Parameter
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?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.