Page 1 of 1

Invocation id for multiple instance jobs

Posted: Mon Mar 09, 2009 10:05 am
by aasaif
Hey i need to be able to run a job mutiple times at the same time. So i checked the multiple instance job box in the project properties. I call the job through an executable that calls the the dsjob command. Now I know need to add an invocation id to the job name is there a way to do it from command line or through the project

Posted: Mon Mar 09, 2009 10:15 am
by chulett
From the command line just add the InvocationID to the job name with a 'dot' separator - so JobName.ID rather than just JobName.

Posted: Mon Mar 09, 2009 10:27 am
by aasaif
ok so when i do that i look in the datastage directory under the invocation column it says ID shouldnt an internal ID be displayed here?

Posted: Mon Mar 09, 2009 10:34 am
by ArndW
If you called "MyJob.Instance" then the displayed instance will be "Instance", there is no other internal name or number.

Posted: Mon Mar 09, 2009 10:46 am
by aasaif
ok i am still getting the issue -2 job error when running multiple jobs though

Posted: Mon Mar 09, 2009 10:58 am
by Sainath.Srinivasan
Can you elaborate what you did so others can provide better response.

Can you run the same job from Director ?

Posted: Mon Mar 09, 2009 11:04 am
by aasaif
ok i marked the project to run for multiple instances. In my command line i added .ID to the job name. Then i go to run two jobs at the same time one comes back with a -2 while the other runs. I look in the direct job log window and i only see a entry for the job running not the other job

Posted: Mon Mar 09, 2009 11:25 am
by ArndW
You need to run "MyJob.ID1" and "MyJob.ID2" if you want them to run in parallel, you cannot run two identical instance names at the same time.

Posted: Mon Mar 09, 2009 11:47 am
by bollinenik
Hi,
The easy way is , Create a sequence with mutiple job activities and call the same job in all job activities with different invocations-ID's so that you can see different logs in director for different Invocation-IDs.

Posted: Mon Mar 09, 2009 12:17 pm
by throbinson
What is meant by this;
ok i marked the project to run for multiple instances.
You marked the job as multi-instance and recompiled it, correct?