Invocation id for multiple instance jobs

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
aasaif
Participant
Posts: 98
Joined: Fri Sep 19, 2008 9:12 am

Invocation id for multiple instance jobs

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
aasaif
Participant
Posts: 98
Joined: Fri Sep 19, 2008 9:12 am

Post 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?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you called "MyJob.Instance" then the displayed instance will be "Instance", there is no other internal name or number.
aasaif
Participant
Posts: 98
Joined: Fri Sep 19, 2008 9:12 am

Post by aasaif »

ok i am still getting the issue -2 job error when running multiple jobs though
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Can you elaborate what you did so others can provide better response.

Can you run the same job from Director ?
aasaif
Participant
Posts: 98
Joined: Fri Sep 19, 2008 9:12 am

Post 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
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
bollinenik
Participant
Posts: 111
Joined: Thu Jun 01, 2006 5:12 am
Location: Detroit

Post 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.
throbinson
Charter Member
Charter Member
Posts: 299
Joined: Wed Nov 13, 2002 5:38 pm
Location: USA

Post 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?
Post Reply