Page 1 of 1

Paralell running of same job with different parameters

Posted: Tue Jul 26, 2005 1:11 am
by snassimr
Hi !

I wonder if I can to run one job in paralell with Sequencer stage of Job Sequence and with different Job parametr.

For example I do three Job Activiteis in Job Sequence . Each Job Activity Run the same Job with different parameters and all three jobs are related to Sequencer stage with mode ALL

Posted: Tue Jul 26, 2005 1:32 am
by ranga1970
Yes you can

Posted: Tue Jul 26, 2005 1:39 am
by ray.wurlod
If it's the same job it must be capable of multiple-instance running, and you must start the three instances with unique instance IDs. An instance ID can be any string, so you can make it meaningful within your overall scheme of things.

Posted: Tue Jul 26, 2005 2:18 am
by snassimr
How I can supply unique instance IDs to job ?

Posted: Tue Jul 26, 2005 2:23 am
by Sainath.Srinivasan
Simply tag it to job name and a dot.

Posted: Tue Jul 26, 2005 3:25 am
by Kirtikumar
If the job is multiple instance enabled, in the job activity properties, under the job page, you will find one textbox called Ivnocation ID Expression.
For all 3 activities, you should specify different strings. These strings will be used as invocation ids.

Posted: Tue Jul 26, 2005 4:44 am
by snassimr
I need to create 3 jobs ? Where to tag ?

Posted: Tue Jul 26, 2005 9:42 pm
by ray.wurlod
See immediately preceding post.

You create ONE job. You check the Allow Multiple Instance check box in its job properties.

Recompile.

When you run the job there is a new field, InvocationID. That's where you tag it if running from Director. If running from dsjob, use the "dot" notation mentioned earlier.

Posted: Thu Jul 28, 2005 1:56 pm
by vinaymanchinila
Hi Kirtikumar,
I have built a job seq where I have 2 Job activities with the same job, and in the job properties I have checked the "Allow Multiple Instance" , recompiled it.

Still in the job activity properties, under the job page, I am unable to find textbox called Ivnocation ID Expression.

It does ask me to assign the values at run time on a box to the right hand side.

Am I mising something here
Thanks,

Posted: Thu Jul 28, 2005 5:02 pm
by vmcburney
Make sure you have checked the "Allow multiple instances" on the server job, not the sequence job.

Posted: Thu Jul 28, 2005 10:05 pm
by ray.wurlod
Yes, the invocation ID must be set at run time.
The only property available at design time is "Allow multiple instances".
You do not, cannot, set the invocation ID at design time in the job.
When you fill in the job name in the Job Activity in a job sequence, use the dot notation - jobname.invocationID

Posted: Fri Jul 29, 2005 7:31 am
by vinaymanchinila
Thanks Ray, So how do I assign on at run time because our jobs are scheduled in the director!

Posted: Fri Jul 29, 2005 7:38 am
by ArndW
Vinay,

all Multiinstance jobs allow you to set the instance name in the directory when you start the job. The field does not appear for non-multi-instance jobs.

Posted: Fri Jul 29, 2005 7:46 am
by vinaymanchinila
Hi,
Yes, I can see the prompt for it when I run them in the director, but when I scehdule them to run every 2 hrs how do I fill this value in .

Thanks

Posted: Fri Jul 29, 2005 8:29 pm
by ray.wurlod
The prompt for invocation ID should still appear when you're requesting a job run in Schedule view, so you fill the value in in exactly the same way as you would from a regular run request.