Page 1 of 1

Schedule same job to run multiple times during the day

Posted: Tue May 31, 2005 1:38 pm
by SWW
Hi,

Has anybody schedule a single job to run multiple times during the day? When I go to the director I only see where you can schedule a job to run once, unlike in a DTS package where you can select every hour. Any help would be great.

Thanks in advance.

Steve

Posted: Tue May 31, 2005 1:51 pm
by chulett
:idea: You can actually 'Add to Schedule' as many times as you like. So you could, if you wanted to and the job runtimes don't overlap, have it run every hour by adding it to the schedule for each hour it should run.

Posted: Tue May 31, 2005 3:12 pm
by ketfos
Hi,
You could also use a Unix utility like crontab to schedule it for multiple times.

Ketfos

Posted: Tue May 31, 2005 5:25 pm
by ray.wurlod
How to use crontab on Windows?!!! :lol:

The "scheduler" interface in Director is the lowest common denominator between what you achieve with cron and AT. That's why it seems so limited. You can always modify the queued AT entry from a CMD shell.

Schedule same job to run multiple times during the day

Posted: Wed Jun 01, 2005 4:30 am
by sagara
Can I run the job multiple times but with difft parameters each time without having to key in the parameter values everytime it runs?
There are jobs that need to process multiple flatfiles and for each run the # of flatfiles could vary. So is there a way to schedule this without having to enter filenames as parameter for each run?

Any help would be much appreciated.

Thanks,
Sangeetha

Posted: Wed Jun 01, 2005 6:23 am
by chulett
Basically, the answer to your question is 'no'. However, rather than hijack this thread (since your question isn't answered by scheduling a job multiple times) please repost your question as a new topic. This way we can help you with your particular issue without taking this topic off into the weeds. :wink: Thanks.

There are ways to do what you want, just not via adding a job to the schedule multiple times.

Posted: Wed Jun 01, 2005 6:26 am
by chulett
ketfos wrote:You could also use a Unix utility like crontab to schedule it for multiple times.
As noted, using the DataStage 'scheduler' does put your job into cron (or at for a one-off) on a UNIX server. On a Windows server, it is building an AT entry for you. No reason to do that yourself, though you may find a reason to modify it after the fact - even though that can typically be handled via Director again with the 'Reschedule' option.